Step 1: Create Structure/Structures for parameters, which we need in SE11
Use Data elements while creating structure fields
Step 2 : Create Function Module using SE37
Select Radio Button “Remote-Enabled Module”
Provide Import Parameters as below and select Pass by Value.
Provide Tables for output and Return table to handle Errors
Write the code to retrieve the data.
Save Check and Activate the function module. And go back
In Menu, Go to Function Module -> Release -> Release
Step 3 : Create Object type for Function Module
Create Object type in SWO1
Provide Object name,Name,Description,Program and Application
Open Node of Method and Select Method.
Now in Menu, Goto Utilities -> API Methods -> Add Method.
Provide Function Module,Which was created in Step 2 and Hit enter.
Check on Next.
Check all the parameters and click on Next
Click on Save.
Now Click on Save and Select Object Type.
In Menu, Goto Edit -> Change Release Status -> Object Type -> To Modeled
Click on Save
In Menu, Goto Edit -> Change Release Status -> Object Type -> To Implemented
In Menu, Goto Edit -> Change Release Status -> Object Type -> To Released
Now Select Function Module in Method.
In Menu, Goto Edit -> Change Release Status -> Object Type Component -> To Modeled
In Menu, Goto Edit -> Change Release Status -> Object Type Component -> To Implemented
In Menu, Goto Edit -> Change Release Status -> Object Type Component -> To Released
Finally Click On Generate.
Step 4 : Check it in BAPI Repository
Tuesday, March 9, 2010
Subscribe to:
Post Comments (Atom)
i like this topic
ReplyDeleteVery good example
ReplyDelete