cancel
Showing results for 
Search instead for 
Did you mean: 

How ro Check Multiline Container element in Condition Block

former_member554978
Active Contributor
0 Kudos

Hi Al,,

I have scenario, where in i have a multiline element has 'USER' and it has 2 fields ID, and EMAIL.

In my activity value is clearly getting populated and its exported to WF container also.

I have checked condition as user.id EX and user.email EX then it shud do one process else WF shud completed.

iIn My casr i have value in ID but not in email, but the condition is always true.

What will be the issue?

Please how to handle with multine containet element in condition block?

Thanks and Regards,

Swaminathan

Accepted Solutions (0)

Answers (2)

Answers (2)

dirk_wittenberg
Contributor
0 Kudos

Hi,

do I understand you right: you have a table containing in each line a pair of id and email and you want to sent workitem to each valid pair?

One solution would be to create a block of type "dynamic parallel" or "dynamic sequential" looping over your multiline container element. Then in each single loop you are dealing with one line of your table and then it should be no problem to check the condition.

Regards

Dirk

bpawanchand
Active Contributor
0 Kudos

I would like to suggest , Instead of trying to check the condition with a multiple structure elements what you can do is.

1. In the BOR mehtod first export the Mutline container element and check for the condition , as in the bor you can access the entris through line type of the internal table. Once the condition failes set a FLAG and pass this Flag back to the workflow container, If this flag is set you continue to process the workflow if this flag is initial end the workflow.

or vice versaaa...

May be make sure you arem accessing the right entry each time and i think you can also make use of the LOGICAL operators in defining the condition...

[Check this|https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/accessingSingleEntryfromMulti-line+Element] to know how to access single entry from a multiline container element.

a<b AND b<c