‎2011 Jun 29 11:37 AM
Hi Gurus,
We are creating a webservice in ABAP using FM, which have multiple EXPORT parameters.
when java people consume it, it is showing all the paramerter as input parameters in java and return type of method(FM) is VOID.
Can't we create a FM in ABAP which have multiple export parameters and publish it as webservice??
Please help.
Thanks
Jitendra soni
‎2011 Jun 29 3:46 PM
Hello Jitendra soni,
Each IDE has different way of generating the Proxy. Eventhoug it appears as input parameter in the java side. You don't need to pass the value ti it during the webservice call. All the values will be populated by SAP during the webservice call and you need to take the value back from that field after the successfull completion of your webservice call.
For some IDE's due to the restriction you may need to intialize the values for some return parameters including the BAPI return parameters.
In the SAP side we need to clear all the values that are comming from the java interface call in the very first line of the FM code safer side( for all the Export and result tables parameters values).
Hope this answers your question.
Thanks,
Greetson
‎2011 Jun 29 2:42 PM
Hi Gurus,
>
> We are creating a webservice in ABAP using FM, which have multiple EXPORT parameters.
>
> when java people consume it, it is showing all the paramerter as input parameters in java and return type of method(FM) is VOID.
>
> Can't we create a FM in ABAP which have multiple export parameters and publish it as webservice??
>
> Please help.
>
>
> Thanks
> Jitendra soni
Hi Jitendra,
Can you check if you've followed the steps in
Regards,
Ajay
‎2011 Jun 29 3:15 PM
‎2011 Jun 29 3:46 PM
Hello Jitendra soni,
Each IDE has different way of generating the Proxy. Eventhoug it appears as input parameter in the java side. You don't need to pass the value ti it during the webservice call. All the values will be populated by SAP during the webservice call and you need to take the value back from that field after the successfull completion of your webservice call.
For some IDE's due to the restriction you may need to intialize the values for some return parameters including the BAPI return parameters.
In the SAP side we need to clear all the values that are comming from the java interface call in the very first line of the FM code safer side( for all the Export and result tables parameters values).
Hope this answers your question.
Thanks,
Greetson
‎2011 Jun 29 4:58 PM
Hi Greetson ,
Thanks a lot . it solved my problem.
I have one more query , Can we use Changing/Tables parameters of FM in webservices ??
Thanks
Jitendra Soni
‎2011 Jun 29 5:02 PM
Yes. You can use both Changing as well as tables. During the proxy generation corresponding classes will get generated and you need to pass the array of the class that got generated to the Webservice call for the tables .
Thanks,
Greetson
‎2011 Jun 29 3:58 PM
I totally agree with Greetson.
You can also create a ZFM which is remote enabled and publish it as a web service using ABAP.
Thanks.