on 05-18-2010 5:01 PM
Hello:
I am trying to pass table data from ABAP code to a webservice using SOAP. I have seen many examples of passing single value parameters such as:
DATA: osoap TYPE REF TO CSoapDocument.
GET REFERENCE OF p_refno INTO dref.
CALL METHOD osoap->add_parameter
EXPORTING
direction = CSoapConstants=>ic_param_in
name = 'ws_ref_no'
value = dref.
CALL METHOD osoap->set_tag_name_format
EXPORTING format = CSoapConstants=>ic_tagfmt_default.
However I cannot find any code examples of passing table data to a webservice. Can anyone provide a sample or documentation for how to pass table data to a webservice?
Thanks,
Craig
Hi Craig
i just posted this on SAPfans for you too!
if you are not using PI, then follow this....
http://help.sap.com/erp2005_ehp_04/helpdata/EN/bb/ddb33d2ae46b3be10000000a114084/frameset.htm
http://help.sap.com/erp2005_ehp_04/helpdata/EN/9b/dad1ae3908ee44a5caf57e10918be9/frameset.htm
this is converting XSD to ABAP....
http://help.sap.com/erp2005_ehp_04/helpdata/EN/de/705c3c3806af06e10000000a11402f/frameset.htm
i have only used PI to do this via ABAP Proxies....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Ravi and Barry for your quick replies.
Our environment is not XI/PI. We're also not using proxies. We have a very simple RFC connection from the our R/3 4.7 (620) system to the Web Service written in SAP Netweaver Dev Studio. The ABAP code constructs a SOAP object, builds the parameters and launches the transport to trigger the Java Bean Method that we wrote in Dev Studio. Unfortunately, the document links you provided appear to be for different platforms than ours.
Edited by: Craig Scott on May 18, 2010 7:59 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I resolved this issue using another approach. Instead of trying to pass a table from ABAP to the webservice using SOAP and then on to the Guided Procedure, the webservice calls the Guided Procedure which then calls an External Service Callable Object. This External Service calls an SAP RFC which reads the data for the table from SAP and passes it back to the Guided Procedure where it can be mapped to subsequent steps in the Guided Procedure.
Check this link:
http://help.sap.com/saphelp_nwpi71/helpdata/en/47/0ae6a14ddb0e8ae10000000a155369/content.htm
Regards,
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.