To invoke a BAPI as a Web Service using the SOAP protocol, once the BAPI is available as a WS in SAP you need to locate the associated WSDL interface. Next, import the BAPI into a GeneXus KB as an External Object using the WSDL Import utility.
Also, this external object may be used from any GeneXus object. To do so, we define a variable with the EO data type, and invoke any method of the BAPI with a <EODataTypeVariable>.<method>([parms]).
Upon generating this object, GeneXus will create a SOAP call to invoke the BAPI.