cancel
Showing results for 
Search instead for 
Did you mean: 

File Archive When file adaptor is Receiver

Former Member
0 Kudos

Hi,

How to Archive the File when the File Adaptor is Receiver?

My scenarios is IDOC TO FILE.

regards,

Ansar.

Accepted Solutions (0)

Answers (3)

Answers (3)

Shabarish_Nair
Active Contributor
0 Kudos

No standard way via the adapter but then you could write a script or create a batch file (and schedule it) to acheive the functionality.

Former Member
0 Kudos

Hi,

YOu can just create anyother file adapter and place the archive folder path.

But this is just a way to place the file in the folder. I guess it will not provide you with the actual functionality.

Regards

Vijaya

Former Member
0 Kudos

HI,

1.<i>you can try creating your own adapter module for

that and use it in the file adapter</i>

--- How to write Adapter module and where to write?

2. <i>Add Timestamp, Add Counter , etc .,You can use any of these options? Is this what you are looking at?</i>

-


I am looking for to take a backup of the file which was generated by XI through idoc to file scenario.Bcoz this file is will be read and deleted by another application(:: I need to store the file in another folder).

3. <i>write a script or create a batch file</i> ...

--- Can u plz give some more information...

4. <i>create anyother file adapter and place the archive folder path</i>

--- I created like that but not working (ie. Receiver determination I am unable to give 2 communication channels..)

thx,

Ansar.

bhavesh_kantilal
Active Contributor
0 Kudos
former_member206604
Active Contributor
0 Kudos

Hi,

You can go for "Run OS command after Message Processing"

Command for NFS file receiver adapter

copy
path\filename.xml
path\ArchiveFolder

Regards,

Prakash

Shabarish_Nair
Active Contributor
0 Kudos

<i>3. write a script or create a batch file ...

--- Can u plz give some more information...</i>

>>>>

A simple thought;

make a batch file (copy the following code in notepad and save it with ext. as .bat) and put it into your output folder where Xi writes the files.

echo ON

copy . <target directory ex. c:\test>

cd\

cd <targ. directory>

del *.bat

and schedule it say via a windows scheduler

Former Member
0 Kudos

Hi Prakash,

<i> copy
path\filename.xml
path\ArchiveFolder</i>

I given like this path...It is not working....I tried with this path from command prompt it is working there...But when I given this in XI it is not working....

Can u plz tell me...

regads,

Ansar.

former_member206604
Active Contributor
0 Kudos

Hi,

I think the problem is with the path. Try creating a batch file and you execute the batch file and check if it is working fine. Then try calling the batch file from the communicaion channel. Calling batch file should be like this you need to give the clear path
path\archive.bat.

One more thing login into XI box and try that same command from XI. See if it is working.

Regards,

Prakash

Shabarish_Nair
Active Contributor
0 Kudos

make a batch file as follows;

<i>echo ON

copy . <target folder>

cd\

cd <target folder>

del *.bat

exit</i> (edit the logic as u need)

and in the CC call the batch file by the OS command

START <batchfile name>.

Make sure you have the batch file placed in the output folder.

Former Member
0 Kudos

I have the same issue. Is this issue being solved ?

If at all , can you please let me know the solution .

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

You have options in the file creation mode like,

1. Add Timestamp

2. Add Counter , etc .

You can use any of these options? Is this what you are looking at?

Regards,

Bhavesh

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

there is not way to do it in standard

you can try creating your own adapter module for that

and use it in the file adapter

or set up a rule that will send two files

(one for destination system and one for archive system)

if this is suitable for your (with all the consequences)

Regards,

michal