cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic FileName generation

Former Member
0 Kudos

Hi,

I have a source idoc xml file and the target structure has only 2 fields. Mapping contains only 2 fields which is used from the idoc and put to the fields in the target strucuture.

After transformation, I need to create a file with the filename in the format <idoctype>_<idocnumber>.xml. And also the idocnumber will be of certain length like 15 digits. if the idoc number is 2343 then the file name should be <idoctype>_000000000002343.xml.

If the value was to be picked in target payload then variable substitution would be the answer. But in this case it is from the source payload,

Please guide me.

Regards

Shashi

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

refer this blogs..

/people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i - Dynamic File Name Part 1

/people/jayakrishnan.nair/blog/2005/06/28/dynamic-file-namexslt-mapping-with-java-enhancement-using-xi-30-sp12-part-ii - Dynamic File Name Part 2

Might help you

Thanks,

vasanth.

Answers (1)

Answers (1)

Former Member
0 Kudos

Thanks.