cancel
Showing results for 
Search instead for 
Did you mean: 

Need to flow/get rejection attachment into method(Function module).

Former Member
0 Kudos

Hi Workflow experts,

I need to get or flow rejection reason attachment into method from workflow.

Pls suggest me how to capture the attachment in method and send it to through CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'.

I don't need to attach the rejection reason through sent mail activity as I know it works.

Thanks & Regards

Srimanta

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member185167
Active Contributor
0 Kudos

Hello,

There are a few ways to do this (search the forum for more) but one way is to call fm POPUP_GET_VALUES to get the comment and store it in the workflow, and then use fm SO_NEW_DOCUMENT_ATT_SEND_API1 in the next step to send it.

Give it a try and let us know if you have specific problems.

regards

Rick Bakker

hanabi technology

Former Member
0 Kudos

Can you pls brief? Where to call POPUP FM and when?

Thanks & Regards

Srimanta

former_member185167
Active Contributor
0 Kudos

Hello,

Call the Popup between the decision step and the email step.

regards

Rick Bakker

hanabi technology

Former Member
0 Kudos

Hi Rick,

Can you pls give other idea to get the attachment into method. As user want to press CREATE button to write reason for rejection message. After that they will press Rejection decision. Mail will be sent to requestor and approver for Rejection of document along with reason text.

Thanks & Regards

Srimanta

former_member185167
Active Contributor
0 Kudos

Hello,

What CREATE button? They have a choice of Accept or Reject. if they press Reject it asks for a reason.

You attach that reason to the step that sends the mail.

CREATE what?

regards

Rick Bakker

hanabi technology

bpawanchand
Active Contributor
0 Kudos

Hi,

As you mentioned when he clicks on CREATE button and then he would be including his comments in the textbox, is enduser using a webdynpro applicaiton of SAP GUI transaction?,

and once he clicks on the reject button read the text what ever entered by the enduser into a internal table of type SOLI_TAB and pass this internal table to the function module which you want to use for sending the rejection comments as the mail body..

Make sure you define the type of the mail as RAW.

Regards

Pavan

Former Member
0 Kudos

Hi Rick,

Thank you for your help. I got solution by own.

Thank you srimanta