on 09-14-2011 6:48 PM
Hello,
I am having a problem with a message mapping.
I am trying to split an idoc into multiple idocs based on the content of the idoc. My idoc is CREMAS and I need to create a separate idoc for each company code which is in the segment E1LFB1M-BUKRS. I am able to split the idoc based on the company code successfully.
However, my issue is with copying the other segments underneath the segment E1LFB1M that have 0..9999 occurrences in each idoc.
For example, I use copyvalue for segments EDI_DC40 and E1FLA1M which worked great for all the idocs created since they have a single occurrence, however the copyvalue does not work for segment E1FLM1M (purchase orgs) which has 0..9999 occurrences. The copyvalue for E1FLM1M only copies 1 segment per idoc message instead of the 6 E1FLM1M segments for each idoc that I have in my example.
Any suggestions on how this can be solved?
Thank you.
Rhonda
Hello,
Can you provide a sample input and output value (just include the relevant nodes)?
Regards,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
can you please try with UseOneAsMany function.
BestRegards
Giri
Edited by: Giriii on Sep 15, 2011 8:03 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Rhonda
You can use CopyValue() to copy the value of a position in the source structure and assign it to a target field for a frequently occurring source structure element. The value is copied each time the target field occurs in the target structure.
It will work for the segments which are occuring once in seource, Not for the multiple segments.
Regards
Raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.