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

Similar Messages

  • 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

  • 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 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

  • 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

  • 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

  • Time constraints and Dialog module

    1.What is the difference between the time constraints A(IT exists just once from 01 Jan 1800 to 12 Dec 9999) and B(IT exists for maximum of once from 01 Jan 1800 to 12 Dec 9999)?
    2.What is the necessity of dialog module for a Infotype?

    Time Constraint A and B
    Infotypes with time constraint A & B must have no more than one record. The system automatically assigns the record a validity period from January 01, 1800 through December 31, 9999. This validity period cannot be subdivided.
    Infotype records with time constraint A CANNOT be deleted.
    Infotype records with time constraint B CAN be deleted.
    The difference is check the BOLD TEXT.
    As for ur second question, Function modules/dialog modules helps calling infotypes when called from any custom program ,and allows you to perform similar actions/tasks that you would perform on them from direct maintainance. ex: create,change, delete etc. also performing the same on multiple infotypes in a single go using a them is easier than writing a code to manipulate each single infotype.
    SAP exposed these functions to be exploited as there will come many situations in business scenarios where you require to work with them by writing custom code.
    hope its helpful

  • Dialog & Report Programming!

    Hi Experts,
    Can you please explain what is the different between
    <b>Dialog & Report Programming</b>
    Thanks in Advance,
    Guru.

    hi
    <b>Here is that difference</b>
    <b>Report Programs:</b>
    1. Reports are stand alone programs.
    2. We use reports to read data base tables & represent results in Lists
    3. Reports are collection of processing blocks, controlled by System calls depending on events.
    4. Reports can use LDBs or SELECT STATEMENTS
    defined by DEVELOPER.
    5.Reports can call Dialogue programs and vice versa.
    <b>Dialog Programming</b>
    1.Dialogue programs are not stand alone programs. (we
    have to link the dialogue programs to at least one or
    more SCREENS & TRANSACTION CODES)
    2. We use Dialogue Programs to read & change
    Database tables.
    3.Dialogue programs are controlled by Screen flow logic.
    4.Dialogue program is also called as Module pool program
    or TRANSACTION.
    5.These module pools are separated in to PBO and PAI
    events.
    Re: Difference between Dialog programming and reports.
    regards
    vijay
    <b>plz dont forget to reward points if helpful</b>
    Regards,
    Santosh

  • MODULE POOL / MODULE PROGRAMMING / DIALOGUE PROG.

    Hello to the Experts!!
    I need to know what's the diffrences among
    1.) Module Pool
    2.) Module Programming
    3.) Dialogue Prog.
    If they are different from each other, I want to learn each of them.
    Kindly provide me all the materials to master them.
    Looking forward to your huge responses.
    Thanks!!

    Hi,
    <i><b>I need to know what's the diffrences among
    1.) Module Pool
    2.) Module Programming
    3.) Dialogue Prog.</b></i>
    All the 3 are the same.
    For the docs.
    Refer
    new to module pool program
    http://wiki.ittoolbox.com/index.php/FAQ:What_is_module_pool_program_in_abap%3F
    http://www.thespot4sap.com/Articles/SAP_Design_Dynpro.asp
    check this link:
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCDWBTUT/BCDWBTUT.pdf
    http://help.sap.com/saphelp_40b/helpdata/en/d3/2e974d35c511d1829f0000e829fbfe/applet.htm
    Have a look at these good links-
    http://www.allsaplinks.com/dialog_programming.html
    http://sap.mis.cmich.edu/sap-abap/abap09/
    http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
    http://help.sap.com/saphelp_webas630/helpdata/en/9f/db9cdc35c111d1829f0000e829fbfe/content.htm
    http://sap.mis.cmich.edu/abap-00/
    http://www.allsaplinks.com/files/using_table_in_screen.pdf
    http://help.sap.com/saphelp_46c/helpdata/en/08/bef2dadb5311d1ad10080009b0fb56/content.htm
    http://www.sapgenie.com/links/abap.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c9/5472fc787f11d194c90000e8353423/frameset.htm
    http://help.sap.com
    http://www.sapgenie.com/abap/example_code.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/52/670ba2439b11d1896f0000e8322d00/frameset.htm
    http://www.allsaplinks.com/dialog_programming.html
    http://www.sapbrain.com/TUTORIALS/default.html
    http://www.sappoint.com/abap/spmp.pdf
    http://sappoint.com/abap.html
    http://www.sap-img.com/abap.htm
    http://sap.ittoolbox.com/code/archives.asp?i=10&t=450&a=t
    http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
    http://www.sap-img.com/abap/
    http://www.sap-img.com/
    http://www.sappoint.com/faq/faqdiapr.pdf
    http://www.allsaplinks.com/dialog_programming.html
    http://www.sapgenie.com/abap/example_code.htm
    http://www.sap-img.com/
    http://help.sap.com/saphelp_46c/helpdata/en/08/bef2dadb5311d1ad10080009b0fb56/content.htm
    http://www.sapgenie.com/links/abap.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c9/5472fc787f11d194c90000e8353423/frameset.htm
    http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
    Regards,
    Deepu.K

  • 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

  • Which table contains function module program name

    Hi,
    Which table contains function module program name.
    Regards,
    raj

    Hi,
    We have one function module called 'FUNCTION_INCLUDE_INFO'.
    Where u ll get the program name to which it belongs to, function group and the include number. (e.g if the function group program name contains 9 function modules and ur function module  is in 3rd include then it will return the include name to which it belongs )

  • 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

  • Table control in module program

    hi,
    i don't know about table control in module program.so please send the faq's ?

    hi
    ganapathi
    Table Controls in ABAP Programs
    To handle table controls in ABAP programs, you must declare a control in the declaration part of the program for each table control using the following statement:
    CONTROLS .
    if you only want to determine the row of the table control. SY´-SUBRC allows you to check if the cursor is placed in a row of a table control.
    this is all information about table control still if u have any quiries my mailid is [email protected]
    plzz reward if usefull
    dont forget to reward

  • 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.

Maybe you are looking for