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: 

Capture MIGO warning and errors into my internal tables

Former Member
0 Kudos

Hi ABAP Guru's

I want to Capture MIGO warning and errors while checking

or posting MIGO into my internal tables and Z-table for a control report .

Is there any BAPI of FM available for the same.

Please share your knowledge.

Thanx

6 REPLIES 6

Former Member
0 Kudos

Hi Amol,

Try with the BAPI BAPI_MESSAGE_GETDETAIL

If useful reward points.

Regards,

Vasanth

Former Member
0 Kudos

Hello,

Can you please tell me whether you want to display warning and error messages in your report.

Because all those messages can be captured at runtime of MIGO. In your report you are doing some BDC's to POST or any BAPI's .

Best Regards,

Krishna

LucianoBentiveg
Active Contributor
0 Kudos

If you are using BDC, you cauld use addition:

... MESSAGES INTO itab

If you are using BAPI, you can use RETURN table, messages will be stored inside.

To construct message text you can use FM MESSAGE_PREPARE.

Regards.

former_member181962
Active Contributor
0 Kudos

The RETURN tables parameter will have the messages ready for you in the bapi: BAPI_GOODSMVT_CREATE.

Regards,

ravi

Former Member
0 Kudos

Hi,

I am using BDC to save migo.

I have tried " MESSAGES INTO itab "

It is capturing the messages of status bar

but I want to capturing the warnings and the error msg

which comes on check or posting time.

0 Kudos

Hey,

If you are using MESSAGES INTO itab, itan should contain all the messages issued during the transaction i.e. messages of type I,W,S,E.

After collecitng the messages in ITAB you need to build the message text from the message id, number and the message variables using the function MESSAGE_TEXT_BUILD.

-Kiran

*Please mark useful answers