cancel
Showing results for 
Search instead for 
Did you mean: 

receiver condition

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

rodrigoalejandro_pertierr
Active Contributor
0 Kudos

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

Answers (1)

Answers (1)

Former Member
0 Kudos

You don´t need 2 CC. Check these blogs to deal with dynamic folder and file:

Former Member
0 Kudos

do we need to go with 2 receiver aggrements

rodrigoalejandro_pertierr
Active Contributor
0 Kudos

hi,

you only need one receiver determination one receiver agreement one sender one interface determination, because using variable substitution or Dynamic Configuration you determinate in runtime the file name.

Thanks

Rodrigo