Skip to Content

Executing a Command in a Local Computer (not the app server).

Hi ABAPers.

Hope you could help me.

I need to execute a Java program via which is in a local computer (let's say my laptop) which, obviously, is not the application server. That's because such Java program must access to a serial port in that local computer to get certain values.

I've seen that for executing external commands I can use RFC destinations... can I set my local computer as a RFC destination (and how) to directly execute the command? Would there be any alternatives -no way with executing the command in the app server- to execute that Java command?

Thanks in advance.

Kind Regards.

Santiago.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Jan 13, 2015 at 04:08 PM

    Hi,

    There is also a way to use external commands I have used this approach here:

    Creating Excel the Java way

    The benefit is that you can run it in back ground job.

    Do you need to get data from the PC to SAP ?

    Do a google using search operators:

    site:scn.sap.com JCO

    Can you modify the java program code ? do you know Java ?

    Regards. 

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 13, 2015 at 02:10 PM

    Do you have the possibility of amending the Java program?

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 13, 2015 at 02:31 PM

    Hi Again.

    I've found an alternative to execute the program (but I don't know whether it's secure).

    It consists on launching the command with cl_gui_frontend_services=>execute, passing java as the command and the rest of the calling parameters as a string in parameters.

    Have any of you ever tried this?

    Kind Regards.

    Santy.

    Add comment
    10|10000 characters needed characters exceeded