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

Bapi-bor

Former Member
0 Likes
895

Hi

all,

ITs urgent,

i have created one bapi i.e in se37 one function module has been created and it has been released there,now when i am adding it into tran swo1. its giving error message

BAPI : Method does not define a RETURN parameter .

although it has been define,plese help me out,

earlier reply will be highly appreciated and it can been seen by the point

5 REPLIES 5
Read only

Former Member
0 Likes
665

hi to create Bapi u should give by paramters by pass by value not reference correct u will get it

Read only

Former Member
0 Likes
665

hi check this...

this is the creation for bapi with step by step

http://www.saptechnical.com/Tutorials/BAPI/CustomBAPICreation/page1.htm

regards,

venkat.

Read only

Former Member
0 Likes
665

If you are working in 4.7 version..use return parameter as BAPIRET2 or BAPIRETURN in the export tab...it sholud be pass by value...

Regards.

Dara.

Read only

vinod_vemuru2
Active Contributor
0 Likes
665

Hi Abhishek,

Where did u defined ur return parameter. It should be defined in TABLES parameter of type BAPIRET2 and as mandatory field(Pass value). Also check whether ur FM and FG is active or not.

Thanks,

Vinod.

Read only

Former Member
0 Likes
665

Hi,

Please validate your settings against the recommendations of the long text for message S&(537):

NA S&537

____________________________________________________

Short Text

BAPI &1: BAPI function module &2 has no return parameter

Diagnosis

The system checks that the RETURN parameter has been defined in both the

BOR and in the function module. The parameter must refer to one of the

BAPI return structures (all planned reference structures can be used for

BAPIs up to and including Release 4.6B; but from Release 4.6C only

BAPIRET2 can be used).

The BOR parameter must be type EXPORT (one line or multi-line) and the

function module parameter must be type EXPORT (if one line) or type

TABLE (if multi-line).

Procedure

Create a RETURN parameter for the function module. Also define the

reference of the BOR parameters to the function module parameter in the

BOR ("Name in function module").

Note that only incompatible changes can be made to BAPIs already

released and delivered.

Find out about enhancing or modifying BAPIs that have already been

delivered by calling the BAPI Explorer (Tools -> BusinessFramework ->

BAPI Explorer) and reading the project form "Project to change an

existing BAPI".

Further notes

For more information see the BAPI Programming Guide in the SAP Library

under CA-BFA.

Regards

Kiran Sure