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

calltranscation

Former Member
0 Likes
828

Hi all,

Iam uploading data in ko01 screen with recording call transaction method . After execting iam getting a message i want to collect that message in a file . How can i do that one?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
790

Hi,

You can get the messages using the MESSAGES addition..

DATA: T_MESSAGES TYPE STANDARD TABLE OF BDCMSGCOLL

WITH HEADER LINE.

CALL TRANSACTION 'KO01'

USING BDCDATA

MESSAGES INTO T_MESSAGES.

Use the GUI_DOWNLOAD FM to download the messages from the internal table T_MESSAGES..

Thanks,

Naren

6 REPLIES 6
Read only

Former Member
0 Likes
791

Hi,

You can get the messages using the MESSAGES addition..

DATA: T_MESSAGES TYPE STANDARD TABLE OF BDCMSGCOLL

WITH HEADER LINE.

CALL TRANSACTION 'KO01'

USING BDCDATA

MESSAGES INTO T_MESSAGES.

Use the GUI_DOWNLOAD FM to download the messages from the internal table T_MESSAGES..

Thanks,

Naren

Read only

0 Likes
790

Thanks Narendra

Read only

abdul_hakim
Active Contributor
0 Likes
790

Hi,

Ref the below code...

data itab like table of bdcmsgcoll.

call transaction 'KO01' USING BDCDATA MESSAGES INTO ITAB.

cheers,

Abdul Hakim

Read only

former_member577822
Discoverer
0 Likes
790

Hi

Please send me code for KO01 to upload the internal order with settlement rule using Call transaction..

please its argent.

Read only

Former Member
0 Likes
790

Hi,

Ref the below code...

data: itab like table of bdcmsgcoll

msg(256) TYPE c..

call transaction 'KO01' USING BDCDATA

MESSAGES INTO ITAB.

LOOP AT itab." where MSGTYP = 'E'.

CALL FUNCTION 'FORMAT_MESSAGE'

EXPORTING

id = itab-msgid

lang = 'EN'

no = itab-msgnr

v1 = itab-msgv1

v2 = itab-msgv2

v3 = itab-msgv3

v4 = itab-msgv4

IMPORTING

msg = msg

EXCEPTIONS

not_found = 1

OTHERS = 2.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

WRITE:/ msg.

ENDLOOP.

Read only

0 Likes
790

Hi,

can you please post the code for BDC of KO01 with settlement Rule