Skip to Content

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

Get Spool ID from NEW PAGE PRINT

Dear experts,

how I can get Spool-ID when using this code:

NEW-PAGE PRINT ON.

     WRITEwa_ausgabe-vstel.

     WRITEwa_ausgabe-vkorg_auft.

     WRITEwa_ausgabe-fkdat.

     WRITE:    wa_ausgabe-matnr NO-ZERO LEFT-JUSTIFIED,

               AT 31 wa_ausgabe-maktx NO-ZERO LEFT-JUSTIFIED,

               AT 72 wa_ausgabe-fkimg NO-ZERO LEFT-JUSTIFIED,

               AT 79 wa_ausgabe-vrkme NO-ZERO LEFT-JUSTIFIED.

     NEW-LINE.

     NEW-PAGE PRINT OFF.

   

     COMMIT WORK.


Is there my be some sy variable for this or something?



Former Member
Former Member replied

Hi, Denis!

Check sy-spono variable. Other details of spool request can be found in TSP01 table (RQIDENT = sy-spono).

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