cancel
Showing results for 
Search instead for 
Did you mean: 

multiple idoc segment values to field fixed length FCC

Former Member
0 Kudos

Friends,

I need help to resolve a mapping issue. here is the brief about the scenario.

Scenario: IDoc to Flat file Fixed length fields

Issue: Idocs has values in multiple segments. i need to check condition for each segment occurrence if value exists then pass value if not then pass constant (i have to pass constant so that i can get the actual column width after FCC)

Iam using the following logic.

If condition then value1 -> remove contexts -> split by value -> target

My scenario works fine for the above mapping however when i try introduction a constant in "if then else" then all my contexts in the target structure messes up.

Thanks for your help.

Regards,

Pavan

Accepted Solutions (1)

Accepted Solutions (1)

justin_santhanam
Active Contributor
0 Kudos

Did you tried MapWithDefault before Remove Contexts? To give more perfect solution , we would like to see a sample structure.

raj.

Answers (1)

Answers (1)

Former Member
0 Kudos

Solved,

I wrote a UDF to replace the suppress values with Blanks.

Thanks,

Pavan