cancel
Showing results for 
Search instead for 
Did you mean: 

FCC Receiver Communication Channel

Former Member
0 Kudos

HI Experts,

My scenario was Idoc to File.

Issue: In My target structure i have mapped A,B,C,D fields. I want only A,B,C at final structure.

I cannot ignore D field in message mapping as i am using that field for file name Substitution.

In my receiver CC i have given,

XX01.fieldNames: A,B,C

But still i am getting A,B,C,D in target structure.

thanks in advance

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

Use fieldFixedLengths for removing the D value.

XX01.fieldFixedLengths:10,10,10,0(Like)

XX01..fieldNames: A,B,C,D

Regards,

Prakasu

former_member189441
Active Participant
0 Kudos

Hi,

If you want to save the target file with the field name D..you can do like this

-->create UDF with the following code.

-->Map your D field from source structure to UDF.Dont map it to any target structure so that you can avoid D in target file

-->map return value of UDF to root node of target structure


DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");

String newfilname = D;//you have to give D field name

conf.put(key, newfilename);

check Filename in adapter specific attributes in Receiver file adapter

former_member192295
Active Contributor
0 Kudos

Hi,

We can ignore field follow below structure;

row.fieldNames A,B,C

row.fieldFixedLengths X,X,X

row.fieldSeparator X

row.endSeparator X

ignoreRecordsetName true

Configure above statement at receiver channel, it will work

former_member183906
Active Contributor
0 Kudos

stop using variable substitution and create the filename inside your mapping -

adapter specific attributes

Former Member
0 Kudos

HI,

Can you please give information more elaborately .

Thanks in advance

Edited by: G SHANTHI on Sep 26, 2008 1:23 PM