Call a Program

Hi everyone,
I created batch input program for sap banking that create massive loans and edit this loans for the loan type 33D. now I want to Call again the start of selection part of my program.
how can I do that?
Thanks in advanced,
Fidel Peralta

Ok,  for example....
START-OF-SELECTION.
PERFORM GET_DATA.
PERFORM OUPUT.
Can you not just call the subroutines again?  At what point to you want to do this.  You need some trigger.
Regards,
Rich Heilman

Similar Messages

  • How to call a program from FM which acts as popup?

    Hi,
    I need to call a program from FM and once the program is called it needs to be opened as a popup. Maybe we need to assign size when we call from FM or do we need to give size in the program it self?
    I know i can either use the Submit command or Call Transaction command. But that it self will open a full screen which i dont want. It needs to be of a smaller size.
    Any help will be appreciated.
    Thanks

    Hi,
    Try this,
    REPORT ZEX_POPUPSCREEN .
    *&  POPUP SCREEN
    * Table Declaration
    TABLES VBAK.
    * Start of Selection
    START-OF-SELECTION.
      SELECT * FROM VBAK.
        WRITE / VBAK-VBELN HOTSPOT ON.
      ENDSELECT.
    * Display the screen
    AT LINE-SELECTION.
      WINDOW STARTING AT 10 10
             ENDING   AT 40 25.
      WRITE:/ 'VBAK-VBELN, VBAK-KUNNR'.
    Regards,
    Nikhil.

  • How to call one program from another program

    Hai,
      How to call one program through another program.
    Example.
       I have two programs 1.ZPROG1 2. ZPROG2.
    When i execute ZPROG1 at that time it should call ZPROG2.

    Hi ,
    u can use submit statement to call a program .
    DATA: text       TYPE c LENGTH 10,
          rspar_tab  TYPE TABLE OF rsparams,
          rspar_line LIKE LINE OF rspar_tab,
          range_tab  LIKE RANGE OF text,
          range_line LIKE LINE OF range_tab.
    rspar_line-selname = 'SELCRIT1'.
    rspar_line-kind    = 'S'.
    rspar_line-sign    = 'I'.
    rspar_line-option  = 'EQ'.
    rspar_line-low     = 'ABAP'.
    APPEND rspar_line TO rspar_tab.
    range_line-sign   = 'E'.
    range_line-option = 'EQ'.
    range_line-low    = 'H'.
    APPEND range_line TO range_tab.
    range_line-sign   = 'E'.
    range_line-option = 'EQ'.
    range_line-low    = 'K'.
    APPEND range_line TO range_tab.
    SUBMIT report1 USING SELECTION-SCREEN '1100'
                   WITH SELECTION-TABLE rspar_tab
                   WITH selcrit2 BETWEEN 'H' AND 'K'
                   WITH selcrit2 IN range_tab
                   AND RETURN.
    regards,
    Santosh thorat

  • Problem regarding calling a program from another program

    Hi,
    I have a requirement that i need to call a program from another program and in that case the called program should be executed with a value in the selection screen coming from the first program..i.e.
    a standard report to view the user Notes for annual leave is RPTARQDBVIEW. Can we create a report to display all the users under a manager as a hyperlink and run the report(RPTARQDBVIEW), with the pernr of the employee selected
    Regards,
    saumik

    Submitting a report using ranges for select-options
    * Define range for ltak-tanum
    RANGES: r_tanum FOR ltak-tanum.                                                                               
    * Read values from database tabel into the range
    * These values are later used for select-options in the report
    SELECT * FROM ltak                                                   
      WHERE lgnum =  w_lgnum AND           "Warehouse number/complex    
            vbeln = w_screen1000-io_vbeln.       "Transfer order number
      MOVE ltak-tanum TO r_tanum-low.                                    
      MOVE 'I' TO r_tanum-sign.                                          
      MOVE 'EQ' TO r_tanum-option.                                       
      APPEND r_tanum.                                                    
    ENDSELECT.                                                                               
    * Submit report with range                  
    SUBMIT zmm00100 WITH p_tanum IN r_tanum.   
    or
    Submitting a report from ABAP with selection criterias
      TYPES: tt_selection TYPE STANDARD TABLE OF rsparams.
      DATA: l_iblnr        TYPE st_iblnr,
    *     Define internal table and work area for select-options
            l_selection    TYPE rsparams,
            li_selection   TYPE tt_selection.
    * Create selectIon table
      LOOP AT gi_iblnr INTO l_iblnr.
        CLEAR l_selection.
        l_selection-selname  = 'IM_IBLNR'.    "Option name
        l_selection-kind     = 'S'.           "S= select options P=Parameters
        l_selection-sign     = 'I'.           "Sign
        l_selection-option   = 'EQ'.          "Option
        l_selection-low      = l_iblnr-iblnr. "Value
        APPEND l_selection TO li_selection.
      ENDLOOP.
    * Submit report
      SUBMIT rm07idif WITH SELECTION-TABLE li_selection AND RETURN.
    Regards,
    Prabhudas

  • Error while calling java program from ABAP

    Hi Experts,
    We are trying for RFC inbound scenario.
    We followed the below blog
    /people/gregor.wolf3/blog/2004/08/26/setup-and-test-sap-java-connector-outbound-connection
    We are working with SAP JCO 3.0.2
    We are getting the error : 'STFC_CONNECTION' could not be found in the server repository.
    After I run the Java server program if I execute the RFC destination directly from SM 59 it is showing successful messages.
    If I stop the java program then this RFC is failing. Based on this we concluded that RFC to Java connection is working fine.
    But as mentioned in blog if we call the RFC Destination from ABAP program it is giving the below error,
    'STFC_CONNECTION' could not be found in the server repository.
    If we test the RFC destination using RFC_TRUSTED_CHECK standard FM we are getting the below error.
    'RFCPING' could not be found in the server repository.
    We create the RFC destination of Type : TCP/IP as exactly mention in the blog.
    Please help us in resolving this issue.
    Thanks
    Prince

    Pabi,
    Using the RFC connection,we can establish a link between Java and SAP.
    Afterwards,hope we can call Java program from ABAP.
    Below is the sample piece of code to establish RFC connection(link) between Java and SAP.
    DATA: REQUTEXT LIKE SY-LISEL,
          RESPTEXT LIKE SY-LISEL,
          ECHOTEXT LIKE SY-LISEL.
    DATA: RFCDEST like rfcdes-rfcdest VALUE 'NONE'.
    DATA: RFC_MESS(128).
    REQUTEXT = 'HELLO WORLD'.
    RFCDEST = 'JCOSERVER01'. "corresponds to the destination name defined in the SM59
    CALL FUNCTION 'STFC_CONNECTION'
       DESTINATION RFCDEST
       EXPORTING
         REQUTEXT = REQUTEXT
       IMPORTING
         RESPTEXT = RESPTEXT
         ECHOTEXT = ECHOTEXT
       EXCEPTIONS
         SYSTEM_FAILURE        = 1 MESSAGE RFC_MESS
         COMMUNICATION_FAILURE = 2 MESSAGE RFC_MESS.
    IF SY-SUBRC NE 0.
        WRITE: / 'Call STFC_CONNECTION         SY-SUBRC = ', SY-SUBRC.
        WRITE: / RFC_MESS.
    ENDIF.
    Regards,
    Sree

  • Regarding creation of multiple jobs calling same program

    Hai anand,
    To improve the performance of the report, i think i want to make a try of your new strategy.
    Could you pls give me oultine code of how to create each job for each P_monat by calling
    same program multiple times.
    by the by i have two points to confirm with this.
    1-if we call same program at a time using different job wont it gets data confused with data manipulation
      inside the internal table?
    2-you want me to call each job simultaneously or one after another?
    ambichan.

    hey guys,
    Thanks for your reply.
    As my next step tried to do like this. but leads to short dump. could you pls guide me in submit decleration.
    SELECT-OPTIONS: S_BUKRS FOR T001-BUKRS MEMORY ID BUK OBLIGATORY .
    PARAMETERS: P_GJAHR LIKE BSIS-GJAHR OBLIGATORY,   " FISCAL YEAR
                P_MONAT LIKE BSIS-MONAT OBLIGATORY,  " Current period
                P_BUKRS LIKE T001-BUKRS OBLIGATORY.   " COMPANY CODE
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(33) TEXT-002 FOR FIELD P_TOTAL.
    PARAMETERS: P_TOTAL AS CHECKBOX .
    SELECTION-SCREEN END OF LINE.
    Start-of-selection.
    jobname = 'ZUSRTEST'.
    call function 'GET_PRINT_PARAMETERS'
      exporting
        no_dialog = 'X'
      importing
       valid = l_valid
       out_parameter = ls_params.
    CALL FUNCTION 'JOB_OPEN'
         EXPORTING
              JOBNAME          = jobname
        IMPORTING
             JOBCOUNT         = jobcount
         EXCEPTIONS
              CANT_CREATE_JOB  = 1
              INVALID_JOB_DATA = 2
              JOBNAME_MISSING  = 3
              OTHERS           = 4.
    if sy-subrc ne 0.
    endif.
    lets assume that my prod system has 6 background work process.
    Here if i input p_monat is 6months then 6 jobs will be created right
    and job p_monat will be as index for jobs job1,job2 job3..job6 etc.
    *job p_monat will be my job names right.
    *I am trying to pass parameter also from main program to calling program
    *but it leads to shortdump error why.
    could you pls help me if my way of declaration in submit can be done or not.
    wk_monat = 01.
    do wk_monat times.
    <b>submit zfipr_vat_report_p1 with s_bukrs = s_bukrs
                               with p_gjahr = p_gjahr
                               with p_monat = wk_monat
                               with p_bukrs = p_bukrs
                               with p_total = p_total
                            via job p_monat
                            number jobcount
             to sap-spool without spool dynpro
               spool parameters ls_params and return.</b>
    wk_monat = wk_monat + 1.
    if wk_monat = p_monat.
    exit.
    endif.
    enddo.
    sdate = sy-datum.
    stime = sy-uzeit + 30.
    CALL FUNCTION 'JOB_CLOSE'
         EXPORTING
            EVENT_PERIODIC              = ' '
              JOBCOUNT                    = jobcount
              JOBNAME                     = jobname
             STRTIMMED                   = 'X'
    Note:
    Also when i execute the main program in background i could not see jobs declared in SM37. i was expecting jobnames job1,job2 till job 6.
    ambichan.

  • How to call  java program from ABAP

    Hi Experts,
         My requirement is to call java programs from ABAP. For that i have set up SAP JCO connection by using this link http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/739. [original link is broken] [original link is broken] [original link is broken] Connection gets sucessfully. After this how to call java program from ABAP as per our requirement. Please help me out.
      Also i tried this way also.. but while executing the DOS Command line appear & disappear in few seconds. So couldnt see the JAVA output. Please help me out to call java programs in ABAP..
    DATA:command TYPE string VALUE 'D:Javajdk1.6.0_20 injavac',
    parameter TYPE string VALUE 'D:java MyFirstProgram'.
    CALL METHOD cl_gui_frontend_services=>execute
    EXPORTING
    application = command
    parameter = parameter
    OPERATION = 'OPEN'
    EXCEPTIONS
    cntl_error = 1
    error_no_gui = 2
    bad_parameter = 3
    file_not_found = 4
    path_not_found = 5
    file_extension_unknown = 6
    error_execute_failed = 7
    OTHERS = 8.
    Thanks.

    This depends on the version of your Netweaver Java AS. If you are running 7.0, you will have to use the Jco framework. The Jco framework is deprecated since 7.1 though. If you want to build a RFC server in 7.1 or higher, it is adviced that you set it up through JRA.
    Implement an RFC server in 7.0:
    http://help.sap.com/saphelp_nw04/helpdata/en/6a/82343ecc7f892ee10000000a114084/frameset.htm
    Implement an RFC server in 7.1 or higher:
    http://help.sap.com/saphelp_nwce72/helpdata/en/43/fd063b1f497063e10000000a1553f6/frameset.htm

  • Urgent: Calling ABAP Program using JMS

    Hi,
    I have a scenario where legacy system pass some messages to ABAP Program and this program can handle one message at a time (written in that way).
    Now the receiver communication channel is configured to access J2SE adapter. This J2SE adapter stores the message on R/3 system and triggers the ABAP program located in R/3 system.
    Now when multiple messages are coming at a time in SAP-XI and processed successfully and handover to J2SE adapter. But J2SE adapter triggers the ABAP program for all messages. And here is the problem. ABAP program is not supporting multi - threading.
    my idea is to use JMS adapter...can you guys suggest me how to achieve result and how to configure JMS or any other adapter to call ABAP Program so that only one message will pass to ABAP program at a time.
    Regards,
    Gourav Khare

    Hi,
    First find out where your ABAP program the data written.You need to write it into and spool then only you can see it.
    Transaction SP01, you can use the FM 'GET_PRINT_PARAMETERS' in your abap program to write to spool.
    Thanks,
    Ravi

  • Calling Java program from ABAP

    Hi All,
    my ABAP program downloads one file to one folder. Then one Java program is running to Encrypt the file.
    Now , they want to call the JAVA program in ABAP, so that they can encrypt the file before downloading.
    Is it possible to call a Java program from ABAP ? If Yes, please give me the detailed procedure.
    Thanks
    pabi

    Pabi,
    Using the RFC connection,we can establish a link between Java and SAP.
    Afterwards,hope we can call Java program from ABAP.
    Below is the sample piece of code to establish RFC connection(link) between Java and SAP.
    DATA: REQUTEXT LIKE SY-LISEL,
          RESPTEXT LIKE SY-LISEL,
          ECHOTEXT LIKE SY-LISEL.
    DATA: RFCDEST like rfcdes-rfcdest VALUE 'NONE'.
    DATA: RFC_MESS(128).
    REQUTEXT = 'HELLO WORLD'.
    RFCDEST = 'JCOSERVER01'. "corresponds to the destination name defined in the SM59
    CALL FUNCTION 'STFC_CONNECTION'
       DESTINATION RFCDEST
       EXPORTING
         REQUTEXT = REQUTEXT
       IMPORTING
         RESPTEXT = RESPTEXT
         ECHOTEXT = ECHOTEXT
       EXCEPTIONS
         SYSTEM_FAILURE        = 1 MESSAGE RFC_MESS
         COMMUNICATION_FAILURE = 2 MESSAGE RFC_MESS.
    IF SY-SUBRC NE 0.
        WRITE: / 'Call STFC_CONNECTION         SY-SUBRC = ', SY-SUBRC.
        WRITE: / RFC_MESS.
    ENDIF.
    Regards,
    Sree

  • Call a program in my fronted.

    I need call a program ( test.bat for example) from my ABAP program.
    I create a destination RFC, in SM59, type T with Start on Front-End Station, but I don't know how to call it.
    Ana Maria

    Hi,
    Use FM WS_EXECUTE.
    Regards,
    Satish

  • How to call external programs?

    I have seen people call external programs through LabVIEW and was curious what functions you could use to do this.
    I'm pretty sure its using one of the ActiveX functions  or maybe 'open application reference .vi'.
    Can anyone tell me (or show me) a quick example of how to open an external program (ie excel,  notepad, etc) programatically
    Cory K
    Solved!
    Go to Solution.

    Cory K wrote:
    Where did they get this:
    Kudos for going from "I don't know to start" to "Let's stump Ben" with only the second post to this thread.
    I either copy it from an example or try to browse to it.
    NOTE:
    If you plan to work with MS ActiveX objects, I found it very helpful to do a custom install of Office and make sure the help files for VBA are loaded. These will at the least give you an idea of what the methods are and what parameters go with each.
    Ben
    Message Edited by Ben on 12-31-2008 11:09 AM
    Message Edited by Ben on 12-31-2008 11:13 AM
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction
    Attachments:
    Browse.PNG ‏24 KB

  • Call ABAP Program in Process Chain

    Dear BW Gurus,
    I need to call an Process chain which includes ABAP Program.
    The ABAP Program doesn't have the variants but it accepts the inputs from the user and sets into a YXXXX table.
    I am not getting how to proceed in this regard.
    Kindly guide.
    Best Regards,
    Harsh

    hi,
    chk these links below.. they contain the resolution for your query
    Call ABAP Program in Process Chain
    ABAP in Process Chains
    Also chk this relase which ia an entire guiding one to ABAP Program in Process Chain
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3507aa90-0201-0010-6891-d7df8c4722f7

  • Hi Problem in call transaction program of FB60

    Hi Techies,
    in my call transaction program for FB60 compnay code is defaulted in the initial screen.Every time i need to post different records with the different company codes.
    when i record the company code change in FB60 through SHDB once i chnage the company code it is coming out of the recording.
    pls let me know how can i continue FB60 transaction once i change the company code for further processing.
    and let me know and logic to handle the compnay code when it is defaulted in FB60.
    Thanks in advance
    Krishna D

    Hi,
    Try this code and cross check with urs.
      CASE SY-UCOMM.
        WHEN '&BATCH'.             "Batch Field
          PERFORM F1000_BDC_MM03 USING LV_MATNR LV_WERKS.
    endcase.
    FORM F1000_BDC_MM03 USING    P_LV_MATNR
                                 P_LV_WERKS.
      PERFORM BDC_DYNPRO      USING 'SAPLMGMM' '4110'.
      PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                    '=GESV'.
      CALL TRANSACTION C_TRANSACTION_CALL_MM03 USING I_BDCDATA MODE 'E'
      MESSAGES INTO I_MESSTAB.
    ENDFORM.                    " f1000_bdc_mm03
    &----&      Form  bdc_dynpro
    &----  Appending the BDC dynpros to internal table BDCDATA
    FORM BDC_DYNPRO USING PROGRAM DYNPRO.
      CLEAR W_BDCDATA.
      W_BDCDATA-PROGRAM  = PROGRAM.
      W_BDCDATA-DYNPRO   = DYNPRO.
      W_BDCDATA-DYNBEGIN = 'X'.
      APPEND W_BDCDATA TO I_BDCDATA.
    ENDFORM.
    DATA:  I_BDCDATA TYPE STANDARD TABLE OF BDCDATA,
    Internal table to hold BDC messages
           I_MESSTAB TYPE STANDARD TABLE OF BDCMSGCOLL.
    &----&      Form  bdc_field
        Appending the BDC FIELDS to internal table BDCDATA
    FORM BDC_FIELD USING FNAM FVAL.
      IF FVAL <> NODATA.
        CLEAR W_BDCDATA.
        W_BDCDATA-FNAM = FNAM.
        W_BDCDATA-FVAL = FVAL.
        APPEND W_BDCDATA TO I_BDCDATA.
      ENDIF.
    ENDFORM.
    Tahnks & Regards,
    Judith

  • Calling Concurrent program from OAF-PDF Outtput not in English

    Hi ,
    I've successfully done "Calling Concurrent Program from OAF" once i clicked the button which i have in my page it generates RequestID and that shows request page,In that when i click "Output" icon the PDF file is opened.
    But in that PDF file it shows the datas in the different language.
    For example Emp name column is shown as
    ΚΙΝΓ
    ΧΛΑΡΚ
    ΣΧΟΤΤ
    ΦΟΡ∆
    ΣΜΙΤΗ
    ΑΛΛΕΝ
    Αδαµσ
    Σεντηιλςελ
    Σαραϖανα Χ
    Σεενυ
    Σαβενα
    Ηαριkindly help me...
    Regards,
    Saro

    Hi Hussein,
    Here I've shown the details of log file
    Purchasing: Version : 12.0.0
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    XXCON module: XXCON
    Current system time is 29-DEC-2010 11:37:23
    +-----------------------------*
    *| Starting concurrent program execution...*
    +-----------------------------*
    APPLLCSP Environment Variable set to :
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.AL32UTF8
    Enter Password:
    Report Builder: Release 10.1.2.3.0 - Production on Wed Dec 29 11:37:29 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Executing request completion options...
    ------------- 1) PRINT   -------------*
    Printing output file.
    Request ID : 5865903      
    Number of copies : 0      
    Printer : noprint
    Finished executing request completion options.
    Concurrent request completed successfully
    Current system time is 29-DEC-2010 11:37:33
    Regards,
    Saro

  • Calling another program and waiting for output

    Hi,
    I'm writing a program that passes a file created for an application called Net Sim but has to wait for the output. Net Sim lies in another directory from the java files and I don't know how to call the program with the file created as a parameter, such as:
    ns2 network1.tcl
    where 'ns2' is the dos command to run net sim and 'network1.tcl' is a file passed as a parameter to the program.
    I've tried
    try{
    Runtime r = Runtime.getRuntime();
    r.exec(" <directory> ");
    }catch(IOException e){
    System.out.println("Error " +e);
    This doesn't work though and I could use some help, as well as how to save the file created by the program in another directory.
    Finally, I need to know how to make the program wait for the output from net sim which is a file I intend to use. Can I do this with a while loop etc.?
    I thank you in advance for any help,
    Regards,
    Gary.

    Here's an article from JavaWorld describing some of the pitfalls when using Runtime.exec() that might help you:
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

  • How do i call c++ programs(with visual c++)in oracle?

    how do i call c++ programs(with visual c++)in oracle?
    how do i store results which produced by c++ programs to oracle?
    results include picture(*.gif,*.bmp,*.jpg)and some variables.
    please tell me a way.hurry!!!

    You would have to write your C++ programs as DLLs and then use something like the following:-
    CREATE OR REPLACE PROCEDURE messagebeep
         (p_uint IN BINARY_INTEGER)
         AS EXTERNAL LIBRARY user32 NAME "MessageBeep"
         CALLING STANDARD PASCAL;
    Within your C++ code you would then access the database to update your tables etc.
    The way I see it is that you want processing to go Oracle --> C++ --> Oracle.
    Do you really need the C++ layer ?
    Hope this helps.
    Adrian

Maybe you are looking for

  • BOE XI 3.1: Problem with Simple Report Filter.

    Hi everyone!. One requirement that i have in one customer is about the use of simple reports filters, the customer doesn't want to use the input controls. If i add one simple report filter and save the report, the final user can add other simple repo

  • Rotation lock icon doesn't exist

    Hi folks , My q10 has the latest update(10.2.0.424) the screen doesn't rotate , I can't find the rotation lock icon, here is a picture of the panel https://skydrive.live.com/redir.aspx?cid=637c103ff2dbf413&resid=637C103FF2DBF413!121&parid=637C103FF..

  • How to Sign in Microsoft Office 2011 on iMac?

    I installed Microsoft Office 2011 on my new iMac. Before starting to use it, I need to sign in but I could not. My husband bought the CD last year and installed Office to his MacBook Air. Should I use my his Apple ID to sign in?

  • Incredibly annoying intermittent airport issue

    hi i have a mac pro with the latest version of os x. i frequently lose airport connectivity out of nowhere with this in the console 2/4/09 11:03:56 PM kernel Auth result for: 00:11:24:5d:bf:c1 MAC AUTH succeeded 2/4/09 11:03:56 PM kernel AirPort: Lin

  • Asking for credit to make a call

    I have called this persons skype name a number of times but i keep getting that I need credits to make the call all of a sudden.  I have even had to sign out a few times before to make it work but now thats not working also. Attachments: Screen Shot