cancel
Showing results for 
Search instead for 
Did you mean: 

Generate EDI_DC segment based on certain value

Former Member
0 Kudos

Hi,

I have to generate EDI_DC segment (which is mandatory)only if my input CSV file has column A value = 1 or 2. If it is something else, then I don't have to generate EDI_DC segment and just initialize some global variables. My problem is that if I use a function which checks this condition and use createif node function later to generate EDI_DC segment based on the column A value, I get an erro.

This is what I am doing in Graphical Mapping:

Column A --> UDF ( check the value of A and set a flag true if it is 1 or 2 else set it to false and initialize global varaibles) --> creatif --> EDI_DC.

Typically, my file has first 2 record's column A set to something else so that I can do some initialization. But this value generates a false flag that means DO NOT CREATE EDI_DC. This generates an error as it is a mandatory segment in the target.

What do I do here?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

have a look on this weblogs about EDI_DC40:

/people/michal.krawczyk2/blog/2005/09/01/xi-idoc-adapter--edidc40--demystified

/people/sravya.talanki2/blog/2005/12/02/manipulating-idoc-control-records-from-payload

/people/james.guanzon/blog/2006/03/23/how-to-support-industry-standards-in-xi-part-ii-of-iii--mapping

Mickael