cancel
Showing results for 
Search instead for 
Did you mean: 

Receiver FCC Problem

GabrielSagaya
Active Contributor
0 Kudos

Hi all,

My Scenario is IDOC to File.

My Requirment is to produce the Sample Text File as

f1*f2*f3
f4*f5*f6
f7*f8*f9
f4*f5*f6
f7*f8*f9
f4*f5*f6
f7*f8*f9

Here Body1, Body2 Values are coming in alternative side.

Based on the Occurences of E1MARAM Segments, We should have as many as Body1 , Body2 Values repeated as an alternative node.

But I am getting the Output as

f1*f2*f3
f4*f5*f6
f4*f5*f6
f4*f5*f6
f7*f8*f9
f7*f8*f9
f7*f8*f9

Here Body1,Body2 Values are grouped together.

I Created the Datatype as

RecordSet
    Header    1-1
      f1,f2,f3
    Body1     0-unbounded
      f4,f5,f6
    Body2     0-unbounded
      f7,f8,f9

Is there Any Possible Solution to have Alternate Segments Body1,Body Values in text File.

Thanks

Gabriel

Accepted Solutions (0)

Answers (2)

Answers (2)

vijay_b4
Active Contributor
0 Kudos

Hi Gabriel,

Change the Structure in data type as

RecordSet
    Header    1-1
      f1,f2,f3
    Body         0-unbounded
      Body1     0-1
       f4,f5,f6
      Body2     0-1
       f7,f8,f9

so that you can get alternative values, as Body repeats as many times as your condition is true.

in FCC, provide the RecordSet Structure as Header,Body1,Body2

Thanks & Regards,

Pragathi.

Former Member
0 Kudos

Hi,

Yes, I think your problem will be solved if you make a little change in you target srtucture.

Header 1-1

f1,f2,f3

Body 0-Unbounded

Body1 1-1

f4,f5,f6

Body2 1-1

f7,f8,f9

Just have Body 1 and Body 2 under one header node and you can keep the occurance as 1-1 or 0-1 as per ur reqirment.

regards,

shweta.