Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

API Method in object type in SWO1

Former Member
0 Likes
1,133

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).

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
893

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.

2 REPLIES 2
Read only

Former Member
0 Likes
893

This message was moderated.

Read only

Former Member
0 Likes
894

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.