‎2006 Sep 22 10:16 PM
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?
‎2006 Sep 22 10:20 PM
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
‎2006 Sep 22 10:20 PM
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
‎2006 Sep 22 10:37 PM
‎2006 Sep 22 10:35 PM
Hi,
Ref the below code...
data itab like table of bdcmsgcoll.
call transaction 'KO01' USING BDCDATA MESSAGES INTO ITAB.
cheers,
Abdul Hakim
‎2006 Nov 16 7:23 AM
Hi
Please send me code for KO01 to upload the internal order with settlement rule using Call transaction..
please its argent.
‎2006 Nov 16 7:54 AM
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.
‎2010 Aug 10 7:49 AM
Hi,
can you please post the code for BDC of KO01 with settlement Rule