Skip to Content
0

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

Oct 16, 2017 at 08:28 PM

88

avatar image
Former Member

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..
wf1.png (36.3 kB)
wf2.png (13.6 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Stéphane Bailleul Oct 17, 2017 at 05:58 AM
0

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

Show 7 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi Stephane,

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

wf3.png (8.8 kB)
0

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

0
Former Member
Stéphane Bailleul

Thank you very much.

0
Former Member

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.

wf4.png (9.3 kB)
wf5.png (4.6 kB)
0

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

2

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

1
Former Member
Stéphane Bailleul

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..

0