Skip to Content
0
Nov 03, 2010 at 12:16 PM

Disable or suppress List output: Most elegant way?

144 Views

Hi Experts,

Initial SItuation in Short:

I have modified the Standard Report RPCEDTX0 to our specifications for outputting an XML Stream (which is later processed to a PDF-Payslip). The Standard SAP List is not modified (also a specification) and is outputted normally. For our ESS scenario class CL_HRXSS_REM Method L_PRODUCE_FORM has been modified --> replaced BAPI_GET_PAYSLIP with a customer Function Module which SUBMITS the reactivates the Conversion to PDF and returns it to the Method L_PRODUCE_FORM.

My "Problem" is:

In my Customer Function Module, the Report RPCEDTX0 is submitted and generates its standard list which must not happen here; because there won't be any user interaction. I figured I could use submit as per

SUBMIT rpcedtd0 USING SELECTION-SET lv_var_name
                    WITH SELECTION-TABLE lt_rspar
                    EXPORTING LIST TO MEMORY
                    AND RETURN.

or as per

SUBMIT rpcedtd0 USING SELECTION-SET lv_var_name
                    WITH SELECTION-TABLE lt_rspar
                    TO SAP-SPOOL
                     WITHOUT SPOOL DYNPRO
                    AND RETURN.

to evade getting the standard list displayed. But I wonder if it is a problem if I spam the Memory like that or created thousands of spools which I don't need/want, so..

Which is the most elegant way to let that standard List disappear via the "Submit" statement?

regards,

Lukas