Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

List contains no data in spool list for alv list display

HI All,

I have a ZTEST1 report which I will execute in foreground and I select the file from presentation server and upload using FM WS_UPLOAD and internal table t_objectid contains the records from the uploaded file.

In debug mode(I change the value of SY-BATCH to 'X' for ZTEST2) and I am getting the ALV LIST DISPLAY with some records.

If the execute ztest1 using F8, and goto SM37 I can see the spool number generated. But in the spool it is showing List contains no data.

Am I missing anything. Please help me.

Below is my code.

report ZTEST1.


  perform open_file.

  export t_objectid to memory id 'ZBGR'.

  perform job_open.

  perform sel_opt.

  export t_selection to memory id 'ZBGR1'.

  perform submit_report.

  perform close_job.

submit ztest2

                with selection-table t_selection

                with p_tcode = p_tcode

                with p_fname = p_fname

                user sy-uname

                via job jobname

                number jobcount

                and return.


Below is my code for ZTEST2report.


  if sy-batch = 'X'.

import t_objectid to t_objectid from memory id 'ZBGR'.

import t_selection to t_selection from memory id 'ZBGR1'.

refresh s_udate.

loop at t_selection into wa_selection.

   move-corresponding wa_selection to s_udate.

   append s_udate.


    perform fetch_cdhdr.

    perform fetch_cdpos.

    perform final_table.

    perform build_fcat.

    perform build_events.

    perform display_data.




Helpful Answer

Not what you were looking for? View more on this topic or Ask a question