Call a screen in another program

Hi
I have a program PRG1 that has screen 1000.
I want to load this screen from the program PRG2.
thanks
Murugesh

yes , do now like below. it will surely work. it worked for me.
DATA: bdcdata_wa TYPE bdcdata,
bdcdata_tab TYPE TABLE OF bdcdata.
CLEAR bdcdata_wa.
bdcdata_wa-program = 'PRG1'.
bdcdata_wa-dynpro = '1000'.
bdcdata_wa-dynbegin = 'X'.
APPEND bdcdata_wa TO bdcdata_tab.
CALL TRANSACTION <TCODE> USING BDCDATA_TAB.

Similar Messages

  • Calling selection screen of another  program

    Hi all,
         Am trying to call a program from a enhancement section of IW3K transaction using the following statement.But the selection screen of the program is not getting displayed.
    but the screen is dispalyed when i run the statement in debug mode.
    Can anyone help me on this...
    useful answers will be rewarded.
    submit Z XXXXX            via selection-screen
                                       WITH s_ispla =  'BEKD'
                                       WITH p_rsnum =  CAUFVD-rsnum
                                       WITH s_rspos in   i_range_tab
                                       and RETURN.

    hi,
    You can call one selection screen from other selection screen program using SUBMIT command.
    The syntax is as follows -
    codeSUBMIT... VIA SELECTION-SCREEN
    USING SELECTION-SET <var>
    WITH <sel> <criterion>
    WITH FREE SELECTIONS <freesel>
    WITH SELECTION-TABLE <rspar>.[/code]
    e.g.
    The following executable program (report) creates a selection screen containing the parameter PARAMET and the selection criterion SELECTO:
    codeREPORT demo_program_submit_rep1.
    DATA number TYPE i.
    PARAMETERS paramet(14) TYPE c.
    SELECT-OPTIONS selecto FOR number.[/code]
    The program DEMO_PROGRAM_SUBMIT_REP1 is called by the following program using various parameters:
    codeREPORT demo_program_submit_sel_screen NO STANDARD PAGE HEADING.
    DATA: int TYPE i,
    rspar TYPE TABLE OF rsparams,
    wa_rspar LIKE LINE OF rspar.
    RANGES seltab FOR int.
    WRITE: 'Select a Selection!',
    SKIP.
    FORMAT HOTSPOT COLOR 5 INVERSE ON.
    WRITE: 'Selection 1',
    / 'Selection 2'.
    AT LINE-SELECTION.
    CASE sy-lilli.
    WHEN 4.
    seltab-sign = 'I'. seltab-option = 'BT'.
    seltab-low = 1. seltab-high = 5.
    APPEND seltab.
    SUBMIT demo_program_submit_rep1 VIA SELECTION-SCREEN
    WITH paramet eq 'Selection 1'
    WITH selecto IN seltab
    WITH selecto ne 3
    AND RETURN.
    WHEN 5.
    wa_rspar-selname = 'SELECTO'. wa_rspar-kind = 'S'.
    wa_rspar-sign = 'E'. wa_rspar-option = 'BT'.
    wa_rspar-low = 14. wa_rspar-high = 17.
    APPEND wa_rspar TO rspar.
    wa_rspar-selname = 'PARAMET'. wa_rspar-kind = 'P'.
    wa_rspar-low = 'Selection 2'.
    APPEND wa_rspar TO rspar.
    wa_rspar-selname = 'SELECTO'. wa_rspar-kind = 'S'.
    wa_rspar-sign = 'I'. wa_rspar-option = 'GT'.
    wa_rspar-low = 10.
    APPEND wa_rspar TO rspar.
    SUBMIT demo_program_submit_rep1 VIA SELECTION-SCREEN
    WITH SELECTION-TABLE rspar
    AND RETURN.
    ENDCASE.[/code]
    => To leave a called program, you can use SUBMIT .... AND RETURN. by choosing F3 or F15 from list level 0 of the called report.

  • How to call  Screen in another program from exsisting program

    Hello Frieds,
    Can any one help me how to call  a screen  in another program (Say "test2") from exsisting program(say "test1')
    If above case is possible then how to access the fields in the target screen?
    Your responce is greatly appreciated.
    Best Regards,
    Rakesh

    Hi Rakesh,
    If you wish to use ONLY the screen of another program, call transaction  will not help you, because the called transaction will be fully executed (and not only the screen), and the acess to screen field wil be difficult.
    When you wish to access the same screen from more than one program, you can create this screen in a function module and in this way you can call the function (to display the screen) in many programs.
    Best regards,
    Leandro Mengue

  • Calling selection screen from another selecton screen.

    Hi guys,
    I want to call default selection screen of one program from default selection screen of another program.
    Is that possible . would appreciate some helpful answers.
    Thanks,
    Venkat.

    it is possiable.
    1.submit
    2. call transcation t_code.
    Syntax
    SUBMIT <prog>.
    For more information about the SUBMIT statement, see Calling Executable Programs (Reports)
    Assume the following simple report:
    REPORT ZDYN3.
    WRITE / 'Dynamic Program!'.
    The following executable program (report) starts, modifies, and restarts ZDYN3:
    REPORT ZMASTER1.
    DATA CODE(72) OCCURS 10.
    DATA LIN TYPE I.
    READ REPORT 'ZDYN3' INTO CODE.
    SUBMIT ZDYN3 AND RETURN.
    DESCRIBE TABLE CODE LINES LIN.
    MODIFY CODE INDEX LIN FROM
    'WRITE / ''Dynamic Program Changed!''.'.
    INSERT REPORT 'ZDYN3' FROM CODE.
    SUBMIT ZDYN3.
    The output of this program is displayed on two subsequent output screens. The first screen displays:
    Dynamic Program!
    The second screen displays:
    Dynamic Program Changed !
    When you use the SUBMIT statement, all modifications made to a program during runtime take immediate effect before they are submitted. In the above example, ZDYN3 is submitted from ZMASTER1 first in its original and then in its modified form, generating different results.
    This is not the case if you change the codes of include programs or subroutines dynamically.
    Assume the following include program:
    INCLUDE ZINCLUD1.
    WRITE / 'Original INCLUDE program!'.
    and an executable program (report) for modifying and including it:
    REPORT ZMASTER2.
    DATA CODE(72) OCCURS 10.
    DATA LIN TYPE I.
    READ REPORT 'ZINCLUD1' INTO CODE.
    DESCRIBE TABLE CODE LINES LIN.
    MODIFY CODE INDEX LIN FROM
                'WRITE / ''Changed INCLUDE program!''.'.
    INSERT REPORT 'ZINCLUD1' FROM CODE.
    INCLUDE ZINCLUD1.
    If you run ZMASTER2, the source code of include program ZINCLUD1 is changed and replaced in the system. However, the last line of ZMASTER2 executes the older version since the runtime object of ZMASTER2 is generated before ZINCLUD1 is modified. Only when ZMASTER2 is run a second time, does the system determine that ZINCLUD1 has been changed. Exactly the same is true if you dynamically modify the source code of a subroutine and call it from within the same program.
    One way to solve this problem is to use the INCLUDE statement within an external subroutine that is called by the program. This allows you to create or modify include programs or subroutines and use the updated versions directly in the same program.
    Assume the following include program:
    INCLUDE ZINCLUD1.
    WRITE / 'Original INCLUDE program!'.
    and an external subroutine:
    PROGRAM ZFORM1.
    FORM SUB1.
         INCLUDE ZINCLUD1.
    ENDFORM.
    The following program reads the include program, modifies it, enters it back into the system, and calls the subroutine.
    REPORT ZMASTER3.
    DATA CODE(72) OCCURS 10.
    READ REPORT 'ZINCLUD1' INTO CODE.
    APPEND 'WRITE / ''Extension of INCLUDE program!''.' TO CODE.
    INSERT REPORT 'ZINCLUD1' FROM CODE.
    PERFORM SUB1(ZFORM1).
    This produces the following output:
    Original INCLUDE program!
    Extension of INCLUDE program!
    In this case, the updated version of the include program is used in the subroutine because its time stamp is checked when the subroutine is called, and not when the calling program is generated.

  • CALL TRANSACTION 'ME33K  from another program

    Hi,
    I ma trying to CALL TRANSACTION 'ME33K  from another program, but it is not working.  The transactions is opening, but it is not opening with the contract number (ls_ekpo-ebeln) i am passing.
    ls_ekpo-ebeln does have a valued when CALL TRANSACTION 'ME33K  is called.
    In debug, I noticed the "value" is blank when step into CALL TRANSACTION 'ME33K .
       WHEN 'EBELN'.  "Contract
          l_field = 'EVRTN'.
         IF ls_ekpo-ebeln <> ''.
            GET PARAMETER ID 'VRT' FIELD l_field.  "EVRTN.
           SET PARAMETER ID 'VRT' FIELD ls_ekpo-ebeln.
           CALL TRANSACTION 'ME33K AND SKIP FIRST SCREEN.
            SET PARAMETER ID 'VRT' FIELD ls_ekpo-ebeln.
          ENDIF.
    Any help or suggestions would be great.
    Thanks,
    Naing

    Dear Naing,
    I execute the same code
    IF ls_ekpo IS INITIAL.
    GET PARAMETER ID 'VRT' FIELD LS_EKPO.
    SET PARAMETER ID 'VRT' FIELD ls_ekpo.
    CALL TRANSACTION 'ME33K' AND SKIP FIRST SCREEN.
    SET PARAMETER ID 'VRT' FIELD ls_ekpo.
    ENDIF.
    And it is working.
    Try to do de simple sintax.
    A program with one pararmeter to introduce the contract number.
    The set parameter for this parameter and the call transaction.
    I´m waiting your comments.
    Regards.
    Antonio.

  • Probe in calling  tabstriped screen from another screen ..

    hi
    could any one please  help me ,,,that what is the logic for calling tabstriped screen from another screen ..
    Thanks N Regards
    Priya

    Hi,
    Jonathan.
    Thanks for the response ...
    I did execute with call screen statement ...(CALL SCREEN 0123). ..when i excute the  program its working fine ,but the same programe when I  execute with the  T.CODE ...its giving erorr ...
    ERORR:Program " ZTEST "tried to  use screen 000.
            the screen doesn't exist.
    HERE IS CODE.
    let me know where is the mistake ..
    could you please , help me ,,what i suppose to do .
    let me know where is the mistake ..
    REPORT ZTEST .
    DATA: DATE LIKE SY-DATUM,
           TIME LIKE sy-uzeit.
    DATA  number TYPE sy-dynnr.
    CONTROLS tabstrip TYPE TABSTRIP.
    tabstrip-activetab = 'TAB1'.
    number = '1003'.
    tabstrip-activetab = 'TAB2'.
    number = '1004'.
    CALL SCREEN 1000.
    *&      Module  STATUS_1000  OUTPUT
          text
    MODULE STATUS_1000 OUTPUT.
      CASE : SY-UCOMM.
        WHEN 'ENTER'.
          LOOP AT SCREEN.
            IF SCREEN-GROUP1 = 'MOD'.
              DATE = DATE.
              TIME = time.
              SCREEN-INPUT = '0'.
            ENDIF.
            MODIFY SCREEN.
          ENDLOOP.
      ENDCASE.
    SET PF-STATUS 'xxxxxxxx'.
    SET TITLEBAR 'xxx'.
    ENDMODULE.                 " STATUS_1000  OUTPUT
    *&      Module  USER_COMMAND_1000  INPUT
          text
    MODULE USER_COMMAND_1000 INPUT.
      CASE SY-UCOMM.
        WHEN 'ENTER'.
          LEAVE TO SCREEN 1001.
      endcase.
    ENDMODULE.                 " USER_COMMAND_1000  INPUT
    *&      Module  USER_COMMAND_1001  INPUT
          text
    MODULE USER_COMMAND_1001 INPUT.
      CASE SY-UCOMM.
            WHEN 'button1'.
            CALL SCREEN 1002.
        ENDCASE.
        ENDMODULE.                 " USER_COMMAND_1001  INPUT
    *&      Module  USER_COMMAND_1002  INPUT
          text
    MODULE USER_COMMAND_1002 INPUT.
        CASE sy-ucomm.
          WHEN 'TAB1'.
            number = '1003'.
          WHEN 'TAB2'.
            number = '1004'.
        ENDCASE.
        ENDIF.
    ENDMODULE.                 " USER_COMMAND_1002  INPUT
    *&      Module  STATUS_1002  OUTPUT
          text
    MODULE STATUS_1002 OUTPUT.
    SET PF-STATUS 'xxxxxxxx'.
    SET TITLEBAR 'xxx'.
    ENDMODULE.                 " STATUS_1002  OUTPUT
    Thanks N Regards.
    Priya.

  • Call transaction MMBE from another program and press Back button

    Hello,
    I have program that is used as a 'launch pad' for some of our heavily used transactions. When I call the main 'launch pad' program, the user will select a button and a Call Transaction MMBE is initiated (USING the first screen). The user selects a material for display and presses the execute button (F8). The material overview is displayed correctly.  When the user presses the Back button (F12), transaction returns all the way back to the first called program and not to the first screen for transaction MMBE as expected.
    Does anyone know how I can change the screen flow and go back to the fist screen of MMBE and not the screen of the first called program?
    Regards,
    RC

    Rod,
    In your case i think it is not possible as it is standard functionality by SAP.
    Try work around, may be modification to the program will work.
    Regards,
    Amey

  • Calling same screen in different programs?

    Hi All,
    I have to call same custom screen in different programs.
    So what is the best way to do this? I dont want to create the same screen in every program, insted I want to create 1 screen and call the same one in every program.
    Any ideas?
    Thanks.

    Hi,
    you are right. It's not possible. I just wan to add quote from ABAP documentation about statement CALL SCREEN.
    The statement CALL SCREEN accesses the dynpros of the relevant main program of the current program group and these use the global data and dialog modules of the main program. Except when calling a dynpro in an externally called subroutine, the main program usually is the current program. If the specified dynpro does not exist in the main program of the program group, an untreatable exception occurs.
    Cheers

  • Using screen from another program?

    Can I use a screen created in one module pool program for another report/module pool program?
    Is that possible?
    Thanks.

    Hi nuren,
    U can do it this way.
    Create a Transaction for for program P1.
    In SE80 - Maintain Transaction (say zprog1)
    Here u have to pass program name(p1) and screen No. (103)
    and use CALL TRANSACTION in PAI of p2 to call it.
    CALL TRANSACTION zprog1. "as created above
    If u want the execution to completely on p1- 103
    use
    LEAVE TO TRANSACTION zprog1. "as created above
    Hope this will help.
    Reward if helpful.
    Regards
    Sachin Dhingra

  • Call Selection screen of other program..

    Hello ABAP Experts,
    I have a situation where in I need to call the selection screen of one sap generated standard program without executing that program & get the values of those selection variables in to my custom program. Is there a way to do that? Please help.
    Thanks,
    Pandu

    If it is static or one program I could have done like that. But the nature of the  program is dynamic & not just one program.

  • Calling a report from another program

    Hi friends,
    I want to run an existing  report from one function module and I need the output in an internal table for further processing.But I don't want to change the called program for any export to memory.How can we do it ?
    Thanks in advance,
    Joby

    Hi,
    U can do by using
    SUBMIT PROGRAM VIA SELECTION-SCREEN .
    Bye

  • Calling Standard screen from custom program

    Hi all,
             My requirement is
    1)Either to fix a link(say from a button) on my custom screen for material creation,to call mm01 basic data screen for image upload.
    2) Or to upload material image directly to the corresponding table(using any fm or something).
    ,please show me light on the above issue.
    Thanks in advance
    Sri

    Hi Jovito,
    I also think the same that it's not possible. Now my issue is how to get my requirement.
    FYI..
    To open Classification screen directly we have a function module CLFM_OBJECT_CLASSIFICATION. But if I want to open IA06
    Inspection characterstics screen we don't have any FM or API to do the same.
    So how will I get my requirement done. That why I use the BDC call transaction to open IA06 Insp. characterstics screen but here I am facing this Back issue.
    Please advice if there is any suggestion.

  • Error when calling  a form from another program

    Hi all,
    I'm using the following code in EXIT_SAPLV50Q_001:
    PERFORM STATIC_CREDIT_CHECK(SAPLVKMP)  
    USING '' LIKP-KKBER LIKP-KNKLI '' 'X'
    CHANGING RC_CHECK_A RC_CHECK_F RC_WARNING RC_ERROR RC_STATUS_SET CMPSA
    I'm getting the following error:
    GETWA_NOT_ASSIGNED - Field symbol has not yet been assigned in line LOCAL: XVBKD-PRSDT which is in FORM MESSAGE_EXCEEDED_VALUE.
    I have assigned a value for field XVBKD-PRSDT so it won't be initial, but this was not helpful.
    Any ideas would be appreciated.
    Hagit

    Hi guest,
    the data definition is:
    DATA: XVBKD LIKE VBKDVB OCCURS 0 WITH HEADER LINE.
    the assignment:
    XVBKD-PRSDT = likp-erdat.
    Thanks,
    Hagit

  • How to call a screen in a new session -- Urgent

    Hi all,
    I need to call a screen from another program in a new session, is it possible or not? if possible, please help me. After that when clicked on one button, session should automatically closed. waiting for valuable replies....
    Thanks in Advance.
    Siva Sankar.

    Hi Gourav,
    Thanks for ur quick reply. Actually i'm calling a module pool program from one screen when clicked on one button. My requirement is that module pool program should be opened in seperate session. when clicked on exit button in new session, that session should be closed. is it possible?
    Thanks,
    Siva Sankar.

  • Call screen into module program?

    hi all,
       i am trying to call the screen of sap standard program into my customized module program can anyone please tell me how to call screen of another program into my program?
    thanks
    john

    Hi,
    First set the values which needs to be passed using the following statement:
    SET PARAMETER ID <pid> FIELD <f>.
    then call your screen using the statement:
    call screen 'SCREEN_NUMBER'.
    if the screen is of a standard transaction then do set the required values through set parameter statement and then call the screen as
    CALL TRANSACTION <tcod> [AND SKIP FIRST SCREEN] [USING <itab>].

Maybe you are looking for

  • Reversal of Depreciation posted already in a closed financial year

    Hi I met with a scenario , where in a financial year 2009 ( Apr to Mar) I acquired an asset on 01.04.2009. The whole year depreciation was run and posted. How to reverse the posted depreciation, a) for the entire year b) for a selected period. Thanks

  • Dynamic user interfaces

    Hello, here's a little teaser for user interface experts out there: I wonder what kind of techniques ABAP offers for creating dynamic user interfaces. When talking of 'dynamic' I imagine something like an arbitrary number of 'containers' where other

  • Display of  Row and Column Headers in NW2004s Bex Analyzer

    Hi all, when I open a query with the NW2004s Bex Analyzer (Excel)Frontend <b>Row and Column Headers are not visible</b>. I need to go to <b>"Tools-Options" and check the box  for "Row and Column Headers" which seems to be unchecked by default</b>. Is

  • Adding frames in a slow-motion scène

    Hi I slowed my video down to a speed of 5% using the speed option & then I used the motion blur option to soften the transitions between the frames a bit. Its still kind of messy I think, is there a filter or anoption that adds new frames so the slow

  • Dreamweaver CS5 on MacBook Pro OS 10.7.2: Can't Copy and Paste Text

    I can't pasted copied text into my "code" view in DW. I can copy that code/text to TextEdit or the like but I can NOT paste it into DW. Help please!