Skip to Content
avatar image
Former Member

INVOIC02 mapping problem

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Jan 12, 2009 at 10:18 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 12, 2009 at 10:09 AM

    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

    Add comment
    10|10000 characters needed characters exceeded