Application Development and Automation 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: 
Read only

spool

Former Member
0 Likes
616

hi all,

in my program there is one logic as below.


SUBMIT (P_PROGNAME)
*    TO SAP-SPOOL
*    DESTINATION USER_DEFAULTS-SPLD
*    LAYOUT REPFMT
*    COPIES 1
*    LIST DATASET  'REPLST'
*    LIST NAME     LIST_NAME
*    KEEP IN SPOOL 'X'
*    IMMEDIATELY   ' '
*    DATASET EXPIRATION 1
*    WITHOUT SPOOL DYNPRO
*    USING SELECTION-SET P_VARIANT
*    AND RETURN.

it should create a spool with value mentioned in the submit command. the values are as desired in the program.but that is not updating correctly in the table,

plz help on this.

<REMOVED BY MODERATOR>

regards,

rohan.

Edited by: Alvaro Tejada Galindo on Feb 13, 2008 2:53 PM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
486

Hi,

Please refer to the sample code :


      SUBMIT <program name>
              TO SAP-SPOOL DESTINATION   p_dest
                           IMMEDIATELY   p_immed
                           KEEP IN SPOOL p_prrel
                           LAYOUT        p_paart
                           COVER TEXT    gw_cover_text
              WITHOUT SPOOL DYNPRO
              WITH p_comp = gw_bkpf_key-bukrs
              WITH p_year = gw_bkpf_key-gjahr
              WITH p_doc  = gw_bkpf_key-belnr
              WITH sp_vari = sp_vari                        
              AND RETURN.

Thanks,

Sriram Ponna.

1 REPLY 1
Read only

Former Member
0 Likes
487

Hi,

Please refer to the sample code :


      SUBMIT <program name>
              TO SAP-SPOOL DESTINATION   p_dest
                           IMMEDIATELY   p_immed
                           KEEP IN SPOOL p_prrel
                           LAYOUT        p_paart
                           COVER TEXT    gw_cover_text
              WITHOUT SPOOL DYNPRO
              WITH p_comp = gw_bkpf_key-bukrs
              WITH p_year = gw_bkpf_key-gjahr
              WITH p_doc  = gw_bkpf_key-belnr
              WITH sp_vari = sp_vari                        
              AND RETURN.

Thanks,

Sriram Ponna.