on 09-26-2008 11:37 AM
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
Hi,
Use fieldFixedLengths for removing the D value.
XX01.fieldFixedLengths:10,10,10,0(Like)
XX01..fieldNames: A,B,C,D
Regards,
Prakasu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
stop using variable substitution and create the filename inside your mapping -
adapter specific attributes
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.