‎2007 May 30 2:55 AM
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
‎2007 May 30 3:00 AM
‎2007 May 30 3:02 AM
‎2007 May 30 3:07 AM
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.
‎2007 May 30 3:07 AM
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.