Hi all.
I am calling a BAPI directly from my service, e.g. BAPI_REQUISITION_GETDETAIL. I mapped both the input and output fields in the pipeline. When I test it using a valid requisition number, I get the values of REQUISITION_ITEMS table in the Result tab. If I put an invalid requisition number, the REQUISITION_ITEMS table is empty which is expected but I also expect to have something in the RETURN table unfortunately, even the RETURN table itself is not in the Result tab. Actually, regardless if it is valid or not, I don’t see the RETURN table in the Result tab. In SAP, when you try the BAPI, the RETURN table is empty if requisition is found otherwise it will give you the error message it encountered. This is what I’m after in the Result tab.
I have a theory but not sure if this is true. I noticed that if a table in BAPI is marked as optional, it doesn’t get passed to webMethods. I tried it by inquiring a requisition with texts. It did not pass the ITEM_TEXT table even if I set the text indicator to X but as usual if I try it in SAP, I get the texts in ITEM_TEXT table. Did somebody experienced a similar problem before?
Thanks in advance.
Miles
#Flow-and-Java-services#webMethods#Integration-Server-and-ESB