Drop down in Module pool program

Hi,
I need to have a drop down input/output field. For that I have given a name like YHRTM_LEAVE-ATEXT in screen painter. Here YHRTM_LEAVE is table and ATEXT is a field. I have maintained the possible values in ATEXT domain to avail the drop down values.
In PAI, I need to access YHRTM_LEAVE-ATEXT . But only YHRTM_LEAVE value appears only while debugging.
Could anybody help me to achieve my requirement.
Thanks
jey

This is an alternative option to using Domain. 
I use this method to customize the dropdown/listbox available to a field.
Here I retrieve from a custom table to fill the values, however, you can read DD07T to obtain the Domain Values.
This code retrieves a value from DD07T.
  SELECT SINGLE ddtext INTO p_value
    FROM dd07t
    WHERE domname = 'ZDROPTYPE'
      AND ddlanguage = sy-langu
      AND domvalue_l = p_key.
  IF sy-subrc NE 0.
    p_value = 'Undefined'.
This is different code to retrieve from custom table and display.
TYPE-POOLS             vrm.
DATA:   " Letter Name Restrict List
  rletname_field   TYPE vrm_id,
  rletname_result  TYPE STANDARD TABLE OF vrm_value,
  rletname_val     LIKE LINE OF rletname_result.
In the PBO routine
  REFRESH rletname_result.
  SELECT letterid letterdesc
    INTO TABLE rletname_result
    FROM zlmetext
    WHERE relid = base_relid
      AND appl  = base_appl.
* Field name to assign drop down values
  rletname_field = 'BASE_RLETTER'.
  CALL FUNCTION 'VRM_SET_VALUES'
       EXPORTING
            id              = rletname_field
            values          = rletname_result
       EXCEPTIONS
            id_illegal_name = 1
            OTHERS          = 2.
You must, in the screen painter attribute screen make the Dropdown option = Listbox.
Additionally, on the attribute screen on the Program tab, you must make the Value list (under Entry Help) = 'A'.

Similar Messages

  • Drop down list in module pool program.

    Hi Experts,
                    Can any one tell me how to maintain values in dropdown list on screen of  module pool.
    I have ' z' module pool program in which i have screen for z tcode and i want to add new values in drop down list . please tell me where to do modification.
    Regards,
    Rahul S

    Hi,
    Check the below code.
    TYPE-POOLS: VRM.
    DATA:V_NUM TYPE I.
    DATA:NAME TYPE VRM_ID,
    LIST TYPE VRM_VALUES,
    VALUE LIKE LINE OF LIST.
    DATA:I_WORKPATTERN LIKE ZWORKPAT OCCURS 0 WITH HEADER LINE.
    DATA:ZPATTXT(60).
    MODULE WORKPATTERN_LISTBOX OUTPUT.
    NAME = 'P9434-ZWORKPATTERN'.  --> Screen Field
    IF V_NUM IS INITIAL.
    CLEAR I_WORKPATTERN.
    REFRESH I_WORKPATTERN.
    SELECT *
    FROM ZWORKPAT   --> List box contents from the z table
    INTO TABLE I_WORKPATTERN.
    IF NOT I_WORKPATTERN[] IS INITIAL.
    LOOP AT I_WORKPATTERN.
    VALUE-KEY = I_WORKPATTERN-ZWORKPATTERN.
    VALUE-TEXT = I_WORKPATTERN-ZWORKPATTERN.
    APPEND VALUE TO LIST.
    ENDLOOP.
    ENDIF.
    CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING
    ID = NAME
    VALUES = LIST
    EXCEPTIONS
    ID_ILLEGAL_NAME = 1
    OTHERS = 2.
    IF SY-SUBRC 0.
    CLEAR SY-SUBRC.
    ENDIF.
    V_NUM = V_NUM + 1.
    ENDIF.
    Regards,
    Kumar Bandanadham
    Edited by: Velangini Showry Maria Kumar Bandanadham on May 26, 2009 3:53 PM

  • How to down load the Module pool program from sap

    hi friends,
    i am having the Module pool program in one server
    it consists of 1 screen.
    now i want to down load the Module pool program into another server.
    those two server are not linked.
    is there any way to copy from one server to another server.
    like what we do in smartfroms,that is downloading form and uploading the form.

    Hi,
    You can down load code from source system and u can upload those in your destination system. You can down load  Code as normally like    execute SE38 > enter ur program name> click on change button> Utilities(in menu bar)->more utilities>upload/down load>down load  in source system & Just use same path with upload instead of down load. So this will help u to transfer code from one system to other.
    Screens transfer: SE51> enter ur program name & screen no> click on change button> click on Layout button> Utilities(m)>upload/download>download for down loading a screen from source system.
             And follow the same procedure in destination system also just use up load instead of download. to upload a screen in destination system.
    Hope useful.
    Regards,
    BBR.

  • How to change the logon language in module pool program?

    Hello All,
    I had created a module pool program and had desiged a screen.
    When i am logged in English language i am able to see them in english as per the requirement it is working fine.
    But the requirement is wen i am logged in DE then the selection-screen texts should show in English and not in German.
    Kindly give me a solution for this.
    Thanks & Regards,
    Rajesh Kumar

    Hi Rajesh,
    This problem is because you have maintained a standard dictionary fields on selection screen and all the standard dictionary fields are maintained in DE language, on the screen layout, go to the attributes of that particular text field, there is a option MODIFIZ for dictionary fields (it is a drop down), selection F TEXT, now whatever the text u will define, it will remain same for all the languages, once u do this  then u again login in DE,l u will see the text maintained by u and not the DE text.
    Do reply if problem still persist.
    point if useful.
    Rohit G
    Edited by: Rohit Gaharwar on Aug 11, 2009 1:24 PM
    Edited by: Rohit Gaharwar on Aug 11, 2009 1:30 PM
    Edited by: Rohit Gaharwar on Aug 11, 2009 1:36 PM
    Edited by: Rohit Gaharwar on Aug 11, 2009 1:36 PM
    Edited by: Rohit Gaharwar on Aug 11, 2009 1:37 PM
    Edited by: Rohit Gaharwar on Aug 11, 2009 1:38 PM

  • List Box Problem In MODULE POOL PROGRAM(EDIT MODE)

    I Have Developed A MODULE POOL PROGRAM ,
    It Basically Consists Of   CREATE  EDIT and DISPLAY Modes.
    CREATE MODE:
    When I am Creating For Example FORM NO 1,it is having Fields With drop down list box with values
    A,B and C. if I Choose A then That form will Get Created With A value and Form 1 will be created.
    EDIT MODE:
    The same form If u want to edit In EDIT Mode ,it is displaying value A and it Showing the list box in the fillowing Manner.A,B,C,and A.(This is what the problem I am Facing Know).It Is Displaying the value two times.How to Avoid this ,PLs Help me in this regard.
    Thaks & Regards,
    Anuradha.

    Where ever you are populating the List Box, write a REFRESH statement just before that.
    Means Refresh the old content and add new content

  • How to create a ListBox in module pool program in 3.1i system ?

    Hi All,
    How to create a ListBox of type module pool program in 3.1i system ?
    when i tried creating, the listbox option is disabled.
    Thanks in advance.
    Edited by: gulab zehra on Aug 20, 2009 1:26 PM

    Hi,
    please go through this...
    LIST BOX                    
          Drop down list box can be created in a dialog screen(SE51) as well as selection screen.
          In screen painter to create a input/output field into list box we use  'L" as a value for dropdown attribute for the i/o field.  In screen painter to determine the type of method that will be used to fill the value list we use the attribute value list. If it is blank, the value list will be filled by the first column of the input help assigned to the screen field. This input help can be defined in the ABAP Dictionary, on screen using SELECT,VALUES screen statements or in event POV (PROCESS ON VALUE-REQUEST ) and the input help that will be passed to the field should consists of 2 columns ,the key column is filled automatically by the system. SAP recommends value list field should be blank.
    or
    The value  can be 'A' meaning that the value list will be filled in the event PBO(PROCESS BEFORE OUTPUT) or before the screen is displayed.In this method we use function module VRM_SET_VALUES to fill the values and pass it to the i/o field. If a function code is attached to the list box the selection of a value triggers a PAI otherwise PAI will not trigger.  LIST BOX in SELECTION SCREEN
        List Box is created in selection screen using PARAMETERS statement with
    AS LISTBOX addition other attributes like VISIBLE LENGTH (width of listbox) can be specified with the declaration. PARAMETERS name AS LISTBOX VISIBLE LENGTH n.
       The function module VRM_SET_VALUES is used to fill the value list associated with a List Box .This FM uses types which are declared in type group VRM. So we should declare TYPE-POOLS VRM before using this FM.
    Some important types declared in the VRM type group are
    VRM_ID
       It refers to the name of the input/output field associated with list box
    VRM_VALUES
      It refers to the internal table consisting of two fields TEXT(80C) and KEY(40)C
    that will be used to create the list values.
    CALL FUNCTION  'VRM_SET_VALUES'
      EXPORTING
          ID                  = name of screen element, it is of TYPE VRM_ID
          VALUES      = internal table containing values, of TYPE VRM_VALUES
    Thanks
    Ashu Singh

  • How to copy the module pool program ( Screens, codeing ) ?

    Hi guys,
           How can I copy the Module pool program to another program including screen and every thing?
          can anyone help me....

    1. GO TO SE80, and select program from drop down
    2. Enter Source Prog Name and press enter
    3. Below Object name, right click on the program
    4. Select COPY and enter the (New) Target Prog Name
    it ll ask for following check box options
    -Source
    -Text Element
    -Documentation
    -Variant...etc.
    5 Select all and press enter.
    Hope this ll be helpful.
    Thanks & Regards
    Vinsee

  • Dropdown list in module pool program

    Hi,
    I need to display a dropdown list for LFA1-LIFNR in my module pool program.
    In the screen painter I have added an Input/Output field with name LFA1-LIFNR and corresponding to the Dropdown option I have selected Listbox. When I execute the program empty dropdown list is coming. It is not taking the values of LIFNR from the table LFA1. Please let me know the solution for this.
    Thanks,
    Neethu.

    Hello Abaper,
    You have very well designed the drop-down box that is to be reflected in your program. The next thing for you to do is use any 1 method for populating the values i.e. using the function module F4IF_INT_TABLE_VALUE_REQUEST or VRM values. I prefer to use the the F4IF_INT_TABLE_VALUE_REQUEST as it is easy to use and understand. If you use the following function module then you need to call in a module under the flow logic of the screen i.e. PROCESS ON VALUE REQUEST.
    Let me just illustrate you with the syntax -
    Module Pool Code
    *internal table declaration
    TYPES : BEGIN OF ty_lifnr,
                     lifnr TYPE lfa1-lifnr,
    END OF ty_lifnr.
    DATA : itab_lifnr TYPE STANDARD TABLE OF ty_lifnr.
    *Dialog Modules for PBO
    *Dialog Module for PAI
    MODULE cancel INPUT.
       LEAVE PROGRAM.
    *Dialog Module Process on value reuest
    MODULE create_dropdownbox INPUT.
       SELECT lifnr
       FROM LFA1
       INTO CORRESPONDING FIELDS OF TABLE itab_lifnr.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
       EXPORTING
             retfield      = 'LIFNR'
             value_org = 'S'
       TABLES
             value_tab = itab_lifnr
       EXCEPTIONS
    ENDMODULE.
    Now for the Flow Logic -
    PROCESS BEFORE OUTPUT.
    PROCESS AFTER INPUT.
       MODULE cancel AT EXIT-COMMAND.
       MODULE user_command_0100.
    PROCESS ON VALUE REQUEST.
       FIELD lfa1-lifnr MODULE create_dropdownbox.
    Hope this helps ! Let me know if any other doubts arises.

  • Upload Module Pool program

    Hi Experts,
                        I have developed a Module Pool Program in IDES. Unfortunately the ides system is crashed. But I took the back up of the program. But I dont have any idea of how to upload the program into ides again. Please let me know how to download  and upload the code . Please suggest me or provide any links related to this issue.
    Thanking you,
    Regards,
    Murali Krishna T

    Hi Murali,
    no option to upload directly module pool program
    but we have a option to upload report program right same way u need to upload the program and
    in case of screen there is a option to download /upload screen in screen painter after going to screen click utilities and in that click upload or down load
    this way can upload module pool program
    Regards
    Surendra P

  • Simple module pool  programming.

    hi,
    can  anybody tell me how to go about doing module pool programming ....... to start with ....... how to add  2 nos. using screen  with 2 i\o fields for user to input 2 nos. and a output field  for result.........
    can  u tell the coding and the wat plz ..

    Hey deepak i think you are very new to module pool programming but it is very difficutlt to explain step by step process but easyest programming.
    do the following steps
    1. Create a program in SE38 ex: prog name is ztest create the program as executable program
    2.  Write a code in that program like this.
    data: w_no1 type i,
             w_no2 type i.
    3. Just save the program and activate it, and now go back to SE38 tcode.
    4. Now goto SE51 transaction
    5. give ztest in the program name and give screen number as 100 now press create button
    6. give the short test and press the Layout button
    7. In the there are some buttons in the left side in that press the second button Text field and now drag and drop in the flag screen give the name and text for that
    8. and now press the third button from the top and grag and drop it now give the name as W_NO1
    9. do the 7th and third steps for second number but give the name for the second field as w_NO2
    10. save it activate it and press the Flowlogic button
    11. Now uncomment the * MODULE USER_COMMAND_0100* and double click on that in the Main program and write the code in this.
    see the following.
    PROGRAM  ZTEST20.
    data: w_no1 type i,
    w_no2 type i.
    call screen 100.
    *&      Module  USER_COMMAND_0100  INPUT
    *       text
    module USER_COMMAND_0100 input.
    *write the code here
    endmodule.                 " USER_COMMAND_0100  INPUT
    <REMOVED BY MODERATOR>
    Mahi.
    Edited by: Alvaro Tejada Galindo on Feb 22, 2008 6:18 PM

  • Checkbox positioning issue in module pool program screen

    Hello All,
    I am facing one issue with the checkbox positioning in module pool program.I have designed the screen in 'SAP Signature Theme' and the checkbox position looks fine (while tested the screen in SE80) as shown below.
    Test Result from 'SAP Signature Theme':
    But the lead has a different theme in his SAP system and he got the below result where the checkbox automatically shifts right with the same code and screen design as shown below.
    Test Result from'Enjoy'  theme :
    Could you please help me resolve this strange issue as soon as possible.
    Thanks in advance!!!
    Thanks & Regards,
    Hafizul

    Hi Bhaskar,
    Sure , in fact this is has been created by dragging and dropping of the the standard checkbox template availabe in the layout,no custom code has been written for this.
    Please find the layout properties for this checkbox below.
    P9021-COMPLI_CONF is one character field.
    Please let me know if you need any other details on the same.
    Thanks & Regards,
    Hafizul

  • Debugging a Module Pool Program(Object Oriented ABAP)

    Hello Experts,
    Could you please advise me on an efficient debugging technoque of Module Pool Program which is based on Object Oriented ABAP?

    Hi
    Debugging Module pool program using ABAP objects is same as debugging any other report/module pool program.
    Click on the Create shortcut icon on the toolbar.
    In the popup window choose "System command" and in the command enter "/h"
    A shortcut on the desktop would be created
    Drag and drop the shortcut to the modal window to set debugging on.
    Approach 2:
    Create a txt file on the desktop with the following lines:
    [FUNCTION]
    Command=/H
    Title=Debugger
    Type=SystemCommandDrag and drop this file to the modal window to set debugging on.
    How do I switch between the Classic and New Debugger
    From within the ABAP workbench, select the Utilities->Settings Menu
    Select the ABAP Editor Tab
    Select the Debugging tab within the ABAP Editor Tab
    Select the Classic Debugger or New Debugger radio button
    Refer to this thread
    http://help.sap.com/saphelp_47x200/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm
    Debugging
    Check these documents.
    http://www.cba.nau.edu/haney-j/CIS497/Assignments/Debugging.doc
    http://help.sap.com/saphelp_nw04/helpdata/en/5a/4ed93f130f9215e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm
    http://www.cba.nau.edu/haney-j/CIS497/Assignments/Debugging.doc
    http://help.sap.com/saphelp_erp2005/helpdata/en/b3/d322540c3beb4ba53795784eebb680/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/84/1f624f4505144199e3d570cf7a9225/frameset.htm
    http://help.sap.com/saphelp_bw30b/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/b3/d322540c3beb4ba53795784eebb680/frameset.htm
    ABAP Debugging
    http://www.saplinks.net/index.php?option=com_content&task=view&id=24&Itemid=34
    Look at the SAP help link below
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm
    Reward points if useful
    Regards
    Anji

  • How to delete the row in table control with respect to one field in module pool programming?

    Hi,
    Can I know the way to delete the row in table control with respect to one field in module pool programming
    Regards
    Darshan MS

    HI,
    I want to delete the row after the display of table control. I have created push button as delete row. If I click on this push button, the selected row should get deleted.
    I have written this code,
    module USER_COMMAND_9000 input.
    DATA OK_CODE TYPE SY-UCOMM.
    OK_CODE = SY-UCOMM.
    CASE OK_CODE.
         WHEN 'DELETE'.
            LOOP AT lt_source INTO ls_source WHERE mark = 'X'.
                APPEND LS_SOURCE TO LT_RESTORE.
                DELETE TABLE LT_SOURCE FROM LS_SOURCE.
                SOURCE-LINES = SOURCE-LINES - 1.
            ENDLOOP.
    But I'm unable to delete the selected rows, It is getting deleted the last rows eventhough I select the other row.
    So I thought of doing with respect to the field.

  • Getting error while calling a subscreen in  module pool program

    HI  ALL,
                         ACTUALLY I'M GETTING A SYNTAX ERROR WHILE I'M CALLING A SUBSCREEN
                       IN A MODULE POOL PROGRAM IN PAI MODULE
                       THE ERROR IS AS FOLLOW
                           "." or "ID ... FIELD ..." expected after "SUBSCREEN"
                        CAN ANYBODY PLS HELP ME.
    REGARDS
    ANDREWS

    HI MAX ,
                      THE CODE IS AS FOLLOWS:
    *& Report  ZTABSTRIP_PS
    REPORT  ZTABSTRIP_PS.
    type-pools : vrm.
    DATA:number1 type I,
         number2 type I,
         result  type I,
         ok_code like SY-UCOMM,
         employee1 type c,
         ABAP(19)    type c,
         SALES(19)  type c,
         HR(19)      type c,
         MM(19)     type  c,
    employee type c.
        emp type c.
    CONTROLS  tabstrip TYPE TABSTRIP.
    CALL SCREEN 100.
    call screen 110.
    call screen 130.
    call screen 120.
    call screen  140.
    *&      Module  STATUS_0100  OUTPUT
          text
    MODULE STATUS_0100 OUTPUT.
      SET PF-STATUS 'STATUS'.
      SET TITLEBAR 'TITLE'.
      CASE OK_CODE.
        WHEN 'BACK' or 'EXIT' or 'DELETE'.
         leave program.
         WHEN 'SAVE'.
           MESSAGE 'please choose a valid function' TYPE 'I'.
       WHEN 'BACK'.
        leave PROGRAM.
    when  'EXIT' or 'DELETE'.
        leave to screen 0.
        WHEN 'SAVE'.
          MESSAGE 'please choose a valid function' TYPE 'I'.
    endcase.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
          text
    MODULE USER_COMMAND_0100 INPUT.
    CASE OK_CODE.
      when 'TAB1'.
    tabstrip-activetab = 'TAB1'.
       when 'TAB2'.
    tabstrip-activetab = 'TAB2'.
    result = number1 + number2.
       when 'TAB3'.
      tabstrip-activetab = 'TAB3'.
    SET TITLEBAR 'TITLE1'.
      when 'TAB4'.
        tabstrip-activetab = 'TAB4'.
       if employee = 'NEERAJ'.
         ABAP = 'NEERAJ'.
       elseif employee = 'UMESH'.
         SALES = 'UMESH'.
       ELSEIF employee = 'RAM'.
         HR = 'RAM'.
       elseif employee = 'ANIL'.
         MM = 'ANIL'.
         endif.
       employee = employee.
    WHEN 'BACK'.
        leave PROGRAM.
    when  'EXIT' or 'DELETE'.
        leave to screen 0.
        WHEN 'SAVE'.
          MESSAGE 'please choose a valid function' TYPE 'I'.
    ENDCASE.
       WHEN 'BACK' or 'EXIT' or 'DELETE'.
         leave program .
         WHEN 'SAVE'.
           MESSAGE 'please choose a valid function' TYPE 'I'.
    endcase.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Module  STATUS_0110  OUTPUT
          text
    **MODULE STATUS_0110 OUTPUT.
    SET PF-STATUS 'STATUS1'.
    SET TITLEBAR 'xxx'.
    **case ok_code.
    **WHEN 'back' or 'exit' or 'delete'.
        leave PROGRAM.
        WHEN 'save'.
          MESSAGE 'please choose a valid function ' TYPE 'W'.
    ENDCASE.
    **ENDMODULE.                 " STATUS_0110  OUTPUT
    *&      Module  USER_COMMAND_0110  INPUT
          text
    MODULE USER_COMMAND_0110 INPUT.
      number1 = number1.
      number2 = number2.
    CLEAR NUMBER1.
    CLEAR NUMBER2.
    REFRESH NUMBER1.
    REFRESH NUMBER2.
    ENDMODULE.                 " USER_COMMAND_0110  INPUT
    *&      Module  STATUS_0130  OUTPUT
          text
    MODULE STATUS_0130 OUTPUT.
    SET PF-STATUS 'STATUS2'.
    SET TITLEBAR 'xxx'.
    RESULT = number1 + number2.
    *CLEAR RESULT.
    REFRESH RESULT.
    ENDMODULE.                 " STATUS_0130  OUTPUT
    *&      Module  STATUS_0120  OUTPUT
          text
    MODULE STATUS_0120 OUTPUT.
    SET PF-STATUS 'xxxxxxxx'.
    SET TITLEBAR 'xxx'.
    DATA:  l_name TYPE vrm_id,
            li_list TYPE vrm_values,
            l_value LIKE LINE OF li_list.
      l_value-key = '1'.
      l_value-text = 'ANIL'.
      APPEND l_value TO li_list.
      CLEAR l_value.
    CLEAR li_list.
      l_value-key = '2'.
      l_value-text = 'RAM'.
      APPEND l_value TO li_list.
      CLEAR l_value.
    CLEAR li_list.
      l_value-key = '3'.
      l_value-text = 'NEERAJ'.
      APPEND l_value TO li_list.
      CLEAR l_value.
    CLEAR li_list.
      l_value-key = '4'.
      l_value-text = 'UMESH'.
      APPEND l_value TO li_list.
      CLEAR l_value.
    CLEAR li_list.
    l_name =  'employee'.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          ID                    =  l_name
          VALUES                =  li_list
       EXCEPTIONS
         ID_ILLEGAL_NAME       = 1
         OTHERS                = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CLEAR li_list.
    ENDMODULE.                 " STATUS_0120  OUTPUT
    *&      Module  USER_COMMAND_0120  INPUT
          text
    MODULE USER_COMMAND_0120 INPUT.
    INCLUDING sy-repid '140'.
    employee1 = employee.
    IF employee1 CS 'NEERAJ'.
      call SUBSCREEN    sub4  .
      ABAP = 'NEERAJ'.
      CLEAR ABAP.
    ELSEIF employee1 CS 'UMESH'.
       call SUBSCREEN  sub4  .
        SALES = 'UMESH'.
        CLEAR SALES.
    elseif employee1 CS 'RAM'.
      call SUBSCREEN sub4 .
       HR = 'RAM'.
       CLEAR  HR.
    ELSEIF employee1 CS 'ANIL'.
       call SUBSCREEN sub4 .
       MM = 'ANIL'.
       CLEAR MM.
       endif.
    ENDMODULE.                 " USER_COMMAND_0120  INPUT
    *&      Module  STATUS_0140  OUTPUT
          text
    MODULE STATUS_0140 OUTPUT.
    *CASE OK_CODE.
       WHEN employee1  'NEERAJ'.
         screen-active = 1.
         ABAP = 'NEERAJ'.
       WHEN employee1 = 'UMESH'.
         screen-active = 1.
         SALES = 'UMESH'.
       WHEN employee1 = 'RAM'.
         screen-active = 1.
         HR = 'RAM'.
       WHEN employee1 = 'ANIL'.
         screen-active = 1.
         MM = 'ANIL'.
         endif.
    *ENDCASE.
    ENDMODULE.                 " STATUS_0140  OUTPUT

  • Can we use Initilization event in module pool program?

    Hi All,
    Can we use Initialization event in module pool program? If not why?
    Thanks In Advance!!!!!!!!!

    The runtime environment creates the INITIALIZATION event and calls the corresponding event block (if it has been defined in the ABAP program).
    http://help.sap.com/saphelp_nw70/helpdata/EN/fc/eb2d67358411d1829f0000e829fbfe/content.htm
    SEE THE ABOVE LINK...THINK IT WILL SOLVE ALL YOUR DOUBTS
    REGARDS
    RACHEL

Maybe you are looking for

  • Problem with Arabic characters

    Hi: I don't know if this is the correct place to post the question, but here it goes... I have an SQL 2005 database, connected via a Linked Server to an Oracle Database. I have a table in SQL that contains arabic characters, and I need to insert it i

  • Can't get past login screen and accidentally added a Firmware password?

    Hi, please can you help me. Up until about a week ago my Mac Mini Server (running snow leopard server) was working fine, but when I re-started my user name and password stopped working (the panel shakes). I booted the computer from the Install DVD an

  • ITunes just wont start

    Soon after loading v 5.0.1, my computer stopped being able to open up iTunes. I get a message offering to send an error report to MS, but nothing else happens. I have Norton AV installed, and I think I upgraded recently, too, and I wonder if that cre

  • Brand New Machine and Photoshop CS6 running very slow

    I just installed Photoshop CS6 on my new Machine and it is running horrible. Moving around objects, turning effects on/off, zooming, and more all take for ever to render.  I can not figure out why. I have updated video card drivers and more. Scratch

  • How to copy organization / party in HZ

    Is there any API that would help me to copy one party record into another new? I am not worried about the customer accounts inside party, just need to copy party and attributes and relationships. Is there way HZ_PARTY_V2PUB.     CREATE_ORGANIZATION o