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

Collect message into internal table

Former Member
0 Likes
1,066

Hi,

does any one knows how BAPIs or CALL TRANSACTIONs collect messages into internal table.

My problem is that some BI with CALL TRANSACTION doesn't collect right message into return table and I would like to collect this last message after CALL TRANSACTION and therefore be sure that everything went OK.....

thx

mario

Hi,

does any one knows how BAPIs or CALL TRANSACTIONs collect messages into internal table.

My problem is that some BI with CALL TRANSACTION doesn't collect right message into return table and I would like to collect this last message after CALL TRANSACTION and therefore be sure that everything went OK.....

thx

mario

3 REPLIES 3
Read only

former_member188829
Active Contributor
0 Likes
702

Hi,

Use FM:FORMAT_MESSAGE

Read only

Former Member
0 Likes
702

Hi,

data:

itab type table of bdcmsgcoll.

call transaction se11 MESSAGES INTO itab

all the messages sent during batch input processing are stored in an internal table itab of the type BDCMSGCOLL from the ABAP Dictionary.

In the same way Bapi will have return table where all the messages are stored in it.

PLzz reward points if it helps.

Read only

Former Member
0 Likes
702

hi

good

check this

Call Transaction p_trans using ZBDC_Table

Mode p_mode

Update p_update

Messages into p_messages.

Move sy-subrc to w__subrc.

  • Scan the messages in YDCRAISES to see if we need to

  • change the message class.

Loop at p_messages.

Select single msgtyp

into w__msgtp

from zdcraise

where tcode = p_messages-tcode and

msgid = p_messages-msgid and

msgnr = p_messages-msgnr.

If sy-subrc = 0.

Move w__msgtp to p_messages-msgtyp.

Modify p_messages.

EndIf.

EndLoop.

  • Dump the message table ?

If w__ydcset-dumpmsg = True.

thanks

mrutyun^