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

Capturing the messages from the called program in Submit statement

Former Member
0 Likes
576

Hi,

I need to display error messages or warning messages or success messages of called program in my calling program.

Please suggest some solution.

For clarity Iam herewith my piece of code.

SUBMIT zsufile_handling WITH pa_actn = wl_cop

WITH pa_ftype = wl_asc

WITH pa_spfil = pa_zfile

WITH pa_dphyf = wf_file1 AND RETURN.

Iam calling this from progarm Z_traffic_upload. Now I want to display the error messages of above submit in this program Z_traffic_upload.

Best regards,

Brahma Reddy

4 REPLIES 4
Read only

Former Member
0 Likes
546

check this thread

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
546

This is not possible if you are doing a straight SUBMIT.

Regards,

RIch Heilman

Read only

Former Member
0 Likes
546

Hi,

try using ..

SUBMIT zsufile_handling WITH pa_actn = wl_cop

WITH pa_ftype = wl_asc

WITH pa_spfil = pa_zfile

WITH pa_dphyf = wf_file1 AND RETURN

EXPORTING LIST TO MEMORY.

and then in your program Z_traffic_upload use fn modules 'LIST_FROM_MEMORY' / 'WRITE_LIST'.

Regards,

Vidya.

Read only

Former Member
0 Likes
546

Hi,

If the program you are calling has a TCODE then i think it's better to use CALL TRANSACTION rather than submit..

CALL TRANSACTION <TCODE> USING i_bdcdata MODE 'N'

MESSAGES INTO i_msgtab.

all the messages will be put in i_msgtab.