cancel
Showing results for 
Search instead for 
Did you mean: 

container

Former Member
0 Kudos

while creating container why we set multiline property for it.

<u>CollectEmhdr</u> is used to retrieve Abstract form of IDOC type ZEMHDR.ZEMHDR02.

<u>CollectEmhdrlist</u> is used to collect the IDOC of type ZEMHDR.ZEMHDR02 , and so we have set its Multiline as true.

Accepted Solutions (1)

Accepted Solutions (1)

santhosh_kumarv
Active Contributor
0 Kudos

>>CollectEmhdrlist is used to collect the IDOC of type ZEMHDR.ZEMHDR02 , and so we have set its Multiline as true.

The answer is there in your qurey itself as I replied in the other post.

Multiline is use whenever you are collecting messages using that container variable. It appends messages.

If multiline is not checked it would overwrite the message and at the end the container will only hold the last message that was received.

>>CollectEmhdr is used to retrieve Abstract form of IDOC type ZEMHDR.ZEMHDR02.

This receives only one iDoc and hence no need to set the multiline option.

Thanks

SaNv...

Former Member
0 Kudos

ONE LAST QUESTION

THEN WHY TWO CONTAINER VARIABLES ONE IS ENOUGH?

santhosh_kumarv
Active Contributor
0 Kudos

>>WHY TWO CONTAINER VARIABLES ONE IS ENOUGH?

Yes. But the use case would have been diff.

Check if both the variables are used in the same BPM. It would not be the case.

Or there might have been two declacration and only one would have been used.

Thanks

SaNv...

PS: Do not use all caps in writing. It is same as shouting in the forum.

Answers (1)

Answers (1)

santhosh_kumarv
Active Contributor
0 Kudos

Hi,

Couple of things like any programming language.

1. Container is like a local variable of a function that is it holds the mesage that are passed to it and used in the BPM transformation.

2. If you are passing multiple value or an array of values the Continer should be enabled as multiline container. It is similar like an array variable.

In case of collect pattern multiple idocs are of same time i.e. an array of idoc is passed to BPM to store this the container variable is enabled as multiline. So every IDoc messages are appended with the existing message for that instance.

Thanks

SaNv...

Former Member
0 Kudos

i have provided an example

first is for abstract form and second is set to multiline.

can you explain the example