Application Development 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: 

How to supress the list output as a result of SUBMITTING a report?

Former Member
0 Kudos

hi all

i am using the SUBMIT option to submit a std report in my Z program. The std report generates a list. My requirement is to SUBMIT the report but to supress the list. I dont want the list of the submitted program to be displayed to the user. Is there any option in SUBMIT to supress the list?

6 REPLIES 6

naimesh_patel
Active Contributor
0 Kudos

You can use the Option "EXPORTING LIST TO MEMORY". In this option, user will not be able to see the list.

See more online help on the SUBMIT... list_options

Regards,

Naimesh Patel

0 Kudos

hi naimseh

i have done that but still i am seeing the list

here is my code

SUBMIT wspodlist4
        WITH datum = sy-datum
        WITH zeit  = sy-uzeit
        WITH i_vbeln IN r_vbeln
        WITH lf_pdneu = 'X'
        WITH lf_offra = space
        EXPORTING LIST TO MEMORY
        AND RETURN.

still i am seeing the list output of program WSPODLIST4. I dont need the list. I just want that the program does POD on the delivery.

0 Kudos

It should not bring the list.

I tried with this code and I don't get the list from SM50.


REPORT  ZTEST_NP LINE-COUNT 10(2) NO STANDARD PAGE HEADING.

START-OF-SELECTION.

  SUBMIT RSMON000_ALV    "SM50
    EXPORTING LIST TO MEMORY
    AND RETURN.

  WRITE: 'bye'.

Regards,

Naimesh Patel

0 Kudos

yep tried ur code at my end and its working fine. Not sure whats wrong with my code. anyways thanks for the inputs much appreciated.

0 Kudos

Actually after looking carefully in the program WSPODLIST4, I found some wiered things.

It doesn't have the START-OF-SELECTION event. It is generating the list in the AT SELECTION-SCREEN event. I guess, this is preventing the SUBMIT .. LIST TO MEMORY to suppress the List.

Try to find out some other program which acts as same or Copy to Z and move the code to START-OF-SELECTION.

Regards,

Naimesh Patel

Former Member
0 Kudos

SUBMIT... AND RETURN