‎2009 Aug 17 7:58 AM
Hi all.
I want to call transaction FF_5 from ABAP program.
The problem is that I would like to get the messages back.
I'm using a command:
submit rfebka00 to sap-spool
spool parameters print_parameters
archive parameters archi_parameters
without spool dynpro using selection-set 'BOA - NOAM US' with batch = 'X' and return.
How can I get the messages from the transaction (Error, warning & information) ???
Thanks in advance,
Rebeka
‎2009 Aug 17 8:12 AM
Hi,
CALL TRANSACTION 'FF_5' USING t_customer MODE 'A'
MESSAGES INTO t_messages.
loop at those messages to display messages
LOOP AT t_messages INTO fs_messages.
CALL FUNCTION 'FORMAT_MESSAGE'
EXPORTING
id = fs_messages-msgid
lang = sy-langu
no = fs_messages-msgnr
v1 = fs_messages-msgv1
v2 = fs_messages-msgv2
v3 = fs_messages-msgv3
v4 = fs_messages-msgv4
IMPORTING
msg = w_msg
EXCEPTIONS
not_found = 1
OTHERS = 2.
IF sy-subrc EQ 0.
WRITE : / w_msg.
ENDIF.
ENDLOOP.
‎2009 Sep 07 9:10 AM