cancel
Showing results for 
Search instead for 
Did you mean: 

Run Operating System Command Before/After Message Processing (ERROR_OSCMD_NOT_ALLOWED)

Former Member
0 Kudos

Good afternoo,

In the environment I'm working, there are Z program that generates the files (.txt) in the server, in the path \ \ Lob-srvhodie \ sfaqas \ SFAOUT, then zipping need these files in a single folder for later move these folders to the legacy system via FTP, I am researching on the following subject:

In communication channel receiver chn_rcf_ftp_generic_mc1_z need to define the "path" batch that will be executed to zip the folder that is created to execute the program ZPSDR_019 (generates the files. TXT).

The batch archive save in folder on server \\Lob-srvhodie\sfaqas\SFAScript\script.bat

but still can not run the process successfully: generate the file (this is ok 100%, the. TXT are generated in the correct folder) and then generate the zip files (that's the point I'm trying to make it work). The Batch is created correct, when you run the batch "in hand" all existing folders in the directory are zipped correctly. The detail is: how should I put the call in this batch communication channel?

When i saved the comunication channel i receive the message: ERROR_OSCMD_NOT_ALLOWED.

In attach image of communication channel and the attempts.

Anyone have info on the subject?

tks, Vinícius Caetano

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Vinicius,

Please check note 1717530 - PI File Adapter OS Command error - ERROR_OSCMD_NOT_ALLOWED

Assign the role SAP_XI_CONFIG_FILE_OS_CMD_J2EE to users' who define Operating System commands in File/FTP Adapter channels

Award points if useful.

Thanks,

Ravi

Former Member
0 Kudos

Ravi, Good Morning!

Thank you for feedback.

Our environment is in version:

SAP_BASIS: 730

Level: 007

Support Package: SAPKB73007

The note that you spent refers to the PI environment 7.31.

The BASIS professional this role not found in our environment.

Do you have to define the permissions that are part of this role SAP_XI_CONFIG_FILE_OS_CMD_J2EE? To set permissions "manually"?

tks, Vinicius Caetano

Former Member
0 Kudos

Good afternoon,

Please, someone has the role SAP_XI_CONFIG_FILE_OS_CMD_J2EE in their environment and can pass me all the permissions that are associated with this role?

In the environment I'm working on this role does not exist. I need to set the permissions of that role to resolve the problem mentioned above.

tks, Vinicius Caetano

Former Member
0 Kudos

Hi Vinicius,

I think you need to create this role as a single role without any authorizations.

For explaintation refer to Note 1645844 - PI SEC: Missing authorization check in Integration Builder

Thanks,

Ravi

Answers (0)