cancel
Showing results for 
Search instead for 
Did you mean: 

BDC mestab TEXT reading??

Former Member
0 Kudos

hi

im my BDC program,my code is:

DATA: ITAB TYPE TABLE OF BDCMSGCOLL WITH HEADER LINE.

call transaction 'J1IJ' using bdcdata mode 'A' update 'S' messages into itab.

please tell me how to read the TEXT from ITAB.I want to display it later at end, after BDC os done.

regards

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

use the function module: FORMAT_MESSAGE

then pass your parameters of ITAB to this function module.

then populate the message.

Regards,

venkat

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Vipin,

go through the below link

http://abapcode.wordpress.com/category/bdc/

Cheers

fareed

Former Member
0 Kudos

Hi,

Use the function module of the format_message.

Regards,

Mani

Former Member
0 Kudos

HI,

try this below code.

data: v_message_v1 TYPE SYMSGV,

v_message_v2 type symsgv,

v_message_number TYPE SYMSGNO.

LOOP AT i_itab INTO wa_itab

IF wa_messtab-msgtyp = c_e .

*--fill the error in app., log table

v_message_number = wa_itab-msgnr.

v_message_v1 = wa_itab-msgv1.

v_message_v2 = wa_itab-msgv2.

wa_itab-msgty = wa_itab-msgtyp.

wa_itab-msgid = wa_messtab-msgid.

wa_itab-msgno = v_message_number.

wa_itab-msgv1 = v_message_v1.

wa_itab-msgv2 = v_message_v2.

wa_itab-msgv3 = ''.

wa_itab-msgv4 = ''.

APPEND wa_itab TO i_itab.

endif.

endloop.

regards,

bhupal.

Former Member
0 Kudos

Since all you messages are inside your itab, now loop your itab based on you message id according to your requirment.

close the thread once your question is answered.

Regards,

SaiRam