cancel
Showing results for 
Search instead for 
Did you mean: 

start a windows batch file from SAP XI

Former Member
0 Kudos

Hi experts,

I have a batch file in folder C:\ on a windows system.

I would like to schedule this job in SAP XI so that SAP XI is starting this batch once a day.

Can anyone tell me how to achieve this?

Thanks and Regards

Sebastian

Accepted Solutions (1)

Accepted Solutions (1)

sbuttler77
Active Participant
0 Kudos

Hi Sebastian,

have you tried to schedule a job in SM36 using external command/program?

Regards,

Sven

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Sven,

this sounds like what I am looking for.

My batch file is located in C.\tmp and called x.bat

The batch file is started but i n hte job there is all the time the prefix D:\usr\sap\MS7\DVEBMGS01\work which should not be there.

Does anyone have a idea how I could remove this?

Regards,

Sebastian

Edited by: Sebastian Geissler on Sep 23, 2008 11:10 AM

sbuttler77
Active Participant
0 Kudos

Is this your user's working directory? If it works the way it does in R/3 you can change this with TA SO21.

former_member183906
Active Contributor
0 Kudos

CC u can make like this.

Command line serve to execute a batch file in XI server, not in FTP server.

If you want to create a directory in windows system, you must create two batch file:

One in XI server, calling with remote shell the second batch (in windows system)

One in FTP server, creating the directory.

Further, you can use AVAILIBILITY TIME PLANNING in RWB for this CC to schedule.

Former Member
0 Kudos

Hi,

At the same time, if you want XI to run a batch file, you need to specify the batchfile name and path in sender communicatoin channel setting.

Go to processing tab in sender communication channel, you have an setting called

Run Operating system command before message processing or after messaging processing.

specify the command line of ur batch file

Regards,

KRish

Former Member
0 Kudos

Hi,

If you want XI to pick up the file at particular time and date, you need to configure the sender communication channel in Availability time planning section.

There you can customize your communication channel to pick up files as per your requireemnt.

Go to component monitoring and click adapter engine, in the top right corner, you will availability time planning!

Regards,

Krish