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

Error messages BAPI

Former Member
0 Likes
428

Hi all,

Again with the 'BAPI_GOODSMVT_CREATE'. I wat to create a error messages file, where it display me the reason why the paramenter gt_bapigm_headret in some cases is initial.

How can I do it?

Thanks in advance.

Regards, Marisol.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
405

There is a tables parameter 'RETURN' which will give you all the messages, including error messages. You have loop through this internal table to find out all the messages. The field MESSAGE of this will give you the error message. Alternatively you can use the ID, NUMBER, MESSAGE_V1, MESSAGE_V2, MESSAGE_V3, MESSAGE_V4 fields and prepare the message yourself.

Srinivas

2 REPLIES 2
Read only

Former Member
0 Likes
406

There is a tables parameter 'RETURN' which will give you all the messages, including error messages. You have loop through this internal table to find out all the messages. The field MESSAGE of this will give you the error message. Alternatively you can use the ID, NUMBER, MESSAGE_V1, MESSAGE_V2, MESSAGE_V3, MESSAGE_V4 fields and prepare the message yourself.

Srinivas

Read only

0 Likes
405

Use the FM MESSAGE_PREPARE and pass on the parameters from the return table for getting the message.