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 Return

Former Member
0 Likes
603

HI experts,

I have a doubt regarding Bapi return type, i read some were that Bapi will return the return type instead of Exceptions, but my doubt is that weather that return type will be initial if the FM(Bapi) executes successfully,(clarification need on if it is success also it will return and if it is error also it will return so under any cost that export or table(Bapiret2 structure) will not be initial). this is applicable to all the Bapis or do we have any Bapis which will not return any thing into return type( i.e. Structure or a table will be initial). Need suggestions.

Thanks in advance.

1 REPLY 1
Read only

Former Member
0 Likes
451

Bapi Returns type will be initial or may not be initial depending on the checkbox "passvalue" in case of structure(EXPORTING) and "optional" in case of return (TABLES). For sure if there is any error, there will be error messages populated into the BAPI RETURN. The success message gets populated depending on the functionality of the BAPI. If the BAPI is used for creating some document, for eg Sales Order then the BAPI return will contain a success message with the Sales Order number.

Hope this was helpful.

Thanks,

Susmitha Pritam