First of all, have a glance at following :
BLS Screen Shot to Connect with ERP using SAP JCO Interface and Get Output
Steps to take Actions :
Step 1 : Use SAP JCO Interface Action. Right Click > Configure
Here in SAP Server Details, use proper connection details :
SAP Server, SAP Client, SAP System Number, SAP User Name, SAP Password, SAP
RFC Name (say, BAPI_SALESORDER_GETLIST)
Also set the checkbox Execution Function.
Step 2 : Use SAP JCO Interface Action. Right Click > Links > Link Editor
Here in the Link Editor, Just map the link between request input parameter of the RFC in
SAP JCO Interface (See Right Side Panel) and Transaction input Parameters (Define
transaction input parameter from Transaction Properties)
Step 3: Use XML Document Action > Right Click > Configure
Here define column names with proper Data Type as u want to display in XML Output
from the response of RFC.
Step 4: Use Repeater Action > Right Click > Configure
Here set XPath Expression with the item returned by a table (that table u want to display
in output) from the response of RFC. (select this XPath Target from browse button […])
Step 5: Use Row Action > Right Click > Configure
Here select the output of XML Document as Document Object (Select this object from
browse button […])
Step 6 : Row Action > Right Click > Links > Link Editor
Here in the Link Editor, just map the links between the columns of XML document
(Right Side Panel) and the items in the Output of Repeater (Left Side Panel)
accordingly/properly.
Step 7 : Use Assignment Action > Right Click > Links > Link Editor
Here just map the link between the XML Document Output (Left Side Panel) and the
Transaction output parameter of XML Data Type (result). Also remember to define the
output parameter initially (with checkbox Output Parameter from Transaction Properties)
Step 8: Save this BLS with a name in a folder in ur server. Then from Query Template
Editor, select new > XacuteQuery > Transactions (Tab) > select that saved BLS and select
output parameter. Then Input Parameters Tab > Assign the input parameters available in
Right Side List box in the left grid table starting from Param.1. Set ur required parameter
value to the assigned Parameters. Then ‘Test’ to get the output from BAPI
Thanks
Som