Calling another transaction in Dialog Programming

Hello ppl,
How can I call another transaction(ZPROGRAM2) from my transaction(ZPROGRAM1) using the delivery and the check box options selected in Screen Programming. Should I use BDC.? Also in case of any errors in ZPROGRAM2, the control should return to ZPROGRAM1 with all the previous setting retained.
Thanks a lot.
Karthikeyan

Hi ,
You can try with BDC as you need to get the control back to the program1.
If not you can try with the SUBMIT statement.
ex:-
SUBMIT zrslg0000  EXPORTING LIST TO MEMORY
              AND RETURN.
Regards,
Satish

Similar Messages

  • Can we call another transaction from the Userexit

    Hi all,
            Can we call another transaction from the Userexit?
    Thanks,
    Balaji

    Hi
    Because the statament CALL TRANSACTION triggers the end of the LUW so COMMIT WORK, so you should be sure not to insert that statament while some updating actions are been doing.
    So that exit shouldn't be triggered while updating
    Max

  • Calling a Transaction from a Program

    Hi all.
    I need to call transaction VT70 and VL71 from a Program and print the Output ZBOL and ZPCK resp.(ZBOL and ZPCK are ouput types)
    So how to call TCODEs from Program and print them
    Thanks in Advance,
    Balaji

    Hi,
    Use call transaction statement to call the required transaction and pass the data to the transaction using SPA/GPA parameters.
    parameter id can be taken from the dataelement from the dictionary.
    Reward.

  • Calling another transaction in a new NWBC tab and keeping OBN

    Hiya,
    I have two reports (web dynpro reports) that I've created.
    Each report has buttons that are supoposed to open SAP transactions.
    So I've added code to the buttons that make the OBN calls, the reports have been added to the PFCG, and then OBN details have been added to the report nodes within the PFCG to open the SAP transactions.
    And this all works fine!
    The problem is this - the business would like a button to open report 2, in a new NWBC tab, from report 1.
    I can't seem to do this AND get the OBN buttons to work for report 2.
    So Report 1 works perfectly, I'm using open 'external_window' from the web dynpro to open a URL that points to the web dynpro of report 2.
    Report 2 appears fine but the buttons don't work and nothing happens when you click them.
    Can anyone suggest how best to approach this problem i.e. open a new NWBC tab, for a report in your PFCG role.
    Thanks in advance!

    Hi H.M.
    This code will launch the transaction QM01 in a new tab, i think you would be able to use this snippet to open a new report instead.
    Do you need to pass parameters from Report 1 to report 2, otherwise you might be able to use a portal launchpad or create your own OBN?
           data: lo_lsapi TYPE REF TO IF_LSAPI.
    data: lv_location type string.
    lo_lsapi = cl_lsapi_manager=>get_instance( ).
    lv_location = 'ls-tr://QM01?RIWO00-QMART=Q1'.
    lo_lsapi->navigate(
    location      = lv_location
    mode          =  '1'
    *                    history_mode  = iv_history_mode
    title         = 'Create notification'

  • Need to call another progarm in Zdriver program for a specific output type

    For billing document they had configured a Zdriver program and Zsmart form in Nace.
    Now, we had created an output type and when user clicks on that specific output type my ZXYZ program should run.
    ZXYZ program will convert the spool request into .pdf files.
    So what I had done is I have given a condition in Zdriver program saying that If output type is ZD0p.
    Submit ZXYZ program so that this program will automatically run.
    I just want to make sure that is it the right way I mean shoudl I add something else to the Submit statement...here
    and can any one tell me how can I generate spool request by giveing a billing document number in VF02--> Click on Enter > Click on Header>Click on Output-->Enter the Output type and give the communication method details and click on Save...will this generate the spool request..?

    Hi
    and can any one tell me how can I generate spool request by giveing a billing document number in VF02--> Click on Enter --> Click on Header-->Click on Output-->Enter the Output type and give the communication method details and click on Save...will this generate the spool request..
    After doing the whole porcess...re enter the vfo2 transacrion, give the document number and in Menu..Under "Billing Document"..Select issue output to...and there select the output type..and select Print button, it will generate spool request.
    Regards,
    Vishwa.

  • How to call a transaction with a variant

    Hi all
    I created a bdc program after updating it should call another transaction with predefined variant that that transaction program is of type module pool.
    can anyone tell me the syntax how to call a transaction with a variant.

    Hi
    goto Tcode SHD0
    enter the Tcode for which Tran Variant has to be created(dialog Tcode)
    enter Trans variant to be created
    press create button
    it will go through all the screens of that Tcode and save
    and modify the fields as per requirement
    we can create Transaction Variants Using SHD0 Transaction.
    Transaction Variants and Screen Variants
    Transaction variants can simplify transaction runs as they allow you to:
    Preassign values to fields
    Hide and change the 'ready for input' status of fields
    Hide and change table control column attributes
    Hide menu functions
    Hide entire screens
    In particular, hiding fields in connection with screen compression, and hiding screens, can result in greater clarity and simplicity.
    Transaction variants are made up of a sequence of screen variants. The field values and field attributes for the individual screens found in transaction variants are stored in screen variants. Each of these variants is assigned to a specific transaction, can, however, also contain values for screens in other transactions if this is required by transaction flow. The transaction that the variant is assigned to serves as initial transaction when the variant is called.
    There are both client-specific and cross-client transaction variants. All screen variants are cross-client, but may be assigned to a client-specific transaction variant.
    A namespace exists for cross-client transaction variants and screen variants and both are automatically attached to the Transport Organizer. Client-specific transaction variants must be transported manually.
    In principle, transaction and screen variants can be created for all dialog and reporting transactions. There are, however, certain Restrictions that apply to certain transactions, depending on their internal structure.
    No transaction variants are possible with transactions already containing preset parameters (parameter transactions and variant transactions).
    Regards
    Anji

  • Calling second transaction from a bdc prg

    Hi experts
    I am using a prog for ISU-Transaction EG33 now my requirement is I have to call another transaction IL02 within this transaction my requirement is just to  tick a check box.
    Another thing here after executing my current prg ( eg33)  function location is created after completion of transction ....the same function location need to be used in my second transaction for which whom i am gonna tick tat check box.(single installation)
    thanks in advance
    any ideas ???

    hi,
    u can have a look at this code
    *& Report  ZFIC_BDC_F_43_02_ADJ
    REPORT  zfic_bdc_f_43_02_adj MESSAGE-ID zfi NO STANDARD PAGE HEADING .
    DATA : t_excel   LIKE alsmex_tabline OCCURS 0 WITH HEADER LINE,
           v_mvar1      LIKE balm-msgv1,
           v_mtext(100) TYPE c,
           v_tabix(4)   TYPE c ,
           t_bdcdata     LIKE bdcdata        OCCURS 0 WITH HEADER LINE.
    ----declaration of internal table for uploading the excel file -
    DATA: BEGIN OF itab OCCURS 0 ,
          bukrs LIKE bkpf-bukrs,
            blart LIKE bkpf-blart,
            bldat(10) TYPE c ,
            budat(10) TYPE c ,
            monat LIKE bkpf-monat,
            waers LIKE bkpf-waers,
            docid LIKE fs006-docid,
            newbs LIKE rf05a-newbs,
            newko LIKE rf05a-newko,
           mwskz LIKE bseg-mwskz,
           wrbtr LIKE bseg-wrbtr,
            zuonr LIKE bseg-zuonr,
            sgtxt LIKE bseg-sgtxt,
            zfbdt(10) TYPE c ,
            prctr LIKE cobl-prctr,
           bukrs1 TYPE bkpf-bukrs,
            blart1 TYPE bkpf-blart,
            bldat1(10) TYPE c ,
            budat1(10) TYPE c ,
            monat1 TYPE bkpf-monat,
            waers1 TYPE bkpf-waers,
            newbs1 LIKE rf05a-newbs,
            newko1 LIKE rf05a-newko,
            newum LIKE rf05a-newum,
            wrbtr1(16) TYPE c,
            zuonr1 LIKE bseg-zuonr,
            sgtxt1 LIKE bseg-sgtxt,
            zfbdt1(10) TYPE c ,
            bupla1 LIKE bseg-bupla,
            secco1 LIKE bseg-secco,
            prctr1 LIKE bseg-prctr,
            docid1 LIKE fs006-docid,
            wrbtr(16) TYPE c ,
            newbs2 LIKE rf05a-newbs ,
            newbs3 LIKE rf05a-newbs ,
            END OF itab.
    DATA: BEGIN OF messtab  OCCURS 0 .
            INCLUDE STRUCTURE bdcmsgcoll.
    DATA: row TYPE i,
           key(30),
          END OF messtab.
    DATA: BEGIN OF messtab2 OCCURS 0,
            mtype      LIKE bdcmsgcoll-msgtyp,
            mtext(100) TYPE c,
            row        TYPE i,
            key(30)    TYPE c,
          END OF messtab2.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETER : p_pfile(128) TYPE c OBLIGATORY,
                p_pbrow      TYPE i OBLIGATORY,
                p_perow      TYPE i OBLIGATORY,
                p_pdis       LIKE ctu_params-dismode OBLIGATORY DEFAULT
    'A'.
    SELECTION-SCREEN END OF BLOCK b1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_pfile .
      CALL FUNCTION 'F4_FILENAME'
       EXPORTING
         program_name        = syst-cprog
         dynpro_number       = syst-dynnr
      FIELD_NAME          = ' '
       IMPORTING
         file_name           = p_pfile .
    START-OF-SELECTION .
    ----uploading the excel file to internal table -
      PERFORM upload_file .
    -----filling the bdc table -
      PERFORM fill_bdctable .
    ------writing the error log -
      PERFORM write_messtab .
    *&      Form  UPLOAD_FILE
          text
    -->  p1        text
    <--  p2        text
    FORM upload_file .
      CLEAR : t_excel .
      REFRESH : t_excel .
      CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
        EXPORTING
          filename                = p_pfile
          i_begin_col             = '1'
          i_begin_row             = p_pbrow
          i_end_col               = '27'
          i_end_row               = p_perow
        TABLES
          intern                  = t_excel
        EXCEPTIONS
          inconsistent_parameters = 1
          upload_ole              = 2
          OTHERS                  = 3.
      IF sy-subrc <> 0.
        MESSAGE e000 WITH text-002.
      ENDIF.
      LOOP AT t_excel .
        CASE t_excel-col .
          WHEN '001'.
            itab-bldat = t_excel-value.
          WHEN '002'.
            itab-budat = t_excel-value.
          WHEN '003'.
            itab-blart = t_excel-value.
          WHEN '004'.
            itab-bukrs = t_excel-value.
          WHEN '005'.
            itab-monat = t_excel-value.
          WHEN '006'.
            itab-waers = t_excel-value.
          WHEN '007'.
            itab-docid = t_excel-value.
          WHEN '008'.
            itab-newbs = t_excel-value.
          WHEN '009'.
            itab-newko = t_excel-value.
          WHEN '010'.
            itab-wrbtr = t_excel-value.
          WHEN '011'.
            itab-bupla1 = itab-bukrs.
            itab-secco1 = itab-bukrs.
            itab-zfbdt = t_excel-value.
          WHEN '012'.
            itab-zuonr = t_excel-value.
          WHEN '013'.
            itab-sgtxt = t_excel-value.
          WHEN '014'.
            itab-newbs1 = t_excel-value.
          WHEN '015'.
            itab-newko1 = t_excel-value.
          WHEN '016'.
            itab-prctr = t_excel-value .
          WHEN '017'.
            itab-wrbtr = t_excel-value .
          WHEN '018'.
            itab-bldat1 = t_excel-value.
          WHEN '019'.
            itab-budat1 = t_excel-value.
          WHEN '020'.
            itab-blart1 = t_excel-value.
          WHEN '021'.
            itab-monat1 = t_excel-value.
          WHEN '022'.
            itab-newbs2 = t_excel-value.
          WHEN '023'.
            itab-wrbtr1 = t_excel-value.
          WHEN '024'.
            itab-zuonr1 = t_excel-value.
          WHEN '025'.
            itab-sgtxt1 = t_excel-value.
          WHEN '026'.
            itab-newbs3 = t_excel-value.
          WHEN '027'.
            itab-newum = t_excel-value .
            AT END OF row .
              APPEND itab.
              CLEAR itab .
            ENDAT.
        ENDCASE .
      ENDLOOP.
    ENDFORM.                    " UPLOAD_FILE
    *&      Form  fill_bdctable
          text
    -->  p1        text
    <--  p2        text
    FORM fill_bdctable .
      LOOP AT itab .
        v_tabix = sy-tabix .
        PERFORM bdc_dynpro USING :
          '1'  'SAPMF05A'      '0100',
          ' '  'BDC_CURSOR'    'FS006-DOCID',
          ' '  'BDC_OKCODE'    '/00',
          ' '  'BKPF-BLDAT'    itab-bldat,
          ' '  'BKPF-BLART'    itab-blart,
          ' '  'BKPF-BUKRS'    itab-bukrs,
          ' '  'BKPF-BUDAT'    itab-budat,
          ' '  'BKPF-MONAT'    itab-monat,
          ' '  'BKPF-WAERS'    itab-waers,
          ' '  'FS006-DOCID'    itab-docid,
          ' '  'RF05A-NEWBS'   itab-newbs,
          ' '  'RF05A-NEWKO'   itab-newko,
          '1'  'SAPMF05A'      '0302',
          ' '  'BDC_CURSOR'    'RF05A-NEWKO',
          ' '  'BDC_OKCODE'    '/00',
          ' '  'BSEG-WRBTR'    itab-wrbtr,
    ' '  'BSEG-MWSKZ'    ITAB-MWSKZ,
          ' '  'BSEG-ZFBDT'    itab-zfbdt,
          ' '  'BSEG-ZUONR'    itab-zuonr,
          ' '  'BSEG-SGTXT'    itab-sgtxt,
          ' '  'RF05A-NEWBS'   itab-newbs1,
          ' '  'RF05A-NEWKO'   itab-newko1,
          '1'  'SAPMF05A'      '0300',
          ' '  'BDC_CURSOR'    'BSEG-WRBTR',
          ' '  'BDC_OKCODE'    '/00',
          ' '  'BSEG-WRBTR'    itab-wrbtr,
          '1'  'SAPLKACB'      '0002',
          ' '  'BDC_CURSOR'    'COBL-PRCTR',
          ' '  'BDC_OKCODE'    '=ENTE',
          ' '  'COBL-PRCTR'    itab-prctr,
          '1'  'SAPMF05A'      '0300',
          ' '  'BDC_CURSOR'    'BSEG-WRBTR',
          ' '  'BDC_OKCODE'    '=BS',
          ' '  'BSEG-WRBTR'    itab-wrbtr,
          '1'  'SAPLKACB'      '0002',
          ' '  'BDC_CURSOR'    'COBL-PRCTR',
          ' '  'BDC_OKCODE'    '=ENTE',
          ' '  'COBL-PRCTR'    itab-prctr,
          '1'  'SAPMF05A'      '0700',
         ' '  'BDC_CURSOR'    'RF05A-NEWBS',
          ' '  'BDC_OKCODE'     '=BU'.
        CALL TRANSACTION 'F-43' USING  t_bdcdata
                                  MODE   p_pdis
                                  UPDATE 'A' MESSAGES INTO messtab.
        LOOP AT messtab WHERE msgtyp = 'E' .
          v_mvar1 = messtab-msgv1+0(49).
          CALL FUNCTION 'MESSAGE_PREPARE'
          EXPORTING
          language = sy-langu
          msg_id   = messtab-msgid
          msg_no   = messtab-msgnr
          msg_var1 = v_mvar1
    MSG_VAR2 = ' '
    MSG_VAR3 = ' '
    MSG_VAR4 = ' '
          IMPORTING
          msg_text = v_mtext
          EXCEPTIONS
          function_not_completed = 1
          message_not_found = 2
          OTHERS = 3 .
          IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
          messtab-row = p_pbrow + v_tabix - 1.
          messtab-key = itab-newbs.
          messtab2-row = messtab-row.
          messtab2-key = messtab-key.
          messtab2-mtype = messtab-msgtyp.
          messtab2-mtext = v_mtext.
          APPEND messtab2.
          CLEAR messtab.
        ENDLOOP.
        REFRESH t_bdcdata .
        PERFORM bdc_dynpro USING :
      '1'  'SAPMF05A'      '0100',
      ' '  'BDC_CURSOR'    'RF05A-NEWKO',
      ' '  'BDC_OKCODE'    '/00',
      ' '  'BKPF-BLDAT'    itab-bldat1,
      ' '  'BKPF-BLART'    itab-blart1,
      ' '  'BKPF-BUKRS'    itab-bukrs,
      ' '  'BKPF-BUDAT'    itab-budat1,
      ' '  'BKPF-MONAT'    itab-monat1,
      ' '  'BKPF-WAERS'    itab-waers,
      ' '  'FS006-DOCID'   itab-docid1,
      ' '  'RF05A-NEWBS'   itab-newbs2,
      ' '  'RF05A-NEWKO'   itab-newko,
      '1'  'SAPMF05A'      '0302',
      ' '  'BDC_CURSOR'    'RF05A-NEWUM',
      ' '  'BDC_OKCODE'    '/00',
      ' '  'BSEG-WRBTR'    itab-wrbtr1,
      ' '  'BSEG-ZFBDT'    itab-zfbdt,
      ' '  'BSEG-SGTXT'    itab-sgtxt1,
      ' '  'RF05A-NEWBS'   itab-newbs3,
      ' '  'RF05A-NEWKO'   itab-newko,
      ' '  'RF05A-NEWUM'   itab-newum,
      '1'  'SAPMF05A'      '0304',
      ' '  'BDC_CURSOR'    'BSEG-PRCTR',
      ' '  'BDC_OKCODE'    '/00',
      ' '  'BSEG-WRBTR'    itab-wrbtr1,
      ' '  'BSEG-PRCTR'    itab-prctr,
      ' '  'BSEG-ZUONR'    itab-zuonr1,
      ' '  'BSEG-SGTXT'    itab-sgtxt1,
      ' '  'BSEG-BUPLA'    itab-bukrs,
      ' '  'BSEG-SECCO'    itab-bukrs,
       '1' 'SAPMF05A'      '0304',
      ' '  'BDC_CURSOR'    'BSEG-WRBTR',
      ' '  'BDC_OKCODE'    '=BS',
      ' '  'BSEG-WRBTR'    itab-wrbtr1,
      ' '  'BSEG-BUPLA'    itab-bukrs,
      ' '  'BSEG-SECCO'    itab-bukrs,
      ' '  'BSEG-PRCTR'    itab-prctr,
      ' '  'BSEG-ZUONR'    itab-zuonr1,
      ' '  'BSEG-SGTXT'    itab-sgtxt1,
      '1'  'SAPMF05A'      '0700',
      ' '  'BDC_CURSOR'    'RF05A-NEWBS',
      ' '  'BDC_OKCODE'    '=BU'.
        CALL TRANSACTION 'F-02' USING  t_bdcdata
                                  MODE   p_pdis
                                  UPDATE 'A' MESSAGES INTO messtab.
        APPEND messtab.
        REFRESH t_bdcdata .
      ENDLOOP .
    ENDFORM.                    " fill_bdctable
    *&      Form  BDC_DYNPRO
          text
         -->P_0337   text
         -->P_0338   text
         -->P_0339   text
    FORM bdc_dynpro  USING    flag
                              var1
                              var2.
      CLEAR t_bdcdata .
      IF flag = 1.
        t_bdcdata-program     = var1.
        t_bdcdata-dynpro      = var2.
        t_bdcdata-dynbegin    = 'X'.
      ELSE.
        t_bdcdata-fnam        = var1.
        t_bdcdata-fval        = var2.
      ENDIF.
      APPEND t_bdcdata.
    ENDFORM.                    " BDC_DYNPRO

  • REUSE_ALV_LIST_DISPLAY on a dialog program

    Hi,
    I have a requirement where in I have to call REUSE_ALV_LIST_DISPLAY on a dialog program.
    Can any one tell me how we can call a list display from a dialog program.
    Regards,
    Abhishek.

    hi vijai,
    i have the same problem using reuse_alv_list_display on a dialog program
    i can solved it using the way you posted before, but how if my alv list also in the same program? but in a different screen?
    so far i manage to display  the alv out, but i cannot callback my user command
    for example:
    WHEN 'MASS_TRP'.
          CALL SCREEN 0400.
    and on screen 0400.
    LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.----> "if i'm not using return to screen 0, everytime i click back, it will only go back to my alv list, while what i want is go back to my main program, any suggestion?"
    SUPPRESS DIALOG.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
        EXPORTING
          i_callback_program       = 'ZTICKETS'
          i_callback_pf_status_set = '0400'
          i_callback_user_command  = 'USER_COMMAND' -
    > "i cannot call back this eventhough i have the user command form"
          is_layout                = i_layout
          it_fieldcat              = i_fieldcat
          i_save                   = 'A'
         it_events                = i_events
        TABLES
          t_outtab                 = i_mtrp.
      IF sy-subrc <> 0.
      ENDIF.
    really appreciate if someone can help
    thanks

  • Call MR21 Transaction code

    Hi Expert,
    i want to call MR21 transaction code from program with filling plant ,company code and material from the production order
    my first question is
    is it possible to call MR21 with filling material?
    if possible then how ?
    Thanks,
    Mahipal

    Hi,
    you just need to change the MODE.
    N
    Screens are not displayed. You must choose this mode when you run the BDC in a background job.
    A
    All screens are displayed. On each screen, a little popup is displayed with the next recorded function, the user has to press Enter to execute it.
    E
    By default, screens are not displayed, except if an error occurs, or if the end of BDC data is reached although the recorded transaction was not exited
    Do not forget to click on "Correct Answer", to close the topic.
    Rachid.

  • How to call a dialog program with return value in another dialog program

    Dear All,
    How can I call a dialog program with return value from another dialog program?
    Regards,
    Alok.

    Hi Alok,
    You can you SET/GET parameters to do this.
    This is some information about this.
    To fill the input fields of a called transaction with data from the calling program, you can use the SPA/GPA technique. SPA/GPA parameters are values that the system stores in the global, user-specific SAP memory. SAP memory allows you to pass values between programs. A user can access the values stored in the SAP memory during one terminal session for all parallel sessions. Each SPA/GPA parameter is identified by a 20-character code. You can maintain them in the Repository Browser in the ABAP Workbench. The values in SPA/GPA parameters are user-specific.
    ABAP programs can access the parameters using the SET PARAMETER and GET PARAMETERstatements.
    To fill one, use:
    SET PARAMETER ID pid FIELD f.
    This statement saves the contents of field f under the ID pid in the SAP memory. The ID pid can be up to 20 characters long. If there was already a value stored under pid, this statement overwrites it. If you double-click pid in the ABAP Editor, parameters that do not exist can be created as a Repository object.
    To read an SPA/GPA parameter, use:
    GET PARAMETER ID pid FIELD f.
    This statement places the value stored under the pid ID into the variable f. If the system does not find any value for pid in the SAP memory, sy-subrc is set to 4. Otherwise, it sets the value to 0.
    Thanks,
    SriRatna

  • How to call a Dialog Program from another Dialog Program

    Dear All,
    How can I call a dialog program with return value from another dialog program?
    Regards,
    Alok.

    Hi Alok,
    1. Insted of creating 2 different Dialog program. It's good to create as many screens as you want in same module pool program. Any way you can use the different TCODE for each screen.
    2. Another and The best way is to create a function group and then inside function group use the function 2 module... In the function group define a global variable which will be present for both the function group if they are getting executed in sequence. and inside the Function Module call the screens using command " call screen <screenno>".
    3. You can use set / get parameter to pass values of a field between two dynpro program.

  • Calling dialog program from report

    Hi All,
    I need to call dialog program from report and do not want the initial screen to be shown and execute the dialog program. can this be possible, if yes please let me know this to do this, when I tried using leave to transaction its showing the initial dialog screen.
    Thanks in advane
    jog

    Hi,
    Create a Z trnsaction Code for the Transaction you want to call.
    Go to SE93. Give Transaction name and click on create.
    Select start object as 'Transaction with Variant' or 'Transaction with Parameter'.
    On second screen give transaction name and check the <b>check box for 'Skip initial screen'</b>.
    Find out the initial screen for the transaction and mention it.
    Now, you can call this Z transaction in your program.

  • How to call a transaction (in a new session) from a program

    Hi ,
    I need to call a transaction from my report on the click of a button in toolbar.
    But the transaction should open in a new session.
    This is the code that i have written, MM03 is getting opened in the same session.
    call transaction 'MM03' and skip first screen.
    Hope that my question is clear.
    Thanking you in advance..
    Shankar

    check this
    <b>CALL FUNCTION 'ABAP4_CALL_TRANSACTION' STARTING NEW TASK 'TEST'
      DESTINATION 'NONE'
      EXPORTING
          TCODE = 'SM59'
      EXCEPTIONS
        COMMUNICATION_FAILURE = 1 MESSAGE MSG_TEXT
        SYSTEM_FAILURE        = 2 MESSAGE MSG_TEXT.
      IF SY-SUBRC NE 0.
        WRITE: MSG_TEXT.
      ELSE.
        WRITE: 'O.K.'.
      ENDIF.</b>
    <b>u can avoid such errors thru this FM
    check FI_DUPLICATE_INVOICE_SHOW program for sample code.</b>
    regards
    Prabhu
    Message was edited by: Prabhu Peram

  • In dialog programming i want to leave the current transaction

    Hi,
    In dialog programming i want to leave the current transaction and come out to the standard   sap initial screen.
    Please advise me how can i apply.
    Thanks.

    Basic question, please search before posting.
    Thread locked.
    Thomas

  • Call another program in first program

    hi,
    i need to perform to call another report in my current report. so how am i going to do so?
    how report work:
    the report are going to run as background job. once the report run, it will send out the report in text file to user. and then i want it to trigger report 2. report 2 work the same, it will send another text file to user.
    and the parameter for both the report is on current date only.
    so how am i going to code in my first report program, to call the second report program, and to execute it?
    thanks
    Edited by: ben leen lee on May 14, 2008 3:57 AM

    Hi, 
    clear: d_JOB_COUNT.
        CALL FUNCTION 'JOB_OPEN'
          EXPORTING
            JOBNAME  = d_JOBNAME
          IMPORTING
            JOBCOUNT = d_JOB_COUNT.
        submit ZFI_AGEWISE_PERFORMANCE
        VIA JOB d_JOBNAME
        NUMBER  d_JOB_COUNT
        with IKUNNR   IN r_id
        with s_vertn  in S_VERTN
        with s_hkont  IN S_HKONT
        with IBUDAT   eq IBUDAT
        with P_BUKRS  eq P_BUKRS
        with s_umskz  in s_umskz
    *with R1 = R1
        WITH R2 = R2
    *with r3 = R3
        WITH P_SESS = P_SESS
        AND RETURN.
        CALL FUNCTION 'JOB_CLOSE'
          EXPORTING
            JOBNAME      = d_JOBNAME
            JOBCOUNT     = d_JOB_COUNT
            STRTIMMED    = 'X'.
    Reward Points

Maybe you are looking for

  • Issues with Shockwave 11.5.2.602 / 11.5.6.606 MSI installer

    <UPDATE 8/3/09> Nearly all of the issues mentioned below are still present in the MSI installer for 11.5.6.606 - the only one that Adobe have fixed is the one where the MozillaPlugins 'Version' value is left blank by the MSI by default - this is now

  • Why i keep getting the message application could not be downloaded at this time on  ipad2

    Why I keep getting message application could not be downloaded at this time, for applications purchased for the app store. I have tried resetting my ipad and that did not work, so now I have all this apps that I have purchased but will not download.

  • Sound Recorder doesnot records sound !!

    Hello i have Hp Pavilion DV-6 6010tx Operating System windows 7 (64-bit) my sounds are played but the sound recorder and skype dont record sound

  • Text and text box unavailable

    Used iWeb 09 to build a web page with a template: Now the left column is unavailable for edit or selection as a text box. If I "select all", it is selected with all other elements on the page--and I can move the box--but still can't edit the text in

  • Fixing this error: "error: no such partition" "Grub Rescue"?

    Before re-paritioning my HDD back to 1 partition only using Disk Utility on my OS X install DVD, I had a triple boot with Snow Leopard, Win7, and Ubuntu using refit. To back up, I partitioned an external HDD into two partitions.  I used one partition