Application Development 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: 

number of messages in a bapi return table

Former Member

How many entries can be there in a bapiret table . Does it depend on how many times the bapi has been called (ie) if we call a bapi in a loop then there will be an entry in bapiret for each record of the internal table?

1 ACCEPTED SOLUTION

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

The number of messages in the return parameter can be one or many, or sometimes none. If you call the BAPI in a loop, you will need to append these records to another ITAB as the return parameter will be overwritten each time your call the BAPI.

REgards,

RIch Heilman

3 REPLIES 3

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

The number of messages in the return parameter can be one or many, or sometimes none. If you call the BAPI in a loop, you will need to append these records to another ITAB as the return parameter will be overwritten each time your call the BAPI.

REgards,

RIch Heilman

Former Member
0 Kudos

There will be one return message for each record passed you to the BAPI in the return table. That can be a success message and also a error message.

Most of bapi use 'BAPIRETURN' type return table.

Here:

BAPIRETURN-TYPE will give you Success(S), Error (E), Warning (W), Info (I), Abort(A) type of message and BAPIRETURN-MESSAGE will give you text of the message.

0 Kudos

Thanks for your valuable answers.