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

Workflow Step 'In Process'- Send mail with PDF attachment

Former Member
0 Likes
415

Hi,

have to send mail with PDF attachment.

I have written a function module with following steps,

1. Convert SPOOL number to PDF using Function Module 'CONVERT_OTFSPOOLJOB_2_PDF'.

2. Send mail with PDF attachment using Function Module 'SO_DOCUMENT_SEND_API1'.

The Function Module is giving required output when tested and called in the report(Background Job).

When I call this Function Module from Method-> Workflow Task the Workflow steps status is 'In Process' and not ending.

Could you please help me on this??

Hi,

have to send mail with PDF attachment.

I have written a function module with following steps,

1. Convert SPOOL number to PDF using Function Module 'CONVERT_OTFSPOOLJOB_2_PDF'.

2. Send mail with PDF attachment using Function Module 'SO_DOCUMENT_SEND_API1'.

The Function Module is giving required output when tested and called in the report(Background Job).

When I call this Function Module from Method-> Workflow Task the Workflow steps status is 'In Process' and not ending.

Could you please help me on this??

1 REPLY 1
Read only

0 Likes
359

Hi shafath,

When you try to send mail, You need to call the function FP_JOB_OPEN before calling the function module to generate the pdf. ( /1B****) . Is it missing in your code?