Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3347

Submit Program is not returning values

$
0
0

Hi Friends,

 

I would like to call standard report with the submit statement in my custom report.

 

T-Code: KOB1

 

Custom code in my report:

   LOOP AT gt_output ASSIGNING <output>.

       rspar_line-selname = 'AUFNR'.

       rspar_line-kind    = 'S'.

       rspar_line-sign    = 'I'.

       rspar_line-option  = 'EQ'.

       rspar_line-low     = <output>-aufnr.

       APPEND rspar_line TO rspar_tab.

       CLEAR rspar_line.

    ENDLOOP.

 

     rspar_line-selname = 'BUDAT'.

     rspar_line-kind    = 'S'.

     rspar_line-sign    = 'I'.

     rspar_line-option  = 'BT'.

     rspar_line-low     = ss_erdat-low.

     rspar_line-high    = ss_erdat-high.

     APPEND rspar_line TO rspar_tab.


SUBMIT  RKAEP000WITH SELECTION-TABLE rspar_tab

                      WITH P_DISVAR = '1SAP'   " layout

                      WITH P_MAXSEL = 100000  " max rows

                      TO SAP-SPOOL WITHOUT SPOOL DYNPRO

                      WITH P_TCODEEQ 'KOB1'

                      USING SELECTION-SCREEN 110

                      AND RETURN.


If I run KOB1 T-code with selection parameters and then above submit program is working fine, If I try directly submit program with-out running KOB1 then its not returning any output.


Please let me know do need to pass any more parameters to the submit statement.



Viewing all articles
Browse latest Browse all 3347

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>