In Dialog module programing how to navigate to previous screens?

I have a REPORT program which displays a ALV output with custom menu buttons along with the ALV buttons on the menu bar.
Once the custom button is clicked the REPORT program calls a custom SCREEN 1 the screen is displayed to the user and the screen has a custom menu which has some custom buttons.
if the user selects any button the user is taken to the next SCREEN 2 .
My Problm is when the processing is finished on the SCREEN 2 i would like the system to retrurn back to report out put screen and NOT on SCREEN 1.
If i use the bwlow code in SCREEN 2 - PAI event it just returns me back to SCREEN 1 and not to the report output screen.
SET SCREEN 0.
LEAVE SCREEN.
What coding needs to be done to return me back to the REPORT output screen from SCREEN 2.

Hi,
there is also possibility to specify  LEAVE TO LIST-PROCESSING.
Please check following link
http://help.sap.com/saphelp_nw04/helpdata/en/10/e7dbde82ba11d295a40000e8353423/content.htm
Regards,
  Karol
Edited by: Karol Seman on Oct 29, 2008 9:39 PM

Similar Messages

  • How to know the previous screen number..?

    Hi Expert..
    Is it possible to know the previous screen number?  From which screen this present screen  has called ? just similar to u201CLEAVE TO SCREEN 0u201D. I want to know the last screen number.
    Could you please suggest how I will able to get that screen number ?
    Thanks in advance.
    Regards
    Satrajit.

    Hi
    An alternative is to take a variable of type sy-dynnr.
    And when you leave from screen1 to screen2 at any user command, then assign the current screen number to this variable and control moves to the next screen.
    Now you can use this variable on the next screen (presently current screen) to access the previous screen number (from which the present screen was called).
    DATA : v_prev_screen TYPE sy-dynnr.
    At any user command:-
    v_prev_screen = sy-dynnr.
    CALL SCREEN 8002. " or LEAVE TO SCREEN 8002
    Now on the next screen 8002, you can access the variable v_prev_screen to the previous screen number.
    Hope this solves your problem.
    Thanks & Regards,
    Tarun Gambhir

  • Dialog module program

    Is it possible to change the text name dynamically.
    I know that we can activate or inactivate a button, text box but my requirement is i want to change the caption based on the selection dynamically is that possible .
    If yes means can any one help me to solve this.
    Thanks in advance.
    Kalpanashri Rajendran.

    Hi,
      Declare an input field. Make the field 'FOR OUTPUT ONLY. THis can be achieved by checking the checkbox 'FOR OUTPUT ONLY' in the element's attributes screen in SE51.
    This field acts like the caption for your input field.
    Now in PBO follow the procedure....
    IF <SELECTION>
      TEXT_FIELD = 'DYMANIC VALUE 1'.
    else.
      TEXT_FIELD = 'DYMANIC VALUE 2'.
    ENDIF.
    This should solve your problem.
    Regards,
    Vara

  • How to insert a standard selection screen on moduled program?

    Hi All,
    Selection screen can be easily done in classic report by just simply invoking the event "SELECTION-SCREEN"
    SELECTION-SCREEN BEGIN OF ...
    SELECT-OPTIONS ...
    PARAMETERS ...
    In the case of moduled program, there will be a PBO and PAI, I have a requirement on my 2nd screen where I need to have a selection screen, but the SELECTION-SCREEN event is not applicable for NOT TYPE 1(Executable) Program.
    My Dialog Program Flow:
    Main Screen -> Display Screen (should be SELECTION SCREEN) -> Output (3rd screen)
    What's the best alternative solution on this scenario?
    Thanks.

    Hi All,
    I layout and detailed my question, please see my scenario below:
    screen 9000
    MODULE user_command_9000 INPUT.
      CASE ok_code.
         WHEN 'CREATE'.
            CALL SCREEN 9001.
         WHEN 'DISPLAY'.
             "SHOULD CALL A SELECTION SCREEN HERE
             "AFTER THE SELECTION SCREEN, IS ANOTHER SCREEN FOR OUTPUT
        ENDCASE.
    TOP include
    SELECTION-SCREEN BEGIN OF SCREEN 9003 AS SUBSCREEN.
      PARAMETERS P_PLANT TYPE T001W-WERKS.
      SELECT-OPTIONS: S_MATNR    FOR MARA-MATNR,
                      S_LICHA    FOR MCHA-LICHA,
                      S_LIFNR    FOR LFA1-LIFNR.
    SELECTION-SCREEN END OF SCREEN   9003.
    Questions:
    1. on the PAI of my main screen 9001, how can I call the SUBSCREEN I created using CALL SUBSCREEN?
        the code:
            CALL SUBSCREEN 9001 INCLUDING 'PROG_NAME' '9002',
         is not working / syntax error.
    2. Should I call it like this?
        WHEN 'DISPLAY'.
           CALL SCREEN 9002.
       Screen 9002 PBO
            CALL SUBSCREEN 9001INCLUDING 'PROG_NAME' 9002',
         is not working / syntax error.
    Thanks all.
    Edited by: Jaime Cabanban on Dec 2, 2009 5:29 PM

  • Dialog programming - How to place a select-option field in a dialog screen

    Hi all,
    In Dialog Programming, How to place a select-option field in a dialog screen.
    Kindly give me some example code...
    Thanks,
    Jaffer Ali.S

    hi Ali,
    U can add select-options in ur module pool by using  SELECTION-SCREEN BEGIN OF SCREEN <scrn> AS SUBSCREEN  command.
    check this link for reference.....
    http://help.sap.com/saphelp_47x200/helpdata/en/e7/deb237b9a9a968e10000009b38f8cf/frameset.htm
    Example Code :
    DATA : ok_code TYPE sy-ucomm.
    SELECTION-SCREEN BEGIN OF SCREEN 1010 AS SUBSCREEN.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS: p_rad1 RADIOBUTTON GROUP grp1 DEFAULT 'X',
                p_rad2 RADIOBUTTON GROUP grp1,
                p_rad3 RADIOBUTTON GROUP grp1.
    SELECT-OPTIONS: s_matnr FOR  mara-matnr,
                    s_matkl FOR  mara-matkl,
                    s_mtart FOR  mara-mtart.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN END OF SCREEN 1010.
    START-OF-SELECTION.
      CALL SCREEN 100.
    *&      Module  STATUS_0100  OUTPUT
    MODULE status_0100 OUTPUT.
    SET PF-STATUS 'xxxxxxxx'.
    SET TITLEBAR 'xxx'.
    CALL SCREEN 1010 .
    ENDMODULE.                    "status_0100 OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
          text
    MODULE user_command_0100 INPUT.
      CASE ok_code.
        WHEN 'EXIT'.
          LEAVE PROGRAM.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    SCREEN 100 ****************
    PROCESS BEFORE OUTPUT.
      MODULE status_0100.
      CALL SUBSCREEN sub_1010 INCLUDING sy-repid '1010'.
    <b>***** where sub_1010 is name of sub-screen area</b>
    PROCESS AFTER INPUT.
      CALL SUBSCREEN sub_1010.
      MODULE user_command_0100.
    <<< REMOVED BY MODERATOR >>>
    Harimanjesh AN
    Edited by: Marcelo Ramos on Dec 17, 2008 7:54 PM

  • How to create Dialog Module[Screen,Menu,object navigator]

    Dear All,
                kindly give me. How to create Dialog Module[Object Navigator,Screen,Menu,] steps with code.

    please see this  link   it is with  screen shot from the scrach ...
    <b>creating  struture 
    creating screen
    writing logic 
    table control
    creating tcode</b>  ...etc
    <a href="http://">http://www.sapdevelopment.co.uk/dialog/tabcontrol/tc_basic.htm</a>
    reward  points if it is usefull ...
    Girish

  • Dialog/Module pool programming

    Can anyone give me a link where i can find some useful data related to dialog/module pool programming.

    Hi Jyotirmaye,
    Please take a look at this link.
    http://sap.mis.cmich.edu/sap-abap/abap09/
    Hope this will help.
    Regards,
    Ferry Lianto

  • How to call Infotype Module Program from an executable prog

    Dear Gurus
    I need your help and ill be very grateful if you help me out with my query.
    My query is that. when we use pa30 transaction and enter the personal number and enter the infotype to create data it opens an Module Pool program with screen.
    I'm trying to make a report through which i want to call that infotype module pool program.
    the problem I'm facing is that I'm not able to send the parameters to that module program.
    Ill be very thankful to you if you help me out.
    Regards
    Saad

    use the following code.
    SET PARAMETER ID 'PER' FIELD personal_number.
        CALL TRANSACTION 'PA30' AND SKIP FIRST SCREEN.
    pass valid pernr to personal_number.

  • Dialog module

    hi,
    plz tell the coding for addition program using dialog module .
    here my spec given below.
    two input fields,
    one output fields,
    two pushbuttons namely add, exit.
    while click the add button the two input number should be add and depicts in the output field
    i dont know how to set the properties of all gui components and program.
    regards
    surender.

    *& Module pool SAPMYSP2
    INCLUDE MYSP2TOP . " global Data
    INCLUDE MYSP2O01 . " PBO-Modules
    INCLUDE MYSP2I01 . " PAI-Modules
    INCLUDE MYSP2F01 . " FORM-Routines
    INCLUDE MYSP2_O01.
    INCLUDE MYSP2_I01.
    top include program
    *& Include MYSP2TOP Module pool SAPMYSP2
    PROGRAM SAPMYSP2.
    DATA:INPUT1 TYPE I,
    INPUT2  TYPE I,
    OUTPUT1  TYPE I,
    OK_CODE TYPE SY-UCOMM,
    SAVE_CODE LIKE OK_CODE.
    pbo program
    ***INCLUDE MYSP2_O01 .
    *& Module INIT_SCREEN_100 OUTPUT
    text
    MODULE INIT_SCREEN_100 OUTPUT.
    ENDMODULE. " INIT_SCREEN_100 OUTPUT
    pai program
    ***INCLUDE MYSP2_I01 .
    *& Module USER_COMMAND_0100 INPUT
    text
    MODULE USER_COMMAND_0100 INPUT.
    SAVE_CODE = OK_CODE.
    CLEAR OK_CODE.
    CASE SAVE_CODE.
    WHEN 'ADD'.
    OUTPUT1 = INPUT1 + INPUT2.
    WHEN 'SUB'.
    OUTPUT1 = INPUT1 - INPUT2.
    WHEN 'MUL'.
    OUTPUT1 = INPUT1 * INPUT2.
    WHEN 'EXIT'.
    LEAVE PROGRAM.
    ENDCASE.
    ENDMODULE. " USER_COMMAND_0100 INPUT
    REGARDS
    SURENDER

  • I would like to use the windows explorer open dialog box instead of the adobe open dialog box. How can I change that?

    I would like to use the windows explorer open dialog box instead of the adobe open dialog box. How can I change that?

    The top screenshot is the Windows Open dialog box. All File > Open... commands in all Windows programs bring it up.   Try File > Open in Notepad for example.
    It belongs to Windows not Adobe. You cannot change this because there is no such thing as an Adobe Open dialog box.
    The bottom screenshot is Windows Explorer. It is Windows' OS File Browser, not an Open dialog.  It is not called up by Photoshop or any Windows program.
    You have to click on "My Computer" or a Folder icon to get to it. You can double-click a psd, jpeg or other image file in the Explorer window so that it opens in Photoshop.
    There is Adobe Bridge and Minibridge   Alt + Ctrl + O or File > Browse in Bridge

  • Need help in Module Programming

    Hi Friends,
              Can anyone send me the step by step document for creating a module program. It will be helpfull even if you send me sample code for creating a module program.
    Regards,
    Ranjith

    Go to transactions
    DWDM
    ABAPDOCU - > ABAP User Dialogs - > Screens
    Regards
    Gopi

  • Schedule Module program in Background with Dynamic Input values ?

    Hi,
    I am trying a schedule a Standard Transaction which has Month,year and other Check boxes (By default they are Empty) .I need to schedule it monthly and Input must change dynamically when I run in background each month..
    How do we do this?
    Regards
    Vara
    Message was edited by: Vara K

    You can not directly schedule a module pool program in background job.  These are usually reports.   What you can do is create a custom report program with your parameters on a selection screen.  In this program you can do a BDC over the standard transaction filling the parameters from the selection screen of the custom program.  This custom program can also have a selection screen variant which uses selection variables that will change dynamically.  Then you can schedule the custom report program via SM36.
    Regards,
    Rich HEilman

  • Module Programming  PBO and PAI flow.

    Hi,
    I am new to module programming,
    My req are -  I have 4 input fields and button in my first screen(1000)
    After user enters these values then I have to validate this values in the database and then
    I need to update 1 field value in the database. After updating I need to display the results in second screen (2000).
    Can any one please let me know what is the process in PBO and PAI modules.
    How to write code .
    1.     where to validate field values
    2.     where to write code for updating database.
    3.     where to write code for displaying success/failure message in second screen(2000)
    4.     where to write declarations.
    Thanks a lot for ur time .
    I highly appreciate ur help.
    Venkat.

    Hello
    Check this out:
                                INCLUDES                                 *
    INCLUDE ZIMMFORM001_TOP.
    INCLUDE ZIMMFORM001_PBO.
    INCLUDE ZIMMFORM001_PAI.
    Main Process
    START-OF-SELECTION.
    CALL SCREEN 100. -> double click
    END-OF-SELECTION.
    Uncomment the following:
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_0100.   -> double click
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_0100.  -> double click
    *&  Include           ZIMMFORM001_TOP
    Global Definitions                                   *
    "Your definitions
    *&  Include           ZIMMFORM005_PBO
    *&      Module  STATUS_0100  OUTPUT
          text
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'MEN'.  -> double click -> CREATE SCREEN STATUS 'EXE' AND 'BACK'
      SET TITLEBAR 'ZTIT'.  -> double click
    INITIATE WHATEVER YOU NEED
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&  Include           ZIMMFORM001_PAI
    *&      Module  USER_COMMAND_0100  INPUT
          text
    INSIDE THE CASE YOU CAN VALIDATE.WHEN 'EXE' IS SELECTED FOR EXAMPLE.
    MODULE user_command_0100 INPUT.
      CASE sy-ucomm.
        WHEN 'BACK'.
          LEAVE TO SCREEN 0.
        WHEN 'EXE'.
          PERFORM validate_form.
          PERFORM save_form_to_db.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    Hope this helps, dont forget to reward
    GABRIEL
    Message was edited by:
            Gabriel Fernando Pulido V.

  • Custom infotype replacement for dialog modules

    Hi,
    I have been asked to recreate a custom OM infotype (created with PPCI and based on the Planned Compensation infotype) to the new SAP EHP4 environment.  Part of the infotype is a custom dialog maintenace module that allows the infotype to be viewed and maintain with the PP01 transaction (planned compensation is linked to a job).
    When I recreate the code in the new environment (I cannot use a transport), I am unable to recreate the dialog module because the system says "dialog modules are obsolete and no longer supported."  Can you tell me what is the new way to create the new maintenance screen and have it work with PP01.  Also, it seems that if I try to change the configuration table T777D (using SM30) with something other than a dialog module name, it doesn't accept it, so where does the new maintenance screen go in that table?
    Thank you in advance for your help.
    Christian Durini.

    Hi,
    whereever we create a custom OM infotype using PPCI transaction, the system will go to next level as with titles as
    - Module Pool Program
    - Screens
    - Tables and etc...
    so as per the structure of Module Pool Program, first of all we have to create Program (Double click on each Program after that the cursor will to next screen.here we have to click on create button). After that go to SE51 and enter the program and screen number, click on change button. 
    Normally whenever we create info type the system will maintain with screens as 1000, 2000, 3000
    follow above procedure for 3 screens.
    Ram.

  • Dialog Module and List Processing.

    Hi All,
    I am having a program in which after processing I get a basic list. Using PF-STATUS of the basic list a dialog module is called using 'CALL SCREEN'  which accepts date and has exectue and cancel buttons on it.
    What do I do to so that user when clicks on cancel button the dialog module disapperas and the original list processing is still seen.
    Thanks,
    DJ

    Hi,
    To pass control from the dialog processor to the list processor, you must include the following statement in one of the dialog modules:
    LEAVE TO LIST-PROCESSING [AND RETURN TO SCREEN <nnnn>].
    You can include this statement in either the PBO or the PAI event. Its effect is to start the list processor and display the basic list after the PAI processing of the current screen. The basic list contains any list output from all PBO and PAI modules that have been executed up to that point.
    regads,
    keerthi

Maybe you are looking for

  • Java for Net weaver

    Hi, For a ABAP person what would be the easy method who doesn't know JAVA and want to learn JAVA and SAP Netwaver. How to start with . Thanx & Regards, Naidu.

  • SQL Lead & Lag to find gap between dates

    i have a table with two columns event_start and event_end : CREATE TABLE MYBATCHTAB   EVENT_START  DATE                             NOT NULL,   EVENT_END    DATE                             NOT NULL and my data is : Insert into MYBATCHTAB    (EVENT_S

  • I-Photo 9.4.3, certain pictures cannot be viewed or edited

    Some photos in my Library, when clicked on to expand view to full size from thumb-nail, disappear on to 'Slide Show. Anyone know why this is happening as I have never had a problem before with earlier versions of I-Photo?

  • Disable VA02 condition when PGI

    Hi All, Could anyone of you please tell me how to make the condition view to be in display-only mode even in VA02 after PGI has occurred? In our SAP, when user create delivery order, user cannot modify previous conditions in VA02 but can add new cond

  • Level 0 incremental backup

    Hi, is the level 0 incremental backup a full backup ? Thank you.