cancel
Showing results for 
Search instead for 
Did you mean: 

Have to create spool request and OTF format for sap script

Former Member
0 Kudos

HI Experts,

My requirement is program is generating OTF format my script and the send OTF data to FM which will generate mail with PDF attachement.

OPEN_form ..we are passing ITCPO strucure and set FIELD GETOTF...AS 'x'. so that no spool request will be generated and

CLOSE-FORM fm is getting OTF data .

later OTF data is send to FM which will generate attachment as PDF.

But MY requirement is have to spool reuest and OTF format for the sap script.

Can we generate spool request and OTF format for the sap scrpit.

\

Regards

Ramky

Accepted Solutions (0)

Answers (3)

Answers (3)

aidan_black
Active Contributor
0 Kudos

Hi,

Another possibility is to NOT set the field GETOTF...AS 'x'. So then a spool gets generated as normal.

Then you can use funtion module CONVERT_OTFSPOOLJOB_2 to convert the created spool to PDF. See the example program BCS_EXAMPLE_8 in SAP note #1324547.

Regards,

Aidan

Former Member
0 Kudos

HI Team,

it is solved.

steps.

1. Generate spool requst ..

2. close_FORM ...will get the spool request

3. RSPO_RETURN_SPOOLJOB will convet spool to OTF data

4. Convet OTF data into PDF and send to mail.

Regards

Ramky

aidan_black
Active Contributor
0 Kudos

Hi,

You could set the parameter SAVE_OTF_SPOOL to ON via report RSTXPDF3. See SAP note #924752. Then each time OTF is converted to PDF, a spool request is also generated.

Regards,

Aidan

Former Member
0 Kudos

Hi Team,

i can say another way,,, ...i need to archive sap script ..and have to convert script to OTF format...and need to send attachment in the mail..

Regards

Ramky