‎2008 Apr 26 8:00 AM
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
‎2008 Apr 26 11:48 AM
hi to create Bapi u should give by paramters by pass by value not reference correct u will get it
‎2008 Apr 26 1:04 PM
hi check this...
this is the creation for bapi with step by step
http://www.saptechnical.com/Tutorials/BAPI/CustomBAPICreation/page1.htm
regards,
venkat.
‎2008 Apr 26 1:22 PM
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.
‎2008 Apr 26 1:35 PM
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.
‎2008 Apr 26 4:54 PM
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