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 error

Former Member
0 Likes
661

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.

4 REPLIES 4
Read only

Former Member
0 Likes
594

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.

Read only

Former Member
0 Likes
594

For BAPI return paramaeter is mandatory and also for creating BAPI one should follow the BAPI naming convention.

Regards,

Read only

uwe_schieferstein
Active Contributor
0 Likes
594

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

Read only

0 Likes
594

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