cancel
Showing results for 
Search instead for 
Did you mean: 

User Decision Note via UWL vs SBWP

Pyc
Participant
0 Kudos

G'day all,

If you use the 'Mandatory Justification' option on a User Decision, that comment is loaded into a specific container element called 'Decision_Note'.

If you use the XML configuration option of "<Property name="UserDecisionNote" value="mandatory"/>" then that comment is just loaded into _Attach_Objects

Is there any way to control where the comment ends up via UWL? My problem is that within the process I've already potentially got things in _Attach_Objects but these are purely internal documents, and I need the Rejection comment attached to an email sent out to a Vendor.

If it has to end up in _Attach_Objects is there a clever way to pull out the latest entry?

Many thanks,
Mark

Accepted Solutions (0)

Answers (2)

Answers (2)

matthiasp1
Member
0 Kudos

Hi Mark,

did you manage to solve this issue? I'm facing the same problem.

I think i need to copy the decision-note from _Attach_Objects into DECISION_NOTE of E-Mail Task. Somehow, I need to ensure that this information appears in this E-Mail Task, no matter if if comes from UWL (_Attach_Objects) or SBWP (DECISION_NOTE).

Regards

Matthias

suresh_subramanian2
Active Contributor
0 Kudos

Hello Mark !

            You've stated as follows:

I need the Rejection comment attached to an email sent out to a Vendor.

            Is that you want to send the rejection comment in e-mail ?

Regards,

S.Suresh.

Pyc
Participant
0 Kudos

Yes that's the required outcome.

My issue is identifying the rejection comment once it's been dumped in with everything else in _Attach_Objects.

I'm hoping to either control the UWL comment binding so it ends up in a specific container element, or have a nice way of pulling it out of _Attach_Objects. I know I can code my own method to pull it out, or do a programmed binding but hoping someone has a simple solution.

In the interim I've been able to avoid the issue by not placing anything else into _Attach_Objects and instead use my own specific container element to hold prior attachments, but I'm curious to know what's possible.

I find the disconnect between the 'Mandatory Comment' behaviour in SBWP and UWL surprising (disappointing at least).

Many thanks,

Mark

suresh_subramanian2
Active Contributor
0 Kudos

Hello Mark !

            All that is needed to send e-mail with rejection comment, collect the content of the 'Decision_Note' container to workflow container and bind this workflow container to mail step.

Regards,

S.Suresh.

Pyc
Participant
0 Kudos

Thanks Suresh.

The issue is not how to add the comment to the mail, but identifying the comment when using the UWL XML configuration option of "<Property name="UserDecisionNote" value="mandatory"/>" in which case the comment is loaded into _Attach_Objects rather than 'Decision_Note'.

Thanks,

Mark

suresh_subramanian2
Active Contributor
0 Kudos

Hello Mark !

          Please check the possibility of chaning the XML code to load the comment in 'Decision_Note' without altering the code that loads the rejection comment in _Attach_Objects.      

Regards,

S.Suresh.

Pyc
Participant
0 Kudos

Thanks Suresh, that's what I'm trying to find out about by posting this question...

Is it possible to influence where the comment is loaded into when using

"<Property name="UserDecisionNote" value="mandatory"/>" option within UWL XML.

Thanks,
Mark

suresh_subramanian2
Active Contributor
0 Kudos

Hello Mark !

          Please have a look at the following thread which suggests for applying patch:

                http://scn.sap.com/thread/1953021

Regards,

S.Suresh.

Pyc
Participant
0 Kudos

Thanks again, but my question is about where the comment is bound into. I've got no problems with mandatory nature of the comment as discussed in that link.

Have fun,

Mark