Skip to Content
avatar image
Former Member

Problem with Run Operating system after Message Processing in file adapter.

Hi All,

We are placing a file at FTP folder with name as "order_prd.txt" and we are executing one operating file (RCVPRD.cmd) which has some function to run to upload the data into some database.Once it is done the content from "order_prd.txt" has to change to "order_prd.Prev" and delete the original file.

The problem here is my File adapter is reading the operating file but it is not doing the fucntions which we mentioned in the cmd file. I saw in one of the SAP note that it cannot run the cmd file which you keep at FTP server and they suggested us to keep that in our XI server.But this doesn't serve my purpose.

Is there any way I can achieve read the operating file which I kept at FTP server and run the functions in it.?

Thanks

Seema.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Sep 02, 2008 at 02:36 AM

    Hi,

    Please confirm on the OS that you have where your FTP/NFS exist, can be used only on a Unix or Linux system

    OS commands -

    Ref:

    Run Operating System Command Before/After Message Processing -

    http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm

    Also to catch errors - https://blogs.sap.com/?p=40675

    Thanks

    Swarup

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 02, 2008 at 03:19 AM

    Dear Reddy,

    You can use Operating system command only in NFS .In FTP it doesnt support OS.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 02, 2008 at 04:53 AM

    Hi,

    u can use a batch file which can schedule at OS level if it is an FTP server.. or else we can schedule it by using an ABAP scheduler to the local directory of XI server where in we can process from there..

    this is an alternate for processing the runtime operating system comand while accessing from FTP server..

    regards

    Kishore

    Add comment
    10|10000 characters needed characters exceeded