on 08-06-2008 7:40 PM
its an IDOC to file scenario....
there is a feild called document in receiver feild.it can get two values xyz and ABC.
If document = XYZ then XI create file with u201Cxyz.txtu201D name and places in the path
XYZ
ELSE XI creates file with u201CABC.txtu201D name and places in path
ABC
what are the steps we need to do in ID..
do i need to go 2 receiver CC ,2 receiver aggrements,2 receiver determinations
hi
you have to use variable substitution.
do this in the data type add a new node called FILE with a field called FILE_NAME. E.X
<DT_fileReceiver>
<header>
...<field1>
...<field1>
...<field1>
<details>
...<field1>
...<field1>
...<field1>
<FILE>
...<FILE_NAME>
in the mapping validate the value of <FILE_NAME>. that means:
<FILE_NAME>="abc" or
<FILE_NAME>"xyz"
in the ID --> receiver Communuication channel mark the option variable substitution and put this:
variable....................................................value
file...........................................................payload:DT_fileReceiver,1,FILE,1,FILE_NAME,1
in the file name textbox put %file%.txt
also see this blog
in case you need to use FCC put this
FILE.fieldNames................ FILE_NAME
FILE.fieldFixedLengths................ 0
FILE.fixedLengthTooShortHandling................ Cut
Thanks
Rodrigo
Edited by: Rodrigo Alejandro Pertierra on Aug 6, 2008 5:10 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You don´t need 2 CC. Check these blogs to deal with dynamic folder and file:
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.