Skip to Content
author's profile photo Former Member
Former Member

Filtering IDoc Segments in Graphical Mapping

Hello,

I have a IDoc structure that looks similar to the following One.

IDoc

EDIDC40

Segments (1..Unbounded)

Field1

Field2

Field3

All of those unbounded segments should be mapped to a target SQL structure, but only in case field1 and field3 are present.

I was playing around with contextChanges etc. but until now I did not get the desired result. Do you have any idea on how to map those segments and fields to get the desired result?

Thank you very much!

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 19, 2007 at 04:20 PM

    Hi,

    You can achieve this in the receiver detrmination step , by using the X-path Expression...

    Regards,

    Mili

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 19, 2007 at 04:21 PM

    HI,

    Write a UDF and check whether the field 1 and field 3 value exists if it exists then only map the target field.

    Thanks

    Chirag Gohil

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Bhavesh Kantilal

      Hi,

      this sounds very feasable. I will try it. Just one more question for complete understanding:

      I will map all fields to be inserted with the exists functions and will also map the exists condition to the upper segment for insertion --> However is it enough to shift the context up in this case?

      I need a target SQL segment for each of the source segments where all the mandatory fields exist.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.