cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic file name in File adapter

Former Member
0 Kudos

Dear All ,

<b>Is it necessary to have XI 3.0 SP12 for Dynamic target xml file in file adapter . Currently we are using XI 3.0 SP9 .</b>

The Scenario is like this : IDOC-XI-FILE

I have to send one xml file per store for material master . In this case how can I define my file name with store name in File adapter configuration in ID .

Naming convention should be

<storename>_date_masterdataname.xmlwhere store name is one of field of IDOC .

Plz help me .

Thanks in Advance

Regards

Prabhat

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Prabhat

Yes SP12 is required. If you have SP12, you can use the variable substitution option in the File Adapter.

Basically to use the dynamic file name option, your final payload should have the the 'store name' as one of its field. Thats when the value can picked up by referencing the payload.

But in case your final output file should not have the 'store name' field in it, it is not a problem. That particular field also can be suppressed using a feature in 'File Content Conversion' parameters.

cheers

Sameer

Former Member
0 Kudos

Dear Arpit / samir / Manish ,

Thanks for the input . As suggested by Arpit we can make some changes in the <b>Module processor</b> . Could plz let me know where exactly I can write a code for <b>WriteFileBean Source(Process Function & Convert Function)</b>

Thanks in advance

Regards

Prabhat

Former Member
0 Kudos

Prabhat

Module Processor is a good option, but the blog suggested by Arpit, if i am not wrong, does not have a dynamic file name associated to it. In the sense it picks up the filename mentioned, from the sender file adapter.

So how is that going to help Prabhat, who needs a dynamic file name??

cheers

Sameer

Former Member
0 Kudos

Dear Samir ,

I agree with your suggestion and infact we are going for SP12 upgradation

But for my knowledge purpose I want to know <b>where I should write the code for the module processor</b> i.e Process function and convert function . I am not able to understand where I should write the java code mentioned in the Weblog.

Thanks in advance .

Regards

Prabhat

Former Member
0 Kudos

Hi Prabhat

The following links will help you in understanding the usage the module processor and to deploy,

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-code-samples... to develop a module for reading file name in a sender file adapter xi 3.0.pdf

http://help.sap.com/saphelp_nw04/helpdata/en/e9/61e1407e858031e10000000a1550b0/content.htm

cheers

Sameer

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

<i>>>Is it necessary to have XI 3.0 SP12 for Dynamic target xml file in file adapter</i>

Yes it is necessary. On SP9 u don't hav this facility.

You can do this either by updating to <b>SP12</b> or

u can achieve this with the help of <b>Module Processor</b>,for that go thru this blog

/people/sap.user72/blog/2005/07/15/copy-a-file-with-same-filename-using-xi

Regards

Arpit Seth

Former Member
0 Kudos

Hi Prabhat ,

Yes, you must have SP12.

Refer to this blog for more details

/people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i

Cheers

Manish