Invoking a specific function in a EXE by passing parameters

Hi,
I have a FoxPro exe file which has three functions and i want to invoke each function separately by passing parameters.
I want to invoke this functions from java.
Can any one help me out please?

Hi paulcw
i have a foxpro exe and this exe accepts some parameters. I need to invoke this exe from java.
i am able to invoke this exe from command prompt by passing parameters.
my java code looks like this.
Runtime runtime = Runtime.getRuntime();
String[] cmdArray = new String[] {
                                             "cmd",
                                             "/c",
                                             "C:\\foxprotrigger.exe",
                                             "G",
                                             "C:\\dbpplus.dbc",
                                             "ppbanks",
                                             "C:\\Trigger.txt"
               Process process = runtime.exec(cmdArray);
               process.destroy();In above code 'G', "C:\\dbpplus.dbc","ppbanks", and "C:\\Trigger.txt" are parameters to my exe.
when i run this class , no error comes but the exe is not working.
Could anyone please tell where am i wrong?

Similar Messages

  • RFC Error While Invoking A Remote Function Module.

    I am invoking A remote function module while invoking it get  an exception when i see the error logs
    com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException:      Screen output without connection to user.                           , error key: RFC_ERROR_SYSTEM_FAILURE at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClassExecutable.execute(DynamicRFCModelClassExecutable.java:101) at... [see details]
    can anyone pls tell me what the error is..
    regards
    Nilesh Taunk.

    Hi Nilesh Taunk,
    You can go through the following steps
    -o JCO Exceptions 1. http://help.sap.com/saphelp_nw04s/helpdata/en/f6/daea401675752ae10000000a155106/frameset.htm
    -o JCO Exceptions 2. http://help.sap.com/saphelp_nw04/helpdata/en/f6/e002416225f023e10000000a155106/frameset.htm
    -o Restart of the J2EE instance and try re-importing the RFC model. Sometimes it helps.
    -o Logon into WebDynpro Content Administrator as a J2EE Admin and check if the JCO Connections and User /pwd of your application is correct. You can <b>ping </b>or <b>test your JCO connections</b>. if something is wrong, enter the values again for JCO n retest them.
    -o Try undeploying or removing the complete application and redeploy it.
    Tu undeploy please go to
    Go to <b>Visual Admin -> Server -> Services -> Deploy ->
    </b>
    Under Runtime Tab
    select the server, open the tree , you would find the webdypro list there.
    Now select an application, first stop it, remove it and redeploy if necessary.
    Let us know if you could solve the problem or not, gud luck!
    Rgds,
    Sreenivas.

  • Invoking a Remote function module for every 5days

    Hi Experts,
    How to invoke a remote function module in R/3 from XI for every 5days?
    After invoking tht i need to post data to a FTP server! Could any one tell me how to achive this
    Thnx
    RAMS

    Hi Ram,
                 If your scenario is R3 -- > XI -- > FILE .
    My suggestion is to go for ABAP Client proxies. It is fast and we can move huge data .
                 1. Generate abap proxy from Outbound interface from R3system .
                  2. Write ABAP  report , call  RFC , fill TABLE structure of abap and send to XI ( IS) . then according to the Receiver determination . It will create flate file .
                3. Schedule report  once in 5 days .
                     Please refer how to work with abap client proxy   and steps to activae  
    How do you activate ABAP Proxies?
    /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
    ABAP Proxy Runtime
    http://help.sap.com/saphelp_nw04/helpdata/en/02/265c3cf311070ae10000000a114084/frameset.htm
    ABAP CLIENT PROXY
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1387proxies [original link is broken] [original link is broken] [original link is broken] .
    Assign points if u found helpful
    Regards.,
    V.Rangarajan
    Message was edited by:
            ranga rajan

  • Using AIA specific functions in OSB

    Hi all,
    Is it possible to use the AIA specific functions in OSB, which is available in aia.jar?
    White paper also available for this
    http://www.oracle.com/applications/implementing_aia_on_osb_white_paper_final.pdf
    But it not gives the information on how to do this.
    For using this jar some class needs to be recompiled and xml parser resources needs to registered with weblogic.
    Any idea on this.
    Thanks in Advance.
    -Ashok.

    Make sure you have to gorrect JAR files inluded when starting the OSB. Then you are able to use the AIA functions, but... Why should you do that. You have no AIA support when moving to this tech-stack.
    Marc
    http://orasoa.blogspot.com

  • How to invoke PL\SQL Function from HTML

    I have creadted empty functin in protal30
    i receive ERROR when i invoke ANY function in existing scheme
    portal30.FOO: PROCEDURE DOESN'T EXIST
    DAD name: portal30
    PROCEDURE : portal30.FOO
    URL : http://'server':80/pls/portal30/portal30.FOO
    PARAMETERS :
    ============
    txt:
    ENVIRONMENT:
    ============
    PLSQL_GATEWAY=WebDb
    .

    url above is not corect
    http://server:80/pls/portal30/foo
    foo: PROCEDURE DOESN'T EXIST
    DAD name: portal30
    PROCEDURE : foo
    URL : http://'server':80/pls/portal30/foo
    I can't invoke any existing function in prtlal30 schema
    null

  • Invoking a specific version of java over the internet

    According to [this page|http://java.sun.com/j2se/1.5.0/docs/guide/plugin/developer_guide/using_tags.html], the applet tag should be used if the web page is accessed through the internet and object or embed ought to be used if it's through an intranet. Why?
    Later, that article says that if you want to invoke a specific version of Java that you can do so with either of the intranet tags (using a specific classid for the object tag or a specific type for the embed tag), but doesn't say anything about doing it with the applet tag, making be conclude that, with the applet tag, it's not possible.

    You said "I will not try to guess what that doc. meant." That doesn't necessarily mean that there are others who can't. Maybe there are people who post on forums.sun.com that don't post on comp.lang.java.programmer? If anyone there knew, it seems like they would have responded?
    The <https://jdk6.dev.java.net/deployment_advice.html> link... I dunno... it didn't seem as comprehensive as the one my first post linked to. Doesn't discuss embed, for instance, nor does it mention anything about intranet's vs. internet's. Maybe Sun decided between 1.5.0 and 1.6.0 that the whole internet / intranet distinction was pointless, but if so, that'd be nice to know.
    Besides, sometimes hearing people explain it in different ways helps. Whether or not it'd help here is something I can't say until I've heard other explanations (if there are any to be had).
    (I'm yawnmoth, btw - I was logged out when I tried to make this post so I tried to login with 'yawnmoth' as my username and it asked me for a new username? maybe my 'yawnmoth' username is actually my email address?)
    Edited by: zelnaga on Aug 13, 2008 9:04 AM

  • Calling a function in an EXE file from Java Program

    Hi Im having a function which is written in c program.i need to call that function from my java program, if i create a shared library (DLL) for my C code then it works but my requirement is i dont want to create that DLL , like in it would be an executable and my java code should access that function in that C program

    I understand the usage od a DLL but the thing is if i convert the exe to a DLL
    the server doesnt start at all so what i need is that i dont want to change
    that .EXE into a .DLL,let it be an executable. that executable is in running mode
    and through my java program i need to call a function in that EXE file.
    Is ther any way to do it?Nope, but you have another problem: why can't you separate your server program
    into a .dll part and a startup part? Both, when properly linked against each other
    should give you an executable file.
    kind regards,
    Jos

  • Invoke a planning function in BI-IP using a button to copy filtered data

    Hi All,
    I am using a planning function type copy to create a new version of data in the infocube.
    In Web Application Designer, I created a button that invoke my planning function using a command type EXEC_PLANNING_FUNCTION. So, I would like to copy the records displayed in my analysis item (that are filtered by some drop down items), but what is happening is that all records in infocube are copied instead of copying the data that is filtered by the drop down items.
    Can you help me with any suggestion?
    Thank you.
    Bruno Rodrigues

    Hi Bruno,
    "How I can use the planning filter to restrict for the values presented in the drop down boxes?"
    You can create the filter which contain the characteristic which you use when created dropdown boxes.
    You can add chararcteristics values in the filter, these values you will see in the dropdown box.
    You can use the dropdown boxes to restrict the filter.
    You can place the dropdown box (boxes) on your BEx workbook, and connect (with macro I think) to the SAP.
    If you choose a value in the dropdown box and run the sequence, the sequence's filter will be restricted that value which you choosed.
    Best regards,
    Gergely Gombos

  • HR Offcycle Payroll(Customer Specific Function(

    Hi,
    I am working on SAP 4.7, i have developed an customer specific HR payroll function, its attached in the payroll schema, in the routine i have updated some HR infotypes. Now in normal payroll run it works fine but, in offcyle it has two buttons 'start payroll' which runs the schema, and 'save' which saves the changes, what i need is to save the changes when SAVE button is pressed not the START PAYROLL button, i have looked couldnt seem to find an exit at save.
    Thanks.
    Regards
    Khusro Habib

    During the Start Payroll process, when the schema calls my customer specific function. I filled an internal table PSOPER, then when the SAVE button is pressed system reads the data from this infotype to update it depending on the field OPERA of this internal table
    PSOPER-OPERA = 'U'. means update
    code:
    data gv_ocrsn type t52ocr-ocrsn.
    field-symbols <prelp> type c.
    "gs_s9000 structure of type P9000.
    get parameter id 'OCR' field gv_ocrsn. "This tells me if offcycle is being run
    if gv_ocrsn eq '0095' or gv_ocrsn eq '0090'.
    "all data is in gs_s9000.
    gs_s9000-infty = '9000'.
    assign gs_s9000 to <prelp> casting.
    MOVE <PRELP> TO PSOPER.
    PSOPER-opera  = 'U'.
    append psoper.
    unassign <PRELP>.
    clear gv_ocrsn.

  • BPEL to BPEL call-Invoking a specific instance

    Hi ,
    Im having a requirement like invoking a specific instance in BPEL server from another BPEL process. It is similar to invoking a BPEL process from another BPEL process but a specific instance has to be invoked. How do i achieve this ??
    Regards,
    Venkat

    Thanks for the reply
    I configured the correlation but im confused abt the correlation setting.My requirement is something like this
    BPEL process -2 has two operations like initiate and update.BPEL process -1 will invoke the BPEL process-2 it can be either initiate or update...
    BEPL process 2 will create a instance when initiate operation is invoked from BPEL process-1 and wait till update operation is invoked from BPEL process-1 for the process to be completed.
    How do i set correlation to a situation like this??
    Regards,
    Venkat

  • BOXIR2-Create specific function

    Hi,
    I'd like to create specific function for some reports (for example GetDaysFromMS(fieldName)). The code work in a siple variable but I'd like to transform it to a fonction. Is it possible with WebI (or the designer) ?
    Regards,
    Cédric.

    Hi Cedric,
    In WebI, it is not possible to create a variable in one report and save it so that it can be used by all reports. You can put the item into the universe, but can only operate on the same data, rather than passing a parameter. The way I have worked around this is to create a template report with my function variable. I then copy that and create a new report, changing the parameter into my variable.
    It is a bit of a cludge
    Regards
    Alan

  • Generic extractor based on specific function module with delta update

    Hi everybody,
    I'm trying to create a specific extractor using a specific function module and a specific structure of record.
    In my F.M i merge record from standard table MKPF and MSEg and return the result trhu the structure.
    In initialisation mode, there's no problem . But now i'm must be able to use the DELTA mode but i don't know how to do it.
    Can somebody help me?
    Here is the code of my function module , i know it's not a standard one because i'm not using cursor but i got everything i need. The delta mode must be on creattion time of record in mkpf .
    FUNCTION z_bw_extract_mvt_sortant.
    ""Interface locale :
    *"  IMPORTING
    *"     VALUE(I_REQUNR) TYPE  SBIWA_S_INTERFACE-REQUNR
    *"     VALUE(I_ISOURCE) TYPE  SBIWA_S_INTERFACE-ISOURCE OPTIONAL
    *"     VALUE(I_DSOURCE) TYPE  SBIWA_S_INTERFACE-ISOURCE OPTIONAL
    *"     VALUE(I_MAXSIZE) TYPE  SBIWA_S_INTERFACE-MAXSIZE OPTIONAL
    *"     VALUE(I_INITFLAG) TYPE  SBIWA_S_INTERFACE-INITFLAG OPTIONAL
    *"  TABLES
    *"      E_T_DATA STRUCTURE  ZBW_MVTSORTANT OPTIONAL
    *"      I_T_SELECT TYPE  SBIWA_T_SELECT OPTIONAL
    *"      I_T_FIELDS TYPE  SBIWA_T_FIELDS OPTIONAL
    *"  EXCEPTIONS
    *"      NO_MORE_DATA
    *récupération des données.
      CASE i_initflag.
        WHEN space.
          transfert_record it_mvtsor e_t_data i_maxsize.
         DESCRIBE TABLE it_mvtsor LINES sy-tfill.
         IF sy-tfill GT i_maxsize.
           APPEND LINES OF it_mvtsor FROM 1 TO i_maxsize TO e_t_data.
           DELETE it_mvtsor FROM 1 TO i_maxsize.
         ELSEIF sy-tfill GT 0.
           APPEND LINES OF it_mvtsor FROM 1 TO sy-tfill TO e_t_data.
           FREE it_mvtsor.
         ELSE.
           RAISE no_more_data.
         ENDIF.
        WHEN OTHERS.
    raffraichissement des variables de travails.
          FREE : r_werks , r_bwart , it_mkpf , it_mseg , it_mvtsor .
          CLEAR : r_werks , r_bwart , it_mkpf , it_mseg , it_mvtsor .
    récupération des paramètres.
          PERFORM set_selection_criteria TABLES i_t_select.
          PERFORM init_code_mouvement.
          SELECT * FROM mkpf
          APPENDING CORRESPONDING FIELDS OF TABLE it_mkpf.
    WHERE cpudt = sy-datum.
          CHECK NOT it_mkpf IS INITIAL.
          SELECT * FROM mseg
            APPENDING CORRESPONDING FIELDS OF TABLE it_mseg
            FOR ALL ENTRIES IN it_mkpf
            WHERE mblnr = it_mkpf-mblnr
              AND mjahr = it_mkpf-mjahr
              AND werks IN r_werks
              AND bwart IN r_bwart.
          LOOP AT it_mkpf ASSIGNING  .
            ENDLOOP.
          ENDLOOP.
      ENDCASE.
    ENDFUNCTION.
    Thanks in advance.

    Hi,
    first of all: The use of delta in a generic Datasource by FM is not supported by SAP standard. You need to change the extraction method in table ROOSOURCE from F2 to F1. There is no standard transaction to do this, you have to do a hard table update. Be careful not to change any standard datasource by error, otherwise you can get serious problems.
    The interface for the FM will change with the new extraction method. You will need a new parameter I_UPDMODE of type SBIWA_S_INTERFACE-UPDMODE to distinguish between Init, Delta and Full Load.
    For an example coding please refer to FM RSVD_BW_GET_DELTA_DATA.
    Hope that helps
    Stephan
    Message was edited by: Stephan Müller

  • Invoking call back functions

    Hi there,
    While a client can invoke server side functions on the bean, is there anyway we can invoke a client side function (call back) from the bean itself?

    Not within EJB, but there are many ways to communicate. RMI and JMS would be two possibilities; though I would be a bit suspicious about the legality of using RMI from within an EJB, JMS is perfectly acceptable.

  • How to find a specific function's description?

    Hi,
    I'm now looking at xperf stack trace, I would like to know the description of a specific function. For example, I don't know what does RtlUserThreadStart() function do. How to find such information. I tried to search the function name on MSDN, but nothing
    came up.
    thank you!
    Ah_Chao|| MCSE,VCP,EMCSAe

    could anyone show me some lights on this?
    thanks in advanced!
    Ah_Chao|| MCSE,VCP,EMCSAe

  • How to grant privilege for a specific function?

    Hello all,
    I wonder if exists a privilege, that i could grant to a user, just to run a specific function.
    I searched in dba_sys_privs something about it but, returned nothing.
    13:38:10 brunos@fastora1> select * from dba_sys_privs where privilege like '%FUNCTION%';
    GRANTEE PRIVILEGE ADMIN_OPTION
    Do you guys have any idea for my issue ?
    Thanks in advance.

    BSalesRashid wrote:
    Hello all,
    I wonder if exists a privilege, that i could grant to a user, just to run a specific function.
    I searched in dba_sys_privs something about it but, returned nothing.
    13:38:10 brunos@fastora1> select * from dba_sys_privs where privilege like '%FUNCTION%';
    GRANTEE PRIVILEGE ADMIN_OPTION
    Do you guys have any idea for my issue ?
    Thanks in advance.GRANT EXECUTE ON SPECIFIC_FUNCTION TO NEWBIE_USER;

Maybe you are looking for