cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to trigger an ABAP program using a scripting language

former_member532419
Discoverer
0 Kudos

Hi Everyone,I have a File to File scenario where the sender is placing the file in a designated FTP folder location and PI is picking the file and placing the file in AL11 folder in SAP ECC. Now this file is being used by an ABAP program to produce a report.I need to know if it is possible to have a OS command to run this ABAP program so that it can be used in the Communication channel.

Accepted Solutions (0)

Answers (5)

Answers (5)

Muniyappan
Active Contributor
0 Kudos

  • if you are creating brand new File to File interface for this program, and want it to be realtime, you could make it to File to proxy. Calling ABAP program after placing files it is not possible with OS command i guess as only via job scheduling it can be done.

  • Or you can also schedule the File to File interface and make it scheduled. And make the ECC job run after PI interface done executing. In this case also error may come as if PI interface does not deliver any files during that run
juan_suros
Contributor
0 Kudos

Yes, you can do this. I think you want a synchronous call to SAP that runs the upload report. The method will depend on the type of OS:

Windows - Use .NET connector to call a RFC enabled function module. See OSS note 2512851.

Linux - I think you must use JAVA connector to call RFC enabled function module. See this site.

matt
Active Contributor
0 Kudos

"Is it possible to trigger an ABAP program using a scripting language"

Yes.

If it can call web services, for example.

srikanthnalluri
Active Participant
0 Kudos

Rohit, May be you can create a wrapper program (For every 5 mins this program will look at the folder for file) which will call the main program (Right now it is running in back ground). This wrapper program would check for the file, if there is a file main program should be kicked in as a back ground job.

But please wait for the experts suggestions.

former_member366655
Active Participant
0 Kudos

Hi Rohit,

I would like to know why do you want to run the ABAP Program from PI , instead schedule a Job at ECC.

Regards,

Vivek Jain

former_member532419
Discoverer
0 Kudos

Hi Vivek,

There was a Job which was scheduled to run at a specific time(for example 2 am ) for this purpose. But the problem which we encountered was whenever the file got placed beyond that specific time (for example 2:15 am) then the job would have already ran and since the file was still not there it created error.

Hope it explains.