on 01-12-2009 10:03 AM
Hi there,
I have source structured as outlined in the picture below.
http://www.flickr.com/photos/24514021@N04/3191132894/
I'd like to use KRATE to populate a field in the target structure if KSCHL = "ZMTZ". The problem is that
KSCHL does not occur in all E1EDP05 segments. Not sure what am I supposed to do to make this work.
Thanks for any suggestions.
Best regards
Sven
Hi,
I think MapWithDefault will solve your problem. In your mapping just use MapWithDefault function with KSCHL and give some arbitrary value and very time before using/mapping check KSCHL value.
By doing so whenever KSCHL will not be coming in any E1EDP05, MapWithDefault will creat the field KSCHL with the default value and then you can check if it fulfills your condition or not.
Regards,
Sarvesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
sry for the delays, many thx for your answers. Looks like its slighty more difficult.
I uploaded a new screenshot to flickr . The problem is that D_5004 is populated
with the wrong value, it should be set to 230.00 (because thats the KRATE for
KSCHL = "ZMTZ" but no matter what I do it ends up with either 1084.00 or
nothing at all.
http://www.flickr.com/photos/24514021@N04/3190619539/
KRATE is mapped to D_5004 with context set to E1EDP01.
Is there anything I'm missing?
Thanks again, your help is much appreciated.
Hi Sven,
Since the occurence of E1EDP05 is 0..99; it seems that you have some problem related to the context change in your field mapping.
1084.00 must be a value of KRATE in one of the E1EDP05 segment ( may not be the one with KSCHL = "ZMTZ").
Can you provide the input data and the generated output ?
Thanks,
Pooja Pandey
One more thing which I think you have not done.
Have you implimented the same mapping to field "KRATE" while mapping to D_5004 as you have done with KSCHL, If not then do exactly same mapping as you have done for KSCHL to G_SSG39.
Something like this...
http://www.flickr.com/photos/23639237@N02/3190807923/sizes/o/
Regards,
Sarvesh
Edited by: Sarvesh Singh on Jan 12, 2009 8:45 PM
Just make sure if there is any default value you could pass to the field KSCHL. If yes, you may use a condition with function exist to check whether the field is present. If yes map further, if not map the default value. In case no value is present you may pass blank constant or simply ignore the node.
Regards,
Prateek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
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.