2015 Apr 06 7:38 AM
Hi Guys,
I want to create a sap web service and i want to execute this web service passing some parameters as values from outside (browser) i need to save these parameters that i send in a custom table, what is the best way to do this ? (any working examples would be great if any.)
Appreciate your suggestions on this.
Thanks
2015 Apr 22 1:57 AM
While programming your function module in SAP, define the tables that you want to pass as changing parameters. Then when you consume it, you can send the tables within the request.
2015 Apr 22 3:27 AM
Hi Aabid,
To create the WS you have to follow this steps:
An example code of passing 2 parameters and saving them in a custom Table. (You can also pass directly a table instead of parameters)
IMPORTING PARAMETERES
username TYPE UNAME
name TYPE CHAR40
DATA: ls_zYour_Table TYPE zYourTable. " zYourTable has to be declared in SE11
ls_zYour_Table-username = username.
ls_zYour_Table-name = name.
MODIFY zYourTable FROM ls_zYour_table.
Regards