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

SUBMIT FF_5

Former Member
0 Likes
994

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

2 REPLIES 2
Read only

Former Member
0 Likes
617

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.

Read only

Former Member
0 Likes
617

It's not possible