cancel
Showing results for 
Search instead for 
Did you mean: 

How to Bind modal call method in user decision step with workflow container element?

Former Member
0 Kudos

Hi All,

I didn't find suitable post for my question in SCN. I have a requirement, whenever user rejected the document through workitem. Immediately user wants a popup to enter rejection reason and the rejection reason text should appear in the mail.

Here I'm facing challenge to do binding between modal call method and workflow container. To achieve this requirement I have created custom business object and method to call standard FM.

In workflow log I'm able to see the text entered in the pop-up. But I'm unable to bind 'REJ_TEXT' to task container element. Is there anyway to capture the text to workflow container elements.

Thanks In Advance..

Accepted Solutions (1)

Accepted Solutions (1)

StephaneBailleu
Active Contributor
0 Kudos

hi

You are on a decision step, Why don't you use on the first tab the comnent as mandatory for rejection ? It will do what you want.

The rejection comment will be available on the attachment you'll even be able to bind it to your own container element if you want to (type bor SOFM)

That is standard

Cheers

Former Member
0 Kudos

Hi Stephane,

You mean to say I have to mark reject as mandatory.

Former Member
0 Kudos

Hi Stephane,

Your solution fulfills my requirement. When I checked the mail it was showing an attachment. If we open the attachment then I'm able to see the text(rejected reason). How can I show the text in the mail body without attachment.

When I double click the attachment, I'm able to see the text.

former_member186746
Active Contributor

Hi,

This functionality is how it is out of the box. If you want to use the SOFM object as a text in the mail body. Then you have to create a custom method with which you can read the SOFM rejection reason attachment and put it in some multiline element container. I did a brief google search and at first glance it seems there are entire blogs on this very subject.

Kind regards, Rob Dielemans

StephaneBailleu
Active Contributor

Hi,

I agree with Rob, once you have the SOFM, you 'just' have to use the function module to read the message [something like SO_NOTE_READ) then you will get the text in a table of 255 caracters per line

you'll have to convert it to a line of 132 use function module SWA_STRING_SPLIT then you can put that in a table type SWNTTEXTLINE which you'll be able to use directly in your work item text or email.

That should help but as Rob says lots of docs are available on the web search and you'll find...

Cheers

Stephane

StephaneBailleu
Active Contributor
0 Kudos

Yes exactly sorry I am checking the forum commuting so no access to a system

Former Member
0 Kudos

Thank you very much.

Former Member
0 Kudos

Hi Stephane,

I found documents realated to attachments in mail and another way to include complete text in mail body.

Thank you very much for your reply..

Answers (0)