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

pdf to spool

Former Member
0 Likes
595

Hi Experts,

i have created a custom program by copying FP_TEST_00 and gave nodialog mode for out parameters which will supress the prompt for printer and that i can run it in background. i just want the data to written to spool.

call function 'FP_JOB_OPEN'

changing

ie_outputparams = iwa_outputparams

exceptions

cancel = 1

usage_error = 2

system_error = 3

internal_error = 4

others = 5.

  • call function module with import params

call function function_name

parameter-table

para_tab.

  • close job

call function 'FP_JOB_CLOSE'

exceptions

usage_error = 1

system_error = 2

internal_error = 3

others = 4.

Any pointers in this regard will be help ful.

Please provide some inputs if we can send the PDF to a spool.

Thanks in Advance,

Deepa

3 REPLIES 3
Read only

Former Member
0 Likes
543

Hi,

Set iwa_outputparams-reqnew = 'X'.

Regards,

Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
543

Hi,

First call GET_PRINT_PARAMETERS , next call the FM inside a program and then submit this program in background mode using TO SAP-SPOOL.

Regards,

Sandeep

Read only

former_member451655
Active Participant
0 Likes
543

step 1.

Use RSTS_GET_ATTRIBUTES function module to get Spool No and related attributes.(Ex.Client , Authority..ect)

Step 2.

select the FM CONVERT_OTFSPOOLJOB_2_PDF if OTF data available to convert or CONVERT_ABAPSPOOLJOB_2_PDF if list data available to convert to PDF in the spool created in the step 1.

Step 3.

Export TABLES - pdf will contain the PDF Data .

Note : you can refer program - RSTXPDFT4

Cheers ,

Dilum