Application Development 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: 

Input PO -> Output PO Spool

0 Kudos

Hi All,

Need to generate spool for a existing PO using ABAP.

Input will be PO number in the program , need to get spool for the PO.

No need of print preview and

no user action will be done.

For there i can work on. From the spool i will convert spool to PDF and email it.

Kind Regards

Ramachandriya

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

check   http://wiki.sdn.sap.com/wiki/display/Snippets/Convert+Smartform+to+PDF+format

If u give

st_output_options-tdprinter = v_e_devtype.

st_control_parameters-no_dialog = 'X'.

st_control_parameters-getotf = 'X'.

add this to above code

st_output_options-TDNEWID = 'X'    "New Spool Request (Print Parameters)

then it will be converted to PDF & new spool will be generated u can find spool in SP01.

4 REPLIES 4

former_member217544
Active Contributor
0 Kudos

Hi,

if you try searching in scn, you will get this link for generating spool.

http://scn.sap.com/thread/1636899

For other requirements also convert to pdf and email.. there will be some or other helpful link in scn. Try to search.

Regards,

Swarna

Former Member
0 Kudos

Hi,

check   http://wiki.sdn.sap.com/wiki/display/Snippets/Convert+Smartform+to+PDF+format

If u give

st_output_options-tdprinter = v_e_devtype.

st_control_parameters-no_dialog = 'X'.

st_control_parameters-getotf = 'X'.

add this to above code

st_output_options-TDNEWID = 'X'    "New Spool Request (Print Parameters)

then it will be converted to PDF & new spool will be generated u can find spool in SP01.

0 Kudos

Hi

Let me ask again,

My requirement is fully using ABAP code,

Selection Screen : input existing PO number

Output : Spool number

I no need to create new PO using sapscript or smartform. Then create a spool.

Existing PO needs to be generated to SPOOL number.

All the links and forms say only from the Smartform to spool.

I need straight PO number to spool for PDF generation.

Just saw a FM: ECP_PDF_DISPLAY

Got any idea on this. Looks like on giving PO number it generates PDF without even going to spool.

0 Kudos

Hi Ramachandriya,

Selection Screen : input existing PO number

Output : Spool number

i think its not possible in SAP.

you can get the PO numbers from NAST table based on that Output type.

there's no link after that .