cancel
Showing results for 
Search instead for 
Did you mean: 

File--to--file

Former Member
0 Kudos

Hi all,

Here is my scenario

File(windows sys)XI-File(Unix sys)--->SAP(Using Batch program)

Here my sender Windows system having file with extension .xfr and XI has to pick all these files and place it in Unix system.From unix system Batch Program will run and fetch all the files and place it in SAP.

But here the Batch program only triggers when it finds .wrk file in the target folder.

if it doesn't find .wrk file it will not run.So to make run that Batch Program we have to add the extension of first file(which is other than .wrk) with .wrk.

If XI finds no file with *.wrk in the folder Output(UNIX sys), then it adds extension .wrk to the

first file and triggers the SAP batch program, then it reads the file and processes it from

UNIX file system.

Any Suggestions..??

Thanks,

Kalyan.

Accepted Solutions (1)

Accepted Solutions (1)

santhosh_kumarv
Active Contributor
0 Kudos

Hi Kalyan,

Can you be more specific...

If the batch machine always looks for a .wrk file can't u create all the outbound files with extension .wrk in the receiver file adapter.

Thanks

SaNv...

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Kalyan,

If you want to modify the filename or extension, you can use Dynamic configuration.

On the Advanced tab of the sender file adapter, under Adapter Specific Message Attributes, select the checkbox next to File Name. Thus filename will be added to DynamicConfiguration section of SOAP header and can be seen via SXMB_MONI.

In you mapping program, you can access and modify this filename. For details see [this link|http://help.sap.com/saphelp_nw04/helpdata/en/43/03612cdecc6e76e10000000a422035/frameset.htm].

Again, in the receiver file adapter, on the advanced tab, under Adapter Specific Message Attributes, select the checkbox next to File Name. This would overwrite the target file name with the name modified in the mapping.

Hope this helps.

Regards,

Riyaz