on 08-26-2008 2:51 AM
Flat file structure.
I need FCC parameters for this.....receiver fat file...
orders
recordset
Head
field1
field2
field3
Body
field1
field2
field3
Tail
field1
field2
field3
IDOCNUM (ADDED JUST BECAUSE RECEIVER FILE WANTED WITH THE IDCO NUMBER AS THE FILE NAME)
The last field IDOCUM is not in the structure. we just added to get the name of the file at the receiver.
Edited by: Harsha reddy on Aug 26, 2008 3:51 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Record structure : Head,Body,Tail
processing parameters :
Head.fieldNames=field1,field2,field3
Body.fieldNames=field1,field2,field3
Tail.fieldNames=field1,field2,field3
Head.fieldseparator : ,
Body.fieldseparator : ,
Tail.fieldseparator : ,
For IDOCNUM field Use UDF to have DynamicConfiguration as mentioned in michal blog.
idocnum>myUDF>field1(Head).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Through variable substitution technique we can get idoc no as file name. Follow below configuration at receiver channel.
filename %var%
Under variable subsstitution option
var = payload:idocname,1,segmentname,1,IDOCNUM,1
for file structure choose keyfield mechanism we can get structure
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For content conversion you can refer to blog that Swarup has suggested
for getting IDOCNUM as filename write this UDF in mapping
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
conf.put(key,a); // a is IDOCNUM from source structure - input to UDF
String ourSourceFileName = conf.get(key);
return ourSourceFileName;
IDOCNUM -> UDF-> Root of target
As you dont have element at target to map this UDF to, map o/p of this UDF to root node of target.
Also select Adapter Specific Message Attributes in receiver File adapter...select File name
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Harsha,
For content conversion refer:
FCC:
Sender -
Key value:
TAB delimited
NAB the TAB (File Adapter)
Receiver FCC no need of Endseparator
Receiver-
Regarding getting ur file name as IDOC number u can use variable substitution technique for this,use IDOC number field as variable.
For procedure refer the following links:
Variable substitution :
Basically when you specify the target directory and file name schema, you now have the option of setting variables and defining them in a table. The variables are replaced by elements from the XML structure at runtime.
Contrary to the description in the documentation, you cannot yet replace with attributes from the XI message header. Do not use the prefix during variable substitution.
PLz do refer the following links:
http://help.sap.com/saphelp_nw2004s/helpdata/en/8e/464442c1a1c253e10000000a1550b0/content.htm
Also see the below links to use the dynamic variable substitution
For dynamic configuration:
We can update Runtime parameters of adapters (like filename in case of File adapter) using DynamicConfiguration.
Check these links:
Regards,
Vinod.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.