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

Return Parameter in BAPI

Former Member
0 Likes
538

can any one tell me...... what is the purpose of Return parameter in BAPI ?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
471

RETURN parameter in BAPI is used to return messages error or success or warning which may occur during the execution of BAPI.

This is there because the BAPI being an RFC cannot raise an error message since this is not allowed in RFC. So the BAPI will return error/warning or success message in this parameter.

Hope this clarifies

Regards

Nishant

3 REPLIES 3
Read only

Former Member
0 Likes
472

RETURN parameter in BAPI is used to return messages error or success or warning which may occur during the execution of BAPI.

This is there because the BAPI being an RFC cannot raise an error message since this is not allowed in RFC. So the BAPI will return error/warning or success message in this parameter.

Hope this clarifies

Regards

Nishant

Read only

Former Member
0 Likes
471

it return all the Message's ,Exceptions ,etc

it is a kind of

Catch ..... endcatch & Try & endtry what ever message's (S,E,A,I,W)it will capture and maintain in the strucuture called BAPIRETURN (or)BAPIRETURN2.

Reward points if it is usefull ..

Girish

Read only

Former Member
0 Likes
471

Thanks Nishant & Girish Kumar 4 ur answers.....my doubt was cleared...

Also I rewarded points for both of u....