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

regarding script

sreeramkumar_madisetty
Active Contributor
0 Likes
398

Hi Folks

I want to send the script output as mail.

For this I want to know which parameter will stores the script output after generating the spool.

Regards,

Sreeram

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
381

Hi Sree ram,

Even before the spol is generated, you can get the OTF data from the tables parameter OTFDATA of the CLOSE_FORM function module.

Otherwise, if you have the spool number ready, then you can use the function module CONVERT_ABAPSPOOLJOB_2_PDF to convert the spool into pdf format which you can later send as an attachmnet using the fm:

SO_NEW_DOCUMENT_ATT_SEND_API1.

Regards,

Ravi

2 REPLIES 2
Read only

Former Member
0 Likes
382

Hi Sree ram,

Even before the spol is generated, you can get the OTF data from the tables parameter OTFDATA of the CLOSE_FORM function module.

Otherwise, if you have the spool number ready, then you can use the function module CONVERT_ABAPSPOOLJOB_2_PDF to convert the spool into pdf format which you can later send as an attachmnet using the fm:

SO_NEW_DOCUMENT_ATT_SEND_API1.

Regards,

Ravi

Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
381

Hi

It's Answered.