cancel
Showing results for 
Search instead for 
Did you mean: 

File receiver: Create empty file named "start.txt" at end of process

Former Member
0 Kudos

Hello,

When my file adapter finish the generation of file at the receiver server I want to create another empty file at the same directory named "start.txt". The use of that file if for a scheduled task of OS that only starts a process if start.txt file have been created (the process delete that file).

How can I do that? I've tried with OS command after precessing but that's for the XI OS not the receiver system SO...

Then I've seen that I can use ftp command but there isn't ftp command to create a file... only to transfer files.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Marshal,

Apart from the file generated by file adapter,we can generate the file named start.txt in specified location of the server through Custom Module.

Write simple custom module which generates a empty file named start.txt and cal the module in module chain of receiver side.

Regards,

RajeshKumar.D

Former Member
0 Kudos

Hi Rajesh,

Have you some example procedure to generate that module or something similar?

Thanks

Former Member
0 Kudos

Hi Marshal,

Development of Adapter Module

[https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/8690] [original link is broken] [original link is broken] [original link is broken];

[https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f013e82c-e56e-2910-c3ae-c602a67b918e]

[https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/7bf6e190-0201-0010-83b7-cc557eb76abe]

[https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/3339] [original link is broken] [original link is broken] [original link is broken];

E-Learning

[https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/media/uuid/e2235b71-0701-0010-9f85-b06c7d1c7a0e]

XI libraries for development

aii_af_cci.jar

aii_af_mp.jar

aii_af_ms_api.jar

aii_af_ms_spi.jar

aii_af_trace.jar

aii_af_svc.jar

aii_af_cpa.jar

[https://www.sdn.sap.com/irj/scn/wiki?path=/display/xi/xi%252blibraries%252bfor%252bdevelopment]

Where to get the libraries for XI development

[https://www.sdn.sap.com/irj/scn/wiki?path=/display/xi/where%252bto%252bget%252bthe%252blibraries%252bfor%252bxi%252bdevelopment]

Regards,

RajeshKumar

Former Member
0 Kudos

Thanks Rajesh for your help. Obviously I didn't implemented the solution yet but I will consider the thread answered by you

Answers (1)

Answers (1)

Former Member
0 Kudos

You can achive this using script.Write a script/bat to creat a file using ftp connection as well in the script and place in xi machine. Using OS command to call the script before the process ends.

Unix OS

Microsoft OS

Regards

Prabhakar