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

BDC Call Transaction method

Former Member
0 Likes
519

Hi All,

How to record the logs in BDC Call transaction method?

Please help me.

Regards,

Santhosh

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
492

Hi,

CALL TRANSACTION c_pa30 USING i_bdc_data MODE 'N'
                                           MESSAGES INTO i_msg_tab.

i_msg_tab table holds the all the messages which are returned while processing.

3 REPLIES 3
Read only

Former Member
0 Likes
493

Hi,

CALL TRANSACTION c_pa30 USING i_bdc_data MODE 'N'
                                           MESSAGES INTO i_msg_tab.

i_msg_tab table holds the all the messages which are returned while processing.

Read only

former_member438956
Active Participant
0 Likes
492

hiii,

while calling call transaction u can refer the below code:

DATA: it_bdcmsg TYPE STANDARD TABLE OF bdcmsgcoll,

wa_bdcmsg TYPE bdcmsgcoll.

CALL TRANSACTION 'MEK1' USING it_bdcdata OPTIONS FROM x_ctuprms

MESSAGES INTO it_bdcmsg.

LOOP AT it_bdcmsg INTO wa_bdcmsg.

CALL FUNCTION 'FORMAT_MESSAGE'

EXPORTING

id = wa_bdcmsg-msgid

lang = sy-langu

no = wa_bdcmsg-msgnr

v1 = wa_bdcmsg-msgv1

v2 = wa_bdcmsg-msgv2

v3 = wa_bdcmsg-msgv3

v4 = wa_bdcmsg-msgv4

IMPORTING

msg = message

EXCEPTIONS

not_found = 1

OTHERS = 2.

endloop.

Regards,

Anil N.

Read only

0 Likes
492

Hi,

You can see the log through SM35 OR after bdc a log automatically generates you can save it in spreadsheet. Is there any specific requirement for recording of log.

Regards,

Himanshu