How to hide  some fields in default selection screen in hr abap

Hi experts,
I have created default selection screen,in that in the Period option I wants display only 'Today'.
And in the selection criteria i wants to display personnel number,companycode,personnelsubarea,employee status and instead of payroll area i wants to display 'Org unit'.please tell me step by step procedure,that could be greate helpfull.
Thanks in advance,
mohan

use this logic to display only today in the period option
**Local constants
   CONSTANTS:
          c_0                   VALUE  '0'  ,
          c_089     TYPE char3  VALUE  '089',
          c_091     TYPE char3  VALUE  '091',
          c_095     TYPE char3  VALUE  '095',
          c_097     TYPE char3  VALUE  '097'.
                 At Selection Screen
at selection-screen output.
LOOP AT screen.
      IF
           screen-group4 = c_089 OR
           screen-group4 = c_091 OR
           screen-group4 = c_095 OR
           screen-group4 = c_097  .
      screen-active = c_0.
      MODIFY SCREEN.
     ENDIF.
  ENDLOOP.

Similar Messages

  • Hiding some fields in default selection screen in hr abap

    Hi Experts,
      I am new to hr abap.I have created default selection screen by using LDB .in that i wants to display only the personnel number field.
    could any help me how to hide further selections,sort order and search helps at top of screen.
    thanks in advace,
    mohan

    use
    at slection-screen output.
    loop at screen.
    if screen-name = 'PNPBUKRS'. (example)
    screen-active = '0'.
    endif.
    modify screen.
    endloop.
    ==========================
    u can do it as group wise also.
    loop at screen.
    if screen-group1 = 'group name'.  (could be group1,2,3,4)
    screen-active = '0'.
    endif.
    modify screen.
    endloop.
    ====================
    Hi,
    Can u tell me which LDB and report category u are using so that i will send u the code as per the req.
    If the above code suits to ur req. pls reward the points.
    Regards
    eswar

  • Hiding some fields in default selection screen in hr abap created by pernr

    Hi experts,
    I have created default selection screen,in that in the Period option I wants display only 'Today'.
    And in the selection criteria i wants to display personnel number,companycode,personnelsubarea,employee status and instead of payroll area i wants to display 'Org unit'.please tell me step by step procedure,that could be greate helpfull.
    Thanks in advance,
    mohan

    hi mohan,
    try this
       **Local constants
       CONSTANTS:
              c_0                   VALUE  '0'  ,
              c_089     TYPE char3  VALUE  '089',
              c_091     TYPE char3  VALUE  '091',
              c_095     TYPE char3  VALUE  '095',
              c_097     TYPE char3  VALUE  '097'.
                     At Selection Screen
    at selection-screen output.
    LOOP AT screen.
          IF
               screen-group4 = c_089 OR
               screen-group4 = c_091 OR
               screen-group4 = c_095 OR
               screen-group4 = c_097  .
          screen-active = c_0.
          MODIFY SCREEN.
         ENDIF.
      ENDLOOP.

  • How to hide the fields in the selection screen

    hi please let me know how to keep hide the fileds in the selection screen  i.e in display mode, for the condition

    Hi Sudhir,
    Check the below code.
    tables: pa0000, pa0001.
    parameters: p_chk1 as checkbox user-command rusr,
    p_chk2 as checkbox user-command rusr,
    p_chk3 as checkbox user-command rusr,
    p_chk4 as checkbox user-command rusr,
    p_chk5 as checkbox user-command rusr.
    selection-screen: begin of block blk1 with frame.
    select-options: s_pernr for pa0000-pernr modif id ABC,
    s_stat2 for pa0000-stat2 modif id DEF,
    s_werks for pa0001-werks modif id GHI,
    s_persg for pa0001-persg modif id JKL,
    s_persk for pa0001-persk modif id MNO.
    selection-screen: end of block blk1.
    AT SELECTION-SCREEN output.
    LOOP AT SCREEN.
    IF SCREEN-GROUP1 = 'ABC'.
    IF p_chk1 = 'X'.
    SCREEN-ACTIVE = 1.
    ELSE.
    SCREEN-ACTIVE = 0.
    ENDIF.
    MODIFY SCREEN.
    ENDIF.
    IF SCREEN-GROUP1 = 'DEF'.
    IF p_chk2 = 'X'.
    SCREEN-ACTIVE = 1.
    ELSE.
    SCREEN-ACTIVE = 0.
    ENDIF.
    MODIFY SCREEN.
    ENDIF.
    IF SCREEN-GROUP1 = 'GHI'.
    IF p_chk3 = 'X'.
    SCREEN-ACTIVE = 1.
    ELSE.
    SCREEN-ACTIVE = 0.
    ENDIF.
    MODIFY SCREEN.
    ENDIF.
    IF SCREEN-GROUP1 = 'JKL'.
    IF p_chk4 = 'X'.
    SCREEN-ACTIVE = 1.
    ELSE.
    SCREEN-ACTIVE = 0.
    ENDIF.
    MODIFY SCREEN.
    ENDIF.
    IF SCREEN-GROUP1 = 'MNO'.
    IF p_chk5 = 'X'.
    SCREEN-ACTIVE = 1.
    ELSE.
    SCREEN-ACTIVE = 0.
    ENDIF.
    MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    *Note
    *Titles for check boxes and select options
    *P_CHK1 Personal Number
    *P_CHK2 Employment Status
    *P_CHK3 Personnel Area
    *P_CHK4 Employee Group
    *P_CHK5 Employee Sub group
    *S_PERNR Personal Number
    *S_PERSG Employee Group
    *S_PERSK Employee Sub group
    *S_STAT2 Employment Status
    *S_WERKS Personnel Area

  • How  to  hide a block  from a  selection screen.

    Hello Friends,
      I have a new reqirement in which a main program has two transactions.
    Both the transactions have the same fields and parameters.
        Now I am asked to add some fields in only one transaction without disturbing  the other txn.
    For this I have created a block and added two fields. But now i want to hide this block for the 2nd transaction.
    So please guide me for this...
    Thanks in advance.

    Hi Sapna,
      If you hide all the fileds that are in a block then that block should also get hidden as far as I know. have you tried assigning a MODIF ID to all the fileds and then using
    SCREEN-GROUP1 = 'GROUP NAME'
    SCREEN-ACTIVE = 0.
    This should work if this is not working then check if you can use the block name and hide it in LOOP AT SCREEN.
    Hi I has juse checked this code and it hides the block also.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS: par1 TYPE spfli-carrid MODIF ID par.
    PARAMETERS: par2 TYPE spfli-connid MODIF ID par.
    SELECTION-SCREEN END OF BLOCK b1.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF screen-group1 = 'PAR'.
          screen-active = 0.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    MODIFYING your code
    <b>SELECTION-SCREEN BEGIN OF BLOCK PARAMETER WITH FRAME TITLE TEXT-053.
    PARAMETERS:
    P_1 LIKE t-f1 DEFAULT 'USD' MODIF ID par,
    P_2 LIKE t-f2 MODIF ID par.
    SELECTION-SCREEN END OF BLOCK PARAMETER.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF screen-group1 = 'PAR'.
          screen-active = 0.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.</b>
    Regards,
    Sesh
    Message was edited by:
            Seshatalpasai Madala

  • How to change the text in default selection screen

    Hi,
      I have created the default selection screen(using PNP Logical database) ,In that I wants to display 'Data Selection Period' instead of 'Period'.
    Please send me the related code.
    Thanks in advace
    mohan

    HR Logical Database is PNP
    Main Functions of the logical database PNP:
    Standard Selection screen
    Data Retrieval
    Authorization check
    To use logical database PNP in your program, specify in your program attributes.
    Standard Selection Screen
    Date selection
    Date selection delimits the time period for which data is evaluated. GET PERNR retrieves all records of the relevant infotypes from the database. When you enter a date selection period, the PROVIDE loop retrieves the infotype records whose validity period overlaps with at least one day of this period.
    Person selection
    Person selection is the 'true' selection of choosing a group of employees for whom the report is to run.
    Sorting Data·
    The standard sort sequence lists personnel numbers in ascending order.
    · SORT function allows you to sort the report data otherwise. All the sorting fields are from infotype 0001.
    Report Class
    · You can suppress input fields which are not used on the selection screen by assigning a report class to your program.
    · If SAP standard delivered report classes do not satisfy your requirements, you can create your own report class through the IMG.  
    regards
    vinod

  • How to Display key/text in default selection screen?

    HI Gururs,
    I want to display key/text in variable default selection screen in BI Analyzer in Quality.
    please give me any suggestions to resolve this.
    Thanks
    vadlamudi

    hi,
    What i have done is in the cube level, in the dimensions i have made specific properties and set to key/text in development, so its working fine in development of the analyzer, but still its showing text only in quality analyzer.
    please give me the solutions if you know any.
    regards
    vadlamudi

  • How to hide some fields in ABAP Query

    Hi,
    My ABAP Query has a long list of extracted fields. I wanted to set some of these output to "HIDE".
    This allow User the flexibility to decide what fields to show.
    How can I set the field to "HIDE" in my query?
    Thanks
    bye

    Hi Tim,
    You can do this by setting the Report layout variant in following steps:
    1. First define the parameter on selection screent for report variant.
    2. Data decelaration for variant.
    3. Value request to get already present variants on report:
    4. If doesn't choose the layout take out the default report layout.
    5. Initialize the report variant.
    6. Apply the variant to the REUSE_ALV_GRID_DISPLAY funtion module.
             Here to generate report variant first to open report output and then as per according to user set the layout of report using the layout icon of ALV with summation on value fields (as required) and create layout name.
    *Data Deceleration as below:
    Data :g_save(1) TYPE c,
    **      g_default(1) TYPE c,
    g_exit(1) TYPE c,
    gx_variant TYPE disvariant,
    g_variant TYPE disvariant.
    *First Define the parameter to give layout of Report variant.
    SELECTION-SCREEN BEGIN OF BLOCK 3 WITH FRAME TITLE text-003.
    PARAMETERS: p_vari TYPE disvariant-variant.
    SELECTION-SCREEN END OF BLOCK 3.
    * Process on value request
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_vari.
    PERFORM f4_for_variant.
    * Selection-Screen Checking
    AT SELECTION-SCREEN.
    PERFORM pai_of_selection_screen.
    INITIALIZATION.
    w_repid = sy-repid.
    PERFORM variant_init.
    * Get default variant
    gx_variant = g_variant.
    CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'
    EXPORTING
    i_save     = g_save
    CHANGING
    cs_variant = gx_variant
    EXCEPTIONS
    not_found  = 2.
    IF sy-subrc = 0.
    p_vari = gx_variant-variant.
    ENDIF.
    FORM f4_for_variant .
    CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
    EXPORTING
    is_variant = g_variant
    i_save     = g_save
    IMPORTING
    e_exit     = g_exit
    es_variant = gx_variant
    EXCEPTIONS
    not_found  = 2.
    IF sy-subrc = 2.
    MESSAGE ID sy-msgid TYPE 'S'      NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    **  ELSE.
    **    IF g_exit = space.
    **    ENDIF.
    ENDIF.
    ENDFORM.                    " f4_for_variant
    FORM pai_of_selection_screen .
    IF NOT p_vari IS INITIAL.
    MOVE g_variant TO gx_variant.
    MOVE p_vari TO gx_variant-variant.
    CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE'
    EXPORTING
    i_save     = g_save
    CHANGING
    cs_variant = gx_variant.
    g_variant = gx_variant.
    ELSE.
    PERFORM variant_init.
    ENDIF.
    ENDFORM.                    " pai_of_selection_screen
    FORM variant_init .
    CLEAR g_variant.
    g_variant-report = w_repid.
    ENDFORM.                    " variant_init
    **While Showing report pass the variant :::
    g_save = 'A'.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    i_callback_program = w_repid
    i_structure_name   = 'IT_MAIN'
    is_layout          = i_layout
    is_print           = i_print
    it_fieldcat        = i_fieldcat[]
    it_events          = i_events[]
    i_save             = g_save
    is_variant         = g_variant
    TABLES
    t_outtab           = it_main
    EXCEPTIONS
    program_error      = 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.
    Many Thanks / Himanshu Gupta

  • How to add a field to the selection screen and when the user enters ...

    hi all,
    can any one plesase send the code of how to add a field to seletiion screen and when the user enters in the field , it should be store in the database table , the table is MKPF and the field is BKTXT.  Thanks.

    Hi Kripa,
       If u r using PNP ldb then the screen u will get is the screen for that ldb and if u want to add some more fields then u define using selection-screen..as follows
    SELECTION-SCREEN BEGIN OF BLOCK mysel WITH FRAME TITLE text-111.
    PARAMETERS: n_in_en  RADIOBUTTON GROUP g1,
                q_ev  RADIOBUTTON GROUP g1.
    SELECTION-SCREEN END OF BLOCK mysel.
    SELECTION-SCREEN BEGIN OF BLOCK mysel1 WITH FRAME TITLE text-222.
    PARAMETERS: r_date TYPE sy-datum DEFAULT sy-datum.
    SELECTION-SCREEN END OF BLOCK mysel1.
    SELECTION-SCREEN BEGIN OF BLOCK mysel2 WITH FRAME TITLE text-333.
    PARAMETERS:f_ver(3) TYPE c DEFAULT 1,
               c_no(10) TYPE c DEFAULT '9D0161',
               u_id(15) TYPE c,
               password(15) TYPE c,
               r_email(30) TYPE c DEFAULT PARAMETERS: s_not TYPE c AS CHECKBOX.
    PARAMETERS:t_run TYPE c  AS CHECKBOX.
    SELECTION-SCREEN END OF BLOCK mysel2.
    SELECTION-SCREEN BEGIN OF BLOCK mysel3 WITH FRAME TITLE text-444.
    SELECTION-SCREEN BEGIN OF BLOCK mysel4 WITH FRAME TITLE text-555.
    PARAMETERS: p_ser  RADIOBUTTON GROUP g2,
    a_ser  RADIOBUTTON GROUP g2.
    SELECTION-SCREEN END OF BLOCK mysel4.
    SELECTION-SCREEN BEGIN OF BLOCK mysel5 WITH FRAME TITLE text-666.
    PARAMETERS:p_path TYPE string.
    SELECTION-SCREEN END OF BLOCK mysel5.
    SELECTION-SCREEN END OF BLOCK mysel3.
    u will get this additional screen after the screen of ldb.
    I hope this will help u..
    Thanks & Regards
    Ashu Singh.

  • Not able to hide all fields on PNP selection screen.

    Dear Freinds,
               i wanted to hide all the field which are given on PNP selection screen, with the help of the
    report category i have hided all the field including the Person selection period  as i require only the
    Data selection period.  further through coding as below iam able to remove all the  radio buttons
    Today, Current month,Current year, from today, upto today,Other Period . But i am getting spaces above  period (PNPBEGDA and PNPENDA)  .  i.e in the frame Period i have spaces being left due to
    the radio buttons being Hidden . Could any one let me know how to remove the spaces so that
    Period range will set exactly in the frame.
      LOOP AT SCREEN.
        IF screen-name = 'PNPTIMR4' .
          screen-input = '0'.
          screen-invisible = '1'.
        ENDIF.
        IF screen-name = 'PNPTIMR2 .
          screen-input = '0'.
          screen-invisible = '1'.
        ENDIF
        IF screen-group4 = '090' .
          screen-input = '0'.
          screen-invisible = '1'.
        ENDIF.
        IF screen-name = 'PNPTIMR1' .
          screen-input = '0'.
          screen-invisible = '1'.
        ENDIF.
        IF screen-group4 = '092' .
          screen-input = '0'.
          screen-invisible = '1'.
        ENDIF.
        IF screen-group4 = '094' .
          screen-input = '0'.
          screen-invisible = '1'.
        ENDIF.
        IF screen-group4 = '100' .
          screen-input = '0'.
          screen-invisible = '1'.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP
    Please could any one let me know how can i push up the Period date (PNPBEGDA and PNPENDDA)
    so that i will not have any blank space left out in the frame(Period) .
    Thanks & Regards
    Divya.
    Edited by: Divya Kumari on Jan 4, 2009 1:53 PM

    hi, sorry i think i misunderstand you question,
    if i can understand it right now? the following code can help you i am using "PNP" Screen no '900'.
    tables:pc207, hrp1000,pernr, pyorgscreen.
    infotypes: 0001.          "Organizational Assignments
    nodes: payroll type pay99_result.
    at selection-screen output.
      loop at screen.
        if ( screen-group1 = 'RES' or screen-group1 = 'YB1' or
             screen-group1 = 'YB2' or screen-group1 = 'YB3'  ).
          screen-active = '0'.
          screen-invisible = '1'.
          modify screen.
        endif.
      endloop.
    try the following too,
    TABLES:pc207, hrp1000,pernr, pyorgscreen.
    INFOTYPES: 0001.          "Organizational Assignments
    NODES: payroll TYPE pay99_result.
    AT SELECTION-SCREEN OUTPUT.
      BREAK-POINT.
      LOOP AT SCREEN.
        IF (
    *       screen-name = '%BYB1005_BLOCK_1000'
           screen-name = '%FYTI007_1000'
         or  screen-name = '%FBIS010_1000'
         or  screen-name = 'PYVW0_0'
         or  screen-name = '%_PYPERNR_%_APP_%-TEXT'
         or  screen-name = 'PYPERNR-LOW'
         or  screen-name = '%_PYPERNR_%_APP_%-VALU_PUSH'
          screen-active = '0'.
          screen-invisible = '1'.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    Replay if any problem,
    Kind Regards,
    Faisal
    Edited by: Faisal Altaf on Jan 4, 2009 6:55 PM

  • How to set a field inactive at selection screen?

    Hello,  here is the definition of my selection screen.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECT-OPTIONS : s_typcmd  FOR  EKKO-BSART DEFAULT text-003,                        "Type de commande
    s_grpe FOR  EKPO-MATKL ,
                     s_ebeln   FOR  EKPO-EBELN.                                        "Numéro de commande
    SELECTION-SCREEN  END OF BLOCK b1.
    I want to set s_grpe to inactive.thx

    Static
    Add the NO-DISPLAY option.
    PARAMETERS: pxxxx TYPE xxxx NO-DISPLAY.
    The parameter will only be reachable by SUBMIT WITH.
    Dynamically
    assign a MODIF ID xxx to the parameter, and in PBO (AT SELECTION-SCREEN OUTPUT) do a
    PARAMETER param TYPE xxxx MODIF ID XXX.
    AT SELECTION-SCREEN OUTPUT.
        LOOP AT SCREEN.
            CASE screen-group1.
              WHEN 'XXX'..
                IF <test>.
                  screen-active = '0'.
                ELSE.
                  screen-active = '1'.
                ENDIF.
    So you can choice when to display or not the parameter.
    Regards

  • How to get required fields in the selection screen while filling a set tabl

    hai,
    i was filling the set up table for 2lis_13_vditm.but while filling the set up table in the selection conditions in the tcode OLI9BW.
    I would like to have the a field added in the selection condition which is not existing in the OLI9BW.
    kindly help me out of ths.
    with regards
    soumya.

    As far as I know, you're just limited to whatever fields are in the transaction... That applies for any of the setup tables processes.
    If you need to limit the data that goes to BW, you can do so by putting the logic in CMOD, EXIT_SAPLRSAP_001, Include ZXRSAU01 for the specific extractor.

  • Hiding and Unhiding Fields On The Selection Screen

    Hi Guys/Dolls
    I've managed to grey out and hide some fields on a selection screen within the AT SELECTION-SCREEN OUTPUT section but don't know how to re-instate them.
    basically on initial entry of the screen some fields are hidden but once I enter some pre-requisite data I need to display them but in a greyed out manner.
    I've done the first bit but don't know how to do the 2nd bit i.e re-display the fields.
    Any help would be appreciated.
    Many thanks in advance.
    Raj
    My code is as follows:-
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN POSITION POS_LOW.
    PARAMETERS: begcalsh LIKE t549q-begda MODIF ID pe4.
    SELECTION-SCREEN COMMENT (1) text-199 FOR FIELD endcalsh
    MODIF ID pe4.
    PARAMETERS: endcalsh LIKE t549q-endda MODIF ID pe4.
    SELECTION-SCREEN POSITION POS_HIGH.
    PARAMETERS: begrefsh LIKE t549q-begda MODIF ID pe5.
    SELECTION-SCREEN COMMENT (1) text-199 FOR FIELD endrefsh
    MODIF ID pe5.
    PARAMETERS: endrefsh LIKE t549q-endda MODIF ID pe5.
    SELECTION-SCREEN END OF LINE.
    AT SELECTION-SCREEN OUTPUT.
    * Grey out the parameters.
      PERFORM params_grey_in_out USING 'false' 'PE4'.
      PERFORM params_grey_in_out USING 'false' 'PE5'.
    * Hide the parameters.
      PERFORM params_show_hide USING 'false' 'PE4'.
      PERFORM params_show_hide USING 'false' 'PE5'.
    AT SELECTION-SCREEN.
      PERFORM params_show_hide USING 'true' 'PE4'.
      PERFORM params_show_hide USING 'true' 'PE5'.
    *&      Form  params_grey_in_out
    FORM params_grey_in_out USING value(iv_triggering_param)
                                     value(iv_screen_group).
    *this form activates fields with MODIF ID = IV_SCREEN_GROUP
    *if IV_TRIGGERING_PARAM eq TRUE and greys them out otherwise.
      DATA lx_input LIKE screen-input.
      IF iv_triggering_param EQ 'true'.
        lx_input = 1.
      ELSE.
        lx_input = 0.
      ENDIF.
      LOOP AT SCREEN.
        IF screen-group1 EQ iv_screen_group.
          screen-input = lx_input.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    ENDFORM.                    " params_grey_in_out
    *&      Form  params_show_hide
    FORM params_show_hide USING value(iv_triggering_param)
                                     value(iv_screen_group).
    *this form displays fields with MODIF ID = IV_SCREEN_GROUP
    *if IV_TRIGGERING_PARAM eq TRUE and hides them otherwise.
      DATA lx_active LIKE screen-active. "(1) type n.
      DATA lx_invisible LIKE screen-active. "(1) type n.
      IF iv_triggering_param EQ 'true'.
        lx_active = 1.
        lx_invisible = 0.
      ELSE.
        lx_active = 0.
        lx_invisible = 1.
      ENDIF.
      LOOP AT SCREEN.
        IF screen-group1 EQ iv_screen_group.
          screen-invisible = lx_invisible.
          screen-active = lx_active.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    ENDFORM.                    " params_show_hide

    hi u use this logic
       LOOP AT SCREEN.
          IF screen-group1 = 'GR3'.
            screen-active = 1.
            screen-input = 0.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ELSE.
        LOOP AT SCREEN.
          IF screen-group1 = 'GR2'.
            screen-invisible = 0.
            screen-input = 0.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ENDIF.

  • How to hide the field from the view in the webdynpro application?

    Hi Gurus,
    I got a requirement where in which ,default layout has the field name Time.......To......... which is (2 input box ) and one lable assigned to the container.........
    Now my requirement is to hide this field from the layout for all cases of leave......(all types of leave)....
    I got a few inputs from forum that we can achieve this by implementing the following steps..........
    Create In context => Value attribute => Say Visibility
    Go to its properties
    Select com.sap.ide.webdynpro.uielementdefinitions.Visibility
    In View Layout
    Select UI Element Set Visible property to this context variable Visibility.
    In wdDoModifyView() You can set this property to false
    wdContext.currentContextElement().setVisibility(false);
    Can you people tell me where to create the value attribute........
    In the view context or in the component context...........
    and field that am talking about is assign to the container you want me to assign this context variable property to all ......Like to input box ,label and the container..........
    Please calrify this ASAP...........
    Thanks in Advance,
    Dharani

    Hi Manoj......
    Hi Murutuza,
    As per your guidelines I have created the value attribute in View context (which has the field..... which needs to be hide)inside the value node say FieldVisibility.......and attribute name OldTimeDuration......and I set this value with uidefeneitions Visibility .......
    and I bind this vaule with the field property visible(Time.......To..........)which I need to hide...........
    Now in the view implementation tab ..........I have coded in the doinit method(since my requirement to hide the field from the layout in all cases).........
    wdContext.currentFieldVisibilityElement().setOldTimeDuration(WDVisibility.NONE);
    But if I deploy the application and see still am getting the same field dispalying in the screen.........
    I even tried putting this code in wdmodifyview method.........same results........
    Kindly tell me how to hide the field permenantly from the screen............(without any conditions.)
    Thanks in Advance,
    Dharani

  • Generate fields on the selection screen automatically

    Hi,
    I'd like create some fields on my selection screen automatically using an information filled in the selection screen too.
    For instance : I enter a table name, and my selection screen is autommatically filled with all the primary key fields of this table.
    Do know, how i can do that?
    Thx in advance.

    u have to write the code under the event..
    AT SELECTION-SCREEN OUTPUT.
    there u can make some fields invisible or invisible, based on any value entered on the selection screen.
    u can write the same in the below way..
    if pa_char eq 'X'.
        LOOP AT SCREEN.
    if screen-name = 'FILED_NAME'.
            screen-invisible = 1.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
    else.
    LOOP AT SCREEN.
    if screen-name = 'FILED_NAME'.
            screen-invisible = 0.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
    endif.
    wat this will do is when u enter value 'X' in the parameter pa_char, the screen field with name FIELD_NAME will become visible..
    Hope this idea helps u out...

Maybe you are looking for

  • System Image for G5 (PPC) and iMac (Intel Core 2 Duo)

    hello, I would like to know if there is a way to create a common system image Mac OS X 10.4.10 that I can "deploy" in out two mac labs. One with G5 (PPC-based machines) and the other with iMac (Intel-based machines). If yes, how can I do that ? with

  • How to set the default boot kernel in /etc/default/grub or /etc/grub.d

    and without messing with /boot/grub/grub.cfg  ? I need this so that new kernels show up but do not change the default boot kernel Is there a way to do it by file name instead of position within the menuentry / submenu list? I found some ubuntu and fe

  • Run form 10g from another computer

    Hi all! I created form on my computer and run success.Now,I want to run my form on another computer How I can run form another computer? Thanks all!

  • Trying to create a collage

    Dear Friends: I am presently using Elements 10: I am trying to create a collage. Once I have selected my pictures, i go to the Create bin and select collage. I receive an error that says " Apply layout."  Any ideas? I was wondering if I uninstall ele

  • Need help with graphics card upgrade

    I have a stock p6140f and am looking to run on the new WoW expansion. I have gotten by to this point with the intel GMA 3100 /G33 that comes with this desktop. I have recently run into issues with crashes during game. I have always had it on the high