cancel
Showing results for 
Search instead for 
Did you mean: 

Run Operating System Command Before Message Processing

Former Member
0 Kudos

Hello,

I have idoc to file scenario.The target file should have an header line. so then i have an exe for Run Operating System Command Before Processing in receive adapter. How can i call this exe in "Run Operating System Command Before Message Processing" and what is path format Run Operating System Command Before Message Processing?

Thanks in Advance,

Nurhan

Accepted Solutions (1)

Accepted Solutions (1)

Shabarish_Nair
Active Contributor
0 Kudos

addHeaderLine - http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/frameset.htm

have you tried that option ?

Also regarding the OS command, it should be a path in your PI server i.e the script needs to be placed in a PI OS level folder and <SID>adm user should have access to execute the script within that folder.

Former Member
0 Kudos

Sorry, not header line . At the top of the file sholud be an signatur.Format is :

<SIGNATURE=GNDPLU.GDF><VERSION=0222000>

thus a script is writed. This script should be in PI Server? How sholud be given path (format) for exe in Run Operating System Command Before Message Processing?

regards

Nurhan

former_member854360
Active Contributor
0 Kudos

Hi,

If windows server

Type like this here scrip.bat is the file kept in the folder /usr/sap/ima/Pi/ of PI server

cmd.exe /usr/sap/ima/Pi/scrip.bat

If Linux

sh /usr/sap/ima/Pi/script.sh

Former Member
0 Kudos

Hi Nuhran,

Write a batch file and place it in XI server and give the path name.

This link would help doing this.

/people/michal.krawczyk2/blog/2005/08/17/xi-operation-system-command--error-catching

regards

Ramesh

Former Member
0 Kudos

You need to put the Script on a directory in your PI Server.

In "Run Operating System ...." field, you can call your Shell Or BatScript like follow:

UNIX

sh /directory_path/shell_script.sh

WINDOWS

cmd.exe c:/directory_path/bat_script.bat

Former Member
0 Kudos

Thanks for your help

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Nuhran,

check this link:

http://wiki.sdn.sap.com/wiki/display/XI/SAPXIFileAdapterOSCommandLine+Feature

Fabio

Former Member
0 Kudos

Hi Nuhran,

Check the following thread which might answer your query.

regards

Ramesh