‎2009 Aug 05 2:00 PM
Use a meaningful subject in future
Experts,
Whenever I give print of the report It should not give any pop up and directly it should give the
print. Can we use SUBMIT rep ... TO SAP-SPOOL. syntax?
Please tell me , what is the purpose of this statement. I tried statement in my reportwith no luck and additinally getting
confusion with this.
And, moreover we call this report from our Custom application and will give print from here.
Here How can we use that SUBMIT with print parameters statement and purpose of it.
Thanks ....
Edited by: Matt on Aug 6, 2009 1:11 PM
‎2009 Aug 05 2:12 PM
Hi ,
Submit <report> is used to call other report from one report.
if you want to create a spool for any report..
do the following..
"spool name
CONCATENATE 'A'
w_tabix
sy-datum+4(4)
sy-uzeit INTO
wa_pri_params-plist.
NEW-PAGE PRINT ON NO DIALOG PARAMETERS wa_pri_params. "creating spool request
WRITE : / text-s32.
ULINE.
LOOP AT t_ouputdata INTO wa_ouputdata. "data need to write in Spool
WRITE : / wa_ouputdata.
ENDLOOP.
WRITE : / text-s33.
NEW-PAGE PRINT OFF. "closing spool request
* To fetch the spool number from TSP01 table
SELECT rqident
FROM tsp01
INTO w_rqident
UP TO 1 ROWS
WHERE rq2name = wa_pri_params-plist.
ENDSELECT.
w_rqident contains spool is--you can see this in SP01 with spoll id..
Prabhudas
‎2009 Aug 05 2:12 PM
Hi ,
Submit <report> is used to call other report from one report.
if you want to create a spool for any report..
do the following..
"spool name
CONCATENATE 'A'
w_tabix
sy-datum+4(4)
sy-uzeit INTO
wa_pri_params-plist.
NEW-PAGE PRINT ON NO DIALOG PARAMETERS wa_pri_params. "creating spool request
WRITE : / text-s32.
ULINE.
LOOP AT t_ouputdata INTO wa_ouputdata. "data need to write in Spool
WRITE : / wa_ouputdata.
ENDLOOP.
WRITE : / text-s33.
NEW-PAGE PRINT OFF. "closing spool request
* To fetch the spool number from TSP01 table
SELECT rqident
FROM tsp01
INTO w_rqident
UP TO 1 ROWS
WHERE rq2name = wa_pri_params-plist.
ENDSELECT.
w_rqident contains spool is--you can see this in SP01 with spoll id..
Prabhudas
‎2009 Aug 06 12:11 PM