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

Classical Report

Former Member
0 Likes
438

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
412

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

2 REPLIES 2
Read only

Former Member
0 Likes
413

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

Read only

matt
Active Contributor
0 Likes
412

Use a meaningful subject in future