‎2015 Jan 20 1:35 PM
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 :
Please reply.
Regards,
Anshuman
‎2015 Jan 20 2:10 PM
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
‎2015 Jan 20 2:10 PM
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
‎2015 Jan 21 7:32 AM
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
‎2015 Jan 21 9:13 AM
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.