cancel
Showing results for 
Search instead for 
Did you mean: 

determine number of lines of multiline container in ccBPM

Former Member
0 Kudos

Hi guys,

during my process a loop over a multiline element and send each entry to SAP backend.

After shipment of the message the process waits for some time, to prevent problems caused by parallel messages in the backend.

At the moment I use a block in the "for each" mode. But with this solution the wait step is executed unnecessary, after sending the last message of the multiline container variable.

Is there a possibility to check the number of entries and solve this issue with a normal loop step and preventing the process for unnecessary wait step?

I search SDN for some information relating this issue, but without success.

Any help appreciated, thanks in advance

Kind regards

Jochen

Accepted Solutions (0)

Answers (1)

Answers (1)

Shabarish_Nair
Active Contributor
0 Kudos

do you mean to say you want to know how many messages are there as part of the multiline container?

if so, you can always count the number of messages received by a container operation (assign) which will act like a counter.

Ref: http://help.sap.com/saphelp_nw04/helpdata/en/08/16163ff8519a06e10000000a114084/content.htm

(Payload-Dependent Loop)

Former Member
0 Kudos

Hi Shabarish,

thanks for helping.

You are right I want to know how many entries are in the multiline container.

I also thought about an export parameter in the transformation step where the multiline message is created.

In this parameter I could return the number of entries.

Maybe this would be an adequate approach for this issue.

Unfortunately I wasn´t able to evaluate such a export parameter, when I tried it last time.

I mentioned the issue in this [thread|;.

maybe you know how to solve this issue..?

kind regards

Jochen

Former Member
0 Kudos

Hi,

I solved this issue by using an export parameter in the mapping.

This parameter contains the number of entries and is evaluated in the switch step.

Thanks for helping

Kind regards

Jochen