2014 Feb 13 5:57 AM
Hi Experts ,
I am adding API Method in Object Type created in SWO1 ,which is a RFC (don't having any string as BAPI in naming convention). but its giving error name does not begin with BAPI (shown in first screen shot ) .
Is it necessary to give RFC in API method begin with BAPI .
How I can resolve it.
and when I proceed further I get error as ' Method does not define a RETURN parameter(shown in second screen shot).
2014 Feb 16 2:16 PM
rules : 1. all parameters you define in export and import should be pass by value.
2. all custom BAPI should starts with BAPI_XXX.
3. all BAPI are RFC enabled..
4. do use table name in associated type, use always a BAPI structure.
5. after create the BAPI fucntion modules release the BAPI function modules.
6. in the exporting tab use return parameter and pass the structure BAPIRET2.
once u did all this things
1. go to the T-CODE SWO1.
2. create the object,by default two methods will be there one is display and and add ur custom BAPI as a method insde the object.
Regards.
RV karthikeyan.
2014 Feb 13 7:08 AM
2014 Feb 16 2:16 PM
rules : 1. all parameters you define in export and import should be pass by value.
2. all custom BAPI should starts with BAPI_XXX.
3. all BAPI are RFC enabled..
4. do use table name in associated type, use always a BAPI structure.
5. after create the BAPI fucntion modules release the BAPI function modules.
6. in the exporting tab use return parameter and pass the structure BAPIRET2.
once u did all this things
1. go to the T-CODE SWO1.
2. create the object,by default two methods will be there one is display and and add ur custom BAPI as a method insde the object.
Regards.
RV karthikeyan.