cancel
Showing results for 
Search instead for 
Did you mean: 

How to Run OS command before msg processing with out source file

Former Member
0 Kudos

Hi all,


Requirement:

My sceanrio is File to RFC

Here I am running script file using Run OS command before message processing in sender CC, it will excute the .sh file and i will do all operating and will create a file in source direcry, CC will pick the file and will process.

It is working fine, but the problem is .sh not getting invoked when the file is not available in the soucce directory.

Could you please advice how to invoke the .sh file whether the file available or not.

Thanks,

Ramesh.D

Accepted Solutions (0)

Answers (2)

Answers (2)

robertot4s
Active Participant
0 Kudos

Hi Ramesh,

The OS commands are only executed when a message is found, this is how the file adapter works.

If you want to execute OS commands periodically:

- Create the command in SM69 transaction

- Create a report that executes this command with function module SXPG_CALL_SYSTEM.

- Create a job for this report

Regards,

Roberto

Former Member
0 Kudos

In addition to the above query, do we have any adapter module/bean to execute OS command with out source file in the source directory.