Skip to Content
author's profile photo Former Member
Former Member

Process File on Application server

Dear All,

I have a requirement when ever a file is stored on application server, it should be automatically processed. the file has the data same as IDOC SYSTAT01. So it changes the idoc status for other o/b idocs. One proposed solution is STARTRFC trigger as soon as file arrives at application server. COuld some one guide the steps to set it up.

ANy pointer will be highly appriciated.

Kind Regards

Ashish

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Feb 15, 2010 at 08:58 AM

    > I have a requirement when ever a file is stored on application server, it should be automatically processed. the file has the data same as IDOC SYSTAT01. So it changes the idoc status for other o/b idocs. One proposed solution is STARTRFC trigger as soon as file arrives at application server. COuld some one guide the steps to set it up.

    >

    you could write a small script that is executed every minute.

    Markus

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 15, 2010 at 02:48 PM

    Hey Markus,

    Thanks for the reply. What I understood is ..the script should run of the Non SAP system from where file is coming.

    Can you provide the details required from SAP side for this.

    I believe..it should be STARTRFC command...and some function module to change the Idoc status....not sure??

    Thanks

    Ashish

    Add a comment
    10|10000 characters needed characters exceeded

    • > Thanks for the reply. What I understood is ..the script should run of the Non SAP system from where file is coming.

      Depends on where the file is put.

      > Can you provide the details required from SAP side for this.

      > I believe..it should be STARTRFC command...and some function module to change the Idoc status....not sure??

      That depends which function module you're calling.

      We use a script to get data from an FTP server (from the SAP application server); if the server downloads a file it will be uploaded to the SAP IDOC inbox using startrfc, yes.

      What you have call and how you find out whether there's a file or not must be decided at your side, we call it like

      $PROGRAM -balanced -3 -d $DEST -u $USER -p $PASSWORD -c $CLIENT \
                  -I $LANG -s $DEST -F $FUNCTION -g $LOGONGROUP \
                  -h $MSGSERVER -E PATHNAME=$i -E PORT=$PORT

      where $PROGRAM is 'startrfc' and $FUNCTION = 'EDI_DATA_INCOMING'.

      Markus

      Markus

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.