‎2008 Nov 07 6:55 AM
Dear All ,
In SE37 our ABAPer created a funtion module. He try to add this function module in SWO1 -> API . He getting error message "BAPI &1: BAPI function module &2 has no return parameter".
However he Logged in other terminals, he is able to process with out the above error.
I reinstalled GUI in that system and tried... but getting the same error.
Kindly suggest me.
Regards,
Rakesh.
‎2008 Nov 07 7:00 AM
Hi
For Every BAPI, return parameters are important. If you check a standard BAPI..you will see a RETURN structure which actually captures the error and success messages also at times.
Just take any standard BAPI and check the RETURN structure defined in the Tables or Export parameters:
Will be defined like this:
RETURN type BAPIRET2.
Your ABAPer should write the code in such a way that the values or the document created/changed...etc...should get populated..or atleast a message showing that document is created or something like that.
Regards,
Vishwa.
‎2008 Nov 07 7:00 AM
For BAPI return paramaeter is mandatory and also for creating BAPI one should follow the BAPI naming convention.
Regards,
‎2008 Nov 07 7:01 AM
Hello Rakesh
BAPIs must not raise an exceptions but return then to the (external) caller using a RETURN parameter. Single message can be returned using structure BAPIRET2. If you need or want to return multiple messages you may use either a TABLES parameter RETURN (of type BAPIRET2) or an EXPORTING parameter RETURN (table type BAPIRETTAB).
Regards
Uwe
‎2008 Nov 07 7:20 AM
Moderator message: please do not post the same question in more than one forum. The other post has been rejected. Please also use a meaningful subject for your questions in future. Thank-you
Hello Uwe Schieferstein ,
We tried with same user and different terminal we are getting the next following step.But in specific with the terminal we are getting this error.
Kindly suggest me a solution,
Regards,
Rakesh.
Edited by: Matt on Nov 7, 2008 8:23 AM