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 ID not generated

Former Member
0 Likes
2,059

Hello,

I am running a t-code where I give a delivery number and a ABAP program runs in the background to create the invoice of the delivery document.

The t-code is used for generating a Spool id so that in a dedicated printing format, the invoice will be sent for printing using the spool.

Can anyone suggest on the following :

  • when a spool id will not be generated? I checked in ST22 transaction and there was no run time dump.
  • what is the process to generate a spool id ? what is the function module used for it?

Please reply.

Regards,

Anshuman

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,446

To insure generation of spool you can use statement NEW-PAGE PRINT ON or other options described in Print List Levels and Spool Requests. (You can also use tools as Sap Script, Smartforms or Adobe)

In the executing program sy-spono contains the last spool id opened.

For a background job, after execution, you can find spool ids in table TBTCP (only one spool per step) and TBTC_SPOOLID (mutiple spool ids per job step) - also use SM37

Perform also some search on GET or SET_PRINT_PARAMETERS.

Regards,

Raymond

3 REPLIES 3
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,447

To insure generation of spool you can use statement NEW-PAGE PRINT ON or other options described in Print List Levels and Spool Requests. (You can also use tools as Sap Script, Smartforms or Adobe)

In the executing program sy-spono contains the last spool id opened.

For a background job, after execution, you can find spool ids in table TBTCP (only one spool per step) and TBTC_SPOOLID (mutiple spool ids per job step) - also use SM37

Perform also some search on GET or SET_PRINT_PARAMETERS.

Regards,

Raymond

Read only

0 Likes
1,446

Hi Raymond,

Thank you for the information.

I want a help added to it. I work as a functional consultant and I know ABAP. But there is a different team which works for ABAP.

What error/suggestion should i give them to check because of which the spool id is not getting generated?

Kindly reply.

Regards,

Anshuman

Read only

0 Likes
1,446

Anshuman,

Driver Program and Script/Smartform will be maintained in NACE.You can ask them to check the driver program by putting a break point to see why a spool is not getting generated.In addition to this you should also share the info regarding SO and Delivery Cycle with details like Sales Area,Document type etc.

K.Kiran.