Drop down box in selection screen

Hi all,
        I have a requirement in which i need to display a drop down list box for some of the fields in the input selection screen like 1) status to be A) Yes b) No and the 2) Order field  to be A) Not started B) In Progress C) Complete....
  So i need any one of you please  help me out to write the code for the above requirement, hope iam clear in my question and if possible please try give me some example code thanks in advance.

Hi,
Check this sample code..
TYPE-POOLS: vrm.
PARAMETERS: p_test TYPE char4 AS LISTBOX VISIBLE LENGTH 10.
DATA: t_data TYPE  vrm_values.
INITIALIZATION.
  DATA: s_data TYPE vrm_value.
  s_data-key = 'ABCD'.
  s_data-text = 'First four'.
  APPEND s_data TO t_data.
  s_data-key = 'EFGHI'.
  s_data-text = 'Second four'.
  APPEND s_data TO t_data.
  CALL FUNCTION 'VRM_SET_VALUES'
       EXPORTING
            id              = 'P_TEST'
            values          = t_data
       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.
START-OF-SELECTION.
WRITE: / p_test.
Thanks,
Naren

Similar Messages

  • How to put drop down box in selection screen

    Hi all,
    I have to create a selection screen.
    in that i have to use a drop down box for the text box.
    how to do that.
    thanking u.
    with regards,
    giri.

    HI
    Check thi ssample code -
    REPORT ZTESTPRG.
    TYPE-POOLS: VRM.
    DATA: NAME TYPE VRM_ID,
    LIST TYPE VRM_VALUES,
    VALUE LIKE LINE OF LIST.
    PARAMETERS: PS_PARM(10) AS LISTBOX VISIBLE LENGTH 10.
    AT SELECTION-SCREEN OUTPUT.
    NAME = 'PS_PARM'.
    VALUE-KEY = '1'.
    VALUE-TEXT = 'LINE 1'.
    APPEND VALUE TO LIST. VALUE-KEY = '2'.
    VALUE-TEXT = 'LINE 2'.
    APPEND VALUE TO LIST.
    CALL FUNCTION 'VRM_SET_VALUES' EXPORTING ID = NAME VALUES = LIST.
    START-OF-SELECTION.
    WRITE: / 'PARAMETER:', PS_PARM.
    Hope this helps.
    OR
    You can use the F4 function module or use a List box
    see the sample codes
    See the following ex:
    TYPES: BEGIN OF TY_MBLNR,
    MBLNR LIKE MKPF-MBLNR,
    END OF TY_MBLNR.
    DATA: IT_MBLNR TYPE STANDARD TABLE OF TY_MBLNR WITH HEADER LINE.
    data: it_ret like ddshretval occurs 0 with header line.
    At selection-screen on value-request for s_mat-low.
    Select MBLNR from mkpf into table it_mblnr.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    DDIC_STRUCTURE = ' '
    RETFIELD = 'MBLNR'
    PVALKEY = ' '
    DYNPPROG = ' '
    DYNPNR = ' '
    DYNPROFIELD = ' '
    STEPL = 0
    WINDOW_TITLE =
    VALUE = ' '
    VALUE_ORG = 'S'
    MULTIPLE_CHOICE = ' '
    DISPLAY = ' '
    CALLBACK_PROGRAM = ' '
    CALLBACK_FORM = ' '
    MARK_TAB =
    IMPORTING
    USER_RESET =
    TABLES
    VALUE_TAB = IT_MBLNR
    FIELD_TAB =
    RETURN_TAB = IT_RET
    DYNPFLD_MAPPING =
    EXCEPTIONS
    PARAMETER_ERROR = 1
    NO_VALUES_FOUND = 2
    OTHERS = 3
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    IF SY-SUBRC = 0.
    read table it_ret index 1.
    move it_ret-fieldval to S_mat-low.
    ENDIF.
    Go through the test program.
    REPORT Ztest_HELP .
    TABLES : MARA.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETERS : P_MATNR(10) TYPE C.
    SELECTION-SCREEN END OF BLOCK B1.
    DATA : BEGIN OF ITAB OCCURS 0,
    MATNR TYPE MATNR,
    END OF ITAB.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_MATNR.
    SELECT MATNR
    FROM MARA
    INTO TABLE ITAB
    UP TO 10 ROWS.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    RETFIELD = 'MATERIAL NUMBER'
    DYNPPROG = SY-REPID
    DYNPNR = SY-DYNNR
    DYNPROFIELD = 'P_MATNR'
    VALUE_ORG = 'S'
    TABLES
    VALUE_TAB = ITAB
    EXCEPTIONS
    PARAMETER_ERROR = 1
    NO_VALUES_FOUND = 2
    OTHERS = 3.
    LIST BOX
    Input : p_char = 'J'.
    Press: enter
    List Box of Month = January, June , July.
    REPORT ZLIST_VALUES.
    TYPE-POOLS vrm.
    tables:
    spfli.
    parameters: p_char type c.
    parameters:
    p_month(12) as listbox visible length 20,
    p_year as listbox visible length 20 .
    DATA:
    t_table TYPE STANDARD TABLE OF vrm_value,
    t_table1 TYPE STANDARD TABLE OF vrm_value,
    vrm_values1 LIKE LINE OF t_table.
    DATA:
    t_year TYPE STANDARD TABLE OF vrm_value.
    data: w_year(4) type n value '2000'.
    at selection-screen output.
    vrm_values1-key = 'a'.
    vrm_values1-text = 'January'.
    APPEND vrm_values1 TO t_table.
    vrm_values1-key = 'p'.
    vrm_values1-text = 'February'.
    APPEND vrm_values1 TO t_table.
    vrm_values1-key = 'q'.
    vrm_values1-text = 'March'.
    APPEND vrm_values1 TO t_table.
    vrm_values1-key = 'r'.
    vrm_values1-text = 'April'.
    APPEND vrm_values1 TO t_table.
    vrm_values1-key = 's'.
    vrm_values1-text = 'May'.
    APPEND vrm_values1 TO t_table.
    vrm_values1-key = 't'.
    vrm_values1-text = 'June'.
    APPEND vrm_values1 TO t_table.
    vrm_values1-key = 'u'.
    vrm_values1-text = 'July'.
    APPEND vrm_values1 TO t_table.
    vrm_values1-key = 'v'.
    vrm_values1-text = 'August'.
    APPEND vrm_values1 TO t_table.
    vrm_values1-key = 'w'.
    vrm_values1-text = 'September'.
    APPEND vrm_values1 TO t_table.
    vrm_values1-key = 'x'.
    vrm_values1-text = 'October'.
    APPEND vrm_values1 TO t_table.
    vrm_values1-key = 'y'.
    vrm_values1-text = 'November'.
    APPEND vrm_values1 TO t_table.
    vrm_values1-key = 'z'.
    vrm_values1-text = 'December'.
    APPEND vrm_values1 TO t_table.
    t_table1[] = t_table.
    delete t_table1 where text+0(1) <> p_char.
    CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING
    id = 'p_month'
    values = t_table1
    EXCEPTIONS
    ID_ILLEGAL_NAME = 1
    OTHERS = 2.
    do 10 times.
    add 1 to w_year.
    vrm_values1-key = sy-index.
    vrm_values1-text = w_year.
    APPEND vrm_values1 TO t_year.
    enddo.
    CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING
    id = 'p_year'
    values = t_year
    EXCEPTIONS
    ID_ILLEGAL_NAME = 1
    OTHERS = 2.
    start-of-selection.
    write: p_month.

  • Need a drop down for a selection screen

    HI all,
    I need a drop down for a selection screen.
    say for eg: Field is MARA-MTART   (Material Type). The selection is optional and the dropdown should be using check table: T134
    How to get a dropdown? I think a function module is used , but I dont remember the name.
    Kindly reply.
    Thanks in advance.
    Points will be rewarded

    Hi,
    chk the below code...
    TYPE-POOLS: vrm.
    PARAMETER: pr_spart TYPE spart AS LISTBOX VISIBLE LENGTH 7.
    *AT SELECTION-SCREEN ON VALUE-REQUEST FOR pr_spart.
    INITIALIZATION.
    *----Code for Drop down list....
      DATA: lit_spart_list  TYPE vrm_values, "Table for list of Divisions
              lwa_spart_list TYPE vrm_value,
              lw_name  TYPE vrm_id.            "Name of parameter with list-box.
    *---Assign selected values to table that would be passed to FM VRM_SET_VALUES
      CLEAR : lwa_spart_list,
              lw_name.
    *---Pass required values for list-box display.
      lwa_spart_list-key = 'H'.
      lwa_spart_list-text = 'HL'.
      APPEND lwa_spart_list TO lit_spart_list.
      lwa_spart_list-key = 'S'.
      lwa_spart_list-text = 'SL'.
      APPEND lwa_spart_list TO lit_spart_list.
      lwa_spart_list-key = 'P'.
      lwa_spart_list-text = 'PP'.
      APPEND lwa_spart_list TO lit_spart_list.
      lwa_spart_list-key = 'F'.
      lwa_spart_list-text = 'FR'.
      APPEND lwa_spart_list TO lit_spart_list.
    *Name of parameter to which list is to be assigned
      lw_name = 'PR_SPART'.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id              = lw_name
          values          = lit_spart_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.
    Reagrds,
    nagaraj

  • Drop down list in selection screen.

    hello there,
    How to get a drop down list box in selection screen and in module pools.
    explain also, how to populate some data into that.

    *& Report  ZSREE_DROP                                                  *
    REPORT  ZSREE_DROP                    .
    TABLES : LFA1,EKKO,EKPO.
    TYPE-POOLS : VRM.
    DATA I1 TYPE I VALUE 0.
    DATA  : BEGIN OF WA_LFA1,
            LIFNR TYPE LIFNR,
            NAME1 TYPE NAME1,
            END OF WA_LFA1.
    DATA IT_LFA1 LIKE TABLE OF WA_LFA1.
    DATA : BEGIN OF WA_EKKO,
           EBELN TYPE EBELN,
           END OF WA_EKKO.
    DATA IT_EKKO LIKE TABLE OF WA_EKKO.
    DATA : BEGIN OF WA_EKPO,
           EBELP TYPE EBELP,
           END OF WA_EKPO.
    DATA IT_EKPO LIKE TABLE OF WA_EKPO.
    DATA : BEGIN OF WA_VRM,
           KEY(40) TYPE C,
           TEXT(80) TYPE C,
           END OF WA_VRM.
    DATA IT_VRM LIKE TABLE OF WA_VRM.
    *&      Module  USER_COMMAND_0100  INPUT
          text
    module USER_COMMAND_0100 input.
    CASE SY-UCOMM.
    WHEN 'BACK'.
    LEAVE TO SCREEN 0.
    WHEN 'PDOC'. "fctcode for first list box
    CLEAR IT_EKKO.
    SELECT EBELN INTO TABLE IT_EKKO FROM EKKO WHERE LIFNR = LFA1-LIFNR.
    CLEAR IT_VRM.
    LOOP AT IT_EKKO INTO WA_EKKO.
    WA_VRM-KEY = WA_EKKO-EBELN.
       WA_VRM-TEXT = WA_EKKO-EBELN.
       APPEND WA_VRM TO IT_VRM.
    CLEAR WA_VRM.
    ENDLOOP.
    CALL FUNCTION 'VRM_SET_VALUES'
      EXPORTING
        ID                    = 'EKKO-EBELN'
        VALUES                = IT_VRM
    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.
    WHEN 'PITEM'. "fctcode second listbox
    CLEAR IT_EKKO.
    SELECT EBELP INTO TABLE IT_EKPO FROM EKPO WHERE EBELN = EKKO-EBELN.
    CLEAR IT_VRM.
    LOOP AT IT_EKPO INTO WA_EKPO.
    WA_VRM-KEY = WA_EKPO-EBELP.
       WA_VRM-TEXT = WA_EKPO-EBELP.
       APPEND WA_VRM TO IT_VRM.
    CLEAR WA_VRM.
    ENDLOOP.
    CALL FUNCTION 'VRM_SET_VALUES'
      EXPORTING
        ID                    = 'EKPO-EBELP'
        VALUES                = IT_VRM
    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.
    ENDCASE.
    endmodule.                 " USER_COMMAND_0100  INPUT
    **&      Module  STATUS_0100  OUTPUT
          text
    module STATUS_0100 output.
      SET PF-STATUS 'ZSREE'.
      SET TITLEBAR 'ZSREE'.
    endmodule.                 " STATUS_0100  OUTPUT
    *&      Module  SELECT_LIST  OUTPUT
          text
    module SELECT_LIST output.
    CLEAR IT_LFA1.
    SELECT LIFNR NAME1 INTO TABLE IT_LFA1 FROM LFA1.
    CLEAR IT_VRM.
    LOOP AT IT_LFA1 INTO WA_LFA1.
       WA_VRM-KEY = WA_LFA1-LIFNR.
       WA_VRM-TEXT = WA_LFA1-LIFNR.
       APPEND WA_VRM TO IT_VRM.
    CLEAR WA_VRM.
    ENDLOOP.
    CALL FUNCTION 'VRM_SET_VALUES'
      EXPORTING
        id                    = 'LFA1-LIFNR'
        values                = IT_VRM
    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.
    endmodule.                 " SELECT_LIST  OUTPUT
    Bye Murthy

  • I go to a website that has drop down boxes to select videos they do not work in Firefox but do in IE

    I am working in a site called Niche Proffit Classrooms. They require me to use Firefox. I have installed Firefox 11.2. Their drop down boxes to choose a video to watch work fine in IE but not in Firefox when using my desktop. They only drop down to expose 1 video out of 8. If using my laptop, they work in Firefox. I have uninstalled and reinstalled Firefox 11.2 on my desktop but it still does not work.

    ''"I have installed Firefox 11.2"'' - There's no such Firefox version. It could be either Firefox 11 or Firefox 12.
    * see this article to find-out your Firefox version -> [[Finding your Firefox version]]
    Regarding your problem, perform the suggestions mentioned in the following articles:
    * Make sure that you are using the '''"Remember History"''' setting as described in this article -> [[Settings for privacy, browsing history and do-not-track]]
    * [https://support.mozilla.com/en-US/kb/Template:clearCookiesCache Clear Cookies & Cache]
    * [[How to clear the cache#w_clear-the-cache|Clear the Network Cache]]
    Check and tell if its working.

  • Linking TextFields to Drop Down Boxes and selections back to subforms

    I suppose I have two separate questions here.
    #1 - I would like to have a drop down box auto populate based on a text field in a repeating sub-form.
    For instance, I have a "Loan Info Subform" with the loan number text field on it that can be repeated on the same form and I have a "collateral subform" where I would like to have the choice of which loan number within the form the collateral belongs to.
    Is this possible?
    And if so, question #2
    I have a "FairMarket Value of Collateral" decimal field on the Collateral Subform that I would like to autopopulate back into the proper Loan Info Subform, based upon the choice in the drop down list.
    Make sense?
    Thank you in advance for your help!!

    So hopefully you can see this, if not, I will re-vamp.
    Does this help?
    Essentially the loan form and the collateral form can be repeated and I would like to link them together.

  • Populate drop down in a selection screen

    Hi All,
    I have created a selection screen where i have a drop down field .How do i populate the drop down? In the backend i have a table type in the export param. which contains all the drop downs values.
    Please help.
    Thanks
    tubai.

    Hi,
    If you are using drop down by index. then use following code. Create a context node with cardinality 1:N
    data : it_table type STANDARD TABLE OF sflight.
    DATA lo_nd_cn_drpindex TYPE REF TO if_wd_context_node.
    DATA lo_el_cn_drpindex TYPE REF TO if_wd_context_element.
    DATA ls_cn_drpindex TYPE wd_this->element_cn_drpindex. " Here cn_drpindex is the name of context node which is binded to the drop down by index UI element.
    * navigate from <CONTEXT> to <CN_DRPINDEX> via lead selection
    lo_nd_cn_drpindex = wd_context->get_child_node( name = wd_this->wdctx_cn_drpindex ).
    select carrid from sflight into CORRESPONDING FIELDS OF TABLE it_table.
    lo_nd_cn_drpindex->bind_table( it_table ).
    If you are using drop down by key ui element then you can use the following code
    DATA : node_info TYPE REF TO if_wd_context_node_info.
      DATA : it_zinsp TYPE TABLE OF zinsp.
      FIELD-SYMBOLS : <tablezinsp> TYPE zinsp.
      DATA : value TYPE wdy_key_value,
             value_set TYPE wdy_key_value_table.
      DATA : zlandx TYPE string.
      node_info = wd_context->get_node_info( ).
      node_info = node_info->get_child_node( 'CN_VISATYPE' ).
      CALL METHOD cl_wd_dynamic_tool=>get_table_data
        EXPORTING
          tab_name  = 'ZINSP' " Here ZINSP is name of table
          row_count = 0
        IMPORTING
          data      = it_zinsp.
      LOOP AT it_zinsp ASSIGNING <tablezinsp> .
        value-key = <tablezinsp>-zvisaty." This is field of table
        value-value = <tablezinsp>-zvisaty.
        INSERT value INTO TABLE value_set.
      ENDLOOP.
      node_info->set_attribute_value_set( name = 'CA_VISATYPE' " Name of attribute
                                          value_set = value_set ).
    I hope it helps.
    Regards,
    Rohit

  • Drop down menu in selection screen field

    Hi all,
    my requirement is
    In selection-screen  in one field I have to get drop down menu for 2 values.
    1.     Pvalue.
    2.     Hvalue.
    By default it should pickup Pvalue. 
    can any one guide me how to get the logic for that
    Regards
    cnu

    Just paste this code: u will get idea..
    report YH642_DROP_DOWN_BOX.
    TYPE-POOLS vrm.
    **"Table declarations...................................................
    *TABLES sscrfields.
    *"Table declarations...................................................
    PARAMETERS:
    p_connid(11) AS LISTBOX
    VISIBLE LENGTH 20 default 'FOREX-ANANTH'.
    p_value TYPE i MODIF ID QWR.
    *" Data declarations...................................................
    Work variables *
    DATA:
    w_char(20) TYPE c,
    w_flag TYPE i.
    INITIALIZATION. EVENT *
    INITIALIZATION.
    Internal table to hold delivery header data *
    DATA:
    t_table TYPE
    STANDARD TABLE
    OF vrm_value,
    vrm_values1 LIKE LINE OF t_table.
    vrm_values1-key = 'a'.
    vrm_values1-text = 'sap'.
    APPEND vrm_values1 TO t_table.
    vrm_values1-key = '2'.
    vrm_values1-text = 'testing'.
    APPEND vrm_values1 TO t_table.
    vrm_values1-key = '2'.
    vrm_values1-text = 'java'.
    APPEND vrm_values1 TO t_table.
    vrm_values1-key = '4'.
    vrm_values1-text = '.net'.
    APPEND vrm_values1 TO t_table.
    vrm_values1-key = '5'.
    vrm_values1-text = 'vc++'.
    APPEND vrm_values1 TO t_table.
    vrm_values1-key = 'che'.
    vrm_values1-text = 'chetta-ram'.
    APPEND vrm_values1 TO t_table.
    CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING
    id = 'p_connid'
    values = t_table
    EXCEPTIONS
    ID_ILLEGAL_NAME = 1
    OTHERS = 2
    reward points if helpful,
    regards,
    seshu.

  • Linking drop down boxes to selected layers

    Hi all,
    Acrobat noob here.
    I've created a map with a legend. Exported it to pdf and then linked selectable buttons in the legend to the layers on the map so when I click on secondary schools in the legend all the secondary schools on the map show as points.
    Now what I want to do with those points is either if I hover or click on the point that information about the secondary school shows, I also want to do that with every layer that I have on the map. I have other layers such as Primary Schools and Libraries etc that also show as points on the map. I know I can do this, the issue with this is that if there are points close together that it will be impossible for the user to select the one they want. So I was hoping that there's some script out there to run so that when one layer is selected that only the drop down menus linked to that layer show.
    Any ideas?
    Thanks in advance,
    Gav

    Hi Ralph,
    therefore you can write a simple ABAP RFC. Start the transaction SE80 and create a RFC function module.
    If you use text in your infoobject ZDIVISION you can use a simple ABAP:
    FUNCTION ZZ_GET_MD_ZDIVISION .
    *"*"Lokale Schnittstelle:
    *"  TABLES
    *"      T_TABLE_VIEW STRUCTURE  /BIC/TZDVISION OPTIONAL
    * For reading the data from the textable
    SELECT * FROM /BIC/TZDVISION INTO CORRESPONDING FIELDS OF TABLE T_TABLE_VIEW.
    ENDFUNCTION.
    Then you can use a dynamic entry list and choose for the key F_BIC_DIVISION and TXTSH or TXTMD for your text.
    Then you have to create your RFC function module for ZPRODUCT, this could look like:
    FUNCTION ZZ_GET_MD_PRODUCT .
    *"*"Lokale Schnittstelle:
    *"  IMPORTING
    *"     VALUE(I_SEARCH) TYPE  STRING OPTIONAL
    *"  TABLES
    *"      T_TABLE_VIEW STRUCTURE  /BIC/TZPROCUDT OPTIONAL
    data: l_condition type string.
    * Preparing String for SQL Statement e.g. A% for Division A
    CONCATENATE '''' I_SEARCH '%' '''' INTO I_SEARCH.
    CONCATENATE 'ZPRODUCT LIKE' I_SEARCH INTO l_condition SEPARATED BY SPACE.
    * For reading the data from the textable
    SELECT * FROM /BIC/TZPROCUDT INTO CORRESPONDING FIELDS OF TABLE T_TABLE_VIEW WHERE (l_condition).
    ENDFUNCTION.
    Then you create a dynamic entry list for ZPRODUCT and choose for input (I_SEARCH) the value of the divsion and for output again ZPRODUCT for the key and if you use text TXTMD or TXTSH for the texts.
    Hope that helps,
    Best Regards,
    Marcel

  • How to create Drop Down box in screen painter..??

    Can anybody give me sample code or detailed description about creating Drop-Down Box in a screen...??
    I have created the drop down box in screen..
    But how to make data to be visible in Dropdown box, when i click the drop icon in that box...???
    Regards
    Pavan Sanganal

    Here are couple of DEMO programs for the same functionality
    DEMO_DROPDOWN_LIST_BOX       
    DEMO_DYNPRO_DROPDOWN_LISTBOX 
    You execution sequence will be PBO - Process before output, then the screen is displayed and the PAI Process after input.
    Regards,
    Ravi
    Note : Please mark all the helpful answers

  • How do I use a drop-down box to turn on a radio button?

    I have a dynamic form with a drop-down box containing selections 1, 2, 3, and 4; later in the form I have a radio button group with two radio buttons labeled "pass" and "fail".
    I would like to have drop-down selections 1 and 2 automatically select "fail" and 3 and 4 automatically select "pass" in the radio button group, with the option of the user changing this with a warning message.
    Any help is greatly appreciated.
    Thx
    Drew

    Hi,
    you can use this JavaScript in the change event of your drop down list.
    var sel = xfa.event.newText;
    RadioButtonGroup.rawValue = (sel === "1" || sel === "2") ? 1 : 2;

  • My Airplay is delivering Audio but no Video (black screen).  The drop down box has a new selection "use airplay to; it does not let me select 'Mirror my IMac', it is stuck on 'extend desktop'  any suggestions appreciated.

    My Airplay is delivering Audio but no Video (black screen).  The drop down box has a new selection "use airplay to; it does not let me select 'Mirror my IMac', it is stuck on 'extend desktop'  any suggestions appreciated.

    here is fix! i tried only step 1 and then restarted my computer and now it works. Choose remove All Files 
    Hope it helps.
    https://discussions.apple.com/thread/5952624?tstart=0

  • How to create a drop down box and text box in screen painter?

    Hi i am totally new to this concept of screen painter..please can any tell me
    how to create drop down box in screen painter?
    How to create or display default date and time values?
    How to create text box for giving comments?
    How to store the records that we are entering in a table?
    Please can any one send me the procedure for creating all these its very urgent useful information will be surely rewarded.

    Hi,
    Check all these.
    1.how to create drop down box in screen painter?
    To get Drop Drown Box on screen .
    Follow these steps.
    1.
    Go to T.Code SE51 and Select Laypout for the Screen.
    2.
    Double click on the field for which u want Dropdown box.
    3.
    Then U will see Name ,Text ,DROPDOWN.Click on that and select List Box or ListBox with key . Better to to select first one.
    4.
    Save and Activate ur screen .
    5.
    Enter the following piece of code in the PBO of the screen.(Change for ur requirement).
    6.
    The following code should be written under PROCESS BEFORE EVENT in the MODULE.
    TYPE-POOLS :vrm.
    DATA:
      i_natio TYPE vrm_values, "-->Table that is passed through FM vrm_set_values
      w_natio LIKE LINE OF i_natio.
    DATA:
    BEGIN OF i_t005t OCCURS 0,
        land1 TYPE t005t-land1,
        natio TYPE t005t-natio,
    END OF i_t005t.
    IF i_t005t[] IS INITIAL.
      SELECT land1 natio
         FROM t005t
           INTO TABLE i_t005t
       WHERE spras = sy-langu.
      IF sy-subrc = 0.
      LOOP AT i_t005t .
          w_natio-key = i_t005t-land1.
          w_natio-text = i_t005t-natio.
          APPEND w_natio TO i_natio.
          CLEAR w_natio.
      ENDLOOP.
      ENDIF.
    ENDIF.
    CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING
                          id = 'I_IT0002-NATIO' "-->Field for which dropdown is needed.
                    values = i_natio
    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.
    2.1.How to create or display default date and time values?
    1.
    create input field for DATE and TIME on screen.ex. DATE1 and TIME1 are screen field names .
    2.
    Just assign SY-DATUM to DATE1 and SY-UZEIT to TIME1 under PROCESS BEFORE EVENT.
    3.How to create text box for giving comments?
    1.
    Define one variable in the TOP include with type STRING means Global variable.
    2.
    Create one input field by giving screen field name which u have defined in the above step.
    4.How to store the records that we are entering in a table?
    For this case.. Create one table control. you can select one record and create record in the Z table by pressing button on Application toolbar..
    Check the following steps to handle Table control.
    1).
    U should take one variable in your internal table or in structure which
    is used for table control fields
    ex :
    data :
    begin of itab occurs 0 ,
        mark type c , "This is to select the record.
        matnr like mara-matnr ,
        matkl like mara-matkl,
        maktx like makt-maktx,
    end of itab .
    Controls: TABC types TABLEVIEW using screen 100.
    2).
    This mark variable should be given in Table control properties.
    follow the path
    double click on the table control-->attributes .->select
    w/SelColumn and in that itab-mark. Check in the figure.
    [Table control properties screen|http://bp2.blogger.com/_O5f8iAlgdNQ/R99gOUH8CXI/AAAAAAAAA9I/d3gOum1fJ6s/s1600-h/pic28145-796618.jpg]
    3).
    After that. Take this example.
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_0100.
    LOOP AT ITAB WITH CONTROL tabc
    ENDLOOP.
    PROCESS AFTER INPUT.
    MODULE CANCEL AT EXIT-COMMAND.
    LOOP AT ITAB.
       Module read_table_control.
    ENDLOOP.
    module user_command_0100.
    In this Module read_table_control, You should write the following code
    MODULE read_table_control INPUT.
    MODIFY itab INDEX tabc-current_line."( This will update the
    "ITAB table MARK field with 'X ' whatever we have selected
    "on table control.)
    ENDMODULE.
    4)
    If you want to Delete some of the records from Table control
    follow this code …Create one pushbutton and give Fucnction code to that
    and write below code
    CASE OKCODE.
    WHEN 'CREATE'.
    LOOP AT itab WHERE mark = 'X'.
    "Use UPDATE statement to create new record.
    ENDLOOP.
    ENDCASE.
    I hope that you will get something.
    Regards,
    Venkat.O

  • Adding '-Select-' on top for a drop down box

    Hello,
    I have a drop down box mapped to a field in the context, the field has some domain values and are populated in the run time. but I have to add another top row '-Select-' indicating to the client that the field need to be selected.
    To add 'Select', I can write a method in the WDDOINIT method of the controller and also loop through the domain values and append to the drop down box. But I don't want to do too much of d/b interaction, as the fields are anyway loaded to the dropbox by mapping.
    Is there a way in web dynpro, that we could do like in normal ABAP reports, to Loop at the screen and identify all the drop down boxes and add a 'select' row at the top?
    I really appreciate any help.
    Thank you
    KV.

    Hi Kiran,
    Can you make your requirement more clear to me?
    As much I understand from your message is that you want to add a dynamic Text on the top of Dropdown.Like Select the field need to be selected.
    from where you will get this field information?
    what message you want to add?
    If you have the field information then
    (a)Create a textView on the top of Dropdown
    (b) Bind it's property "Text" to the context attribute say Text .
    (c) now set this value like
    wdcontext.currentcontextelement().setText("Select "+field);
    If this is not the right interpretation of your problem then please explain it in detail and tell me step by step what you want to do?
    Regards,
    Praveen

  • How to capture the value selected in the drop down box

    Hi all,
    I am populating values in  drop down box by using FM vrm_set_values in module pool.
    like below
    01  ABC
    02 ACB
    03 BCA
    04 CAB
    in module pool drop down box element name is RQGM-VALUE.
    Problem is what ever the value is select in the drop down box from above element RQGM-VALUE is not filling any value.
    i need to capture the value selected in the drop down box and pass it to another variable.

    Hi,
    Refer this standard code. Your issue will be resolve.
    REPORT demo_dynpro_dropdown_listbox.
    TYPE-POOLS vrm.
    DATA: name  TYPE vrm_id,
          list  TYPE vrm_values,
          value LIKE LINE OF list.
    DATA: wa_spfli TYPE spfli,
          ok_code TYPE sy-ucomm,
          save_ok TYPE sy-ucomm.
    TABLES demof4help.
    name = 'DEMOF4HELP-CONNID'.
    CALL SCREEN 100.
    MODULE cancel INPUT.
      LEAVE PROGRAM.
    ENDMODULE.
    MODULE init_listbox OUTPUT.
      CLEAR demof4help-connid.
      SELECT  connid cityfrom cityto deptime
        FROM  spfli
        INTO  CORRESPONDING FIELDS OF wa_spfli
       WHERE  carrid = demof4help-carrier2.
        value-key  = wa_spfli-connid.
        WRITE wa_spfli-deptime TO value-text USING EDIT MASK '__:__:__'.
        CONCATENATE value-text
                    wa_spfli-cityfrom
                    wa_spfli-cityto
                    INTO value-text SEPARATED BY space.
        APPEND value TO list.
      ENDSELECT.
      CALL FUNCTION 'VRM_SET_VALUES'
           EXPORTING
                id     = name
                values = list.
    ENDMODULE.
    MODULE user_command_100.
      save_ok = ok_code.
      CLEAR ok_code.
      IF save_ok = 'CARRIER' AND NOT demof4help-carrier2 IS INITIAL.
        LEAVE TO SCREEN 200.
      ELSE.
        SET SCREEN 100.
      ENDIF.
    ENDMODULE.
    MODULE user_command_200.
      save_ok = ok_code.
      CLEAR ok_code.
      IF save_ok = 'SELECTED'.
        MESSAGE i888(sabapdocu) WITH text-001 demof4help-carrier2
                                            demof4help-connid.
      ENDIF.
    ENDMODULE.

Maybe you are looking for

  • Error while copying files to Zen Visio

    Hello everyone, I just bought the zen vision m a couple days ago. Since the first connection w/ the PC I've had problems because windows would not recognize the player. By now I downloaded a fixup file so that that is working pretty well. But now my

  • Macbook Pro shutdown on wake from sleep

    Hi there, I recently upgraded my Macbook Pro (4,1) to Lion, and it worked fine for a couple of weeks but it has now started shutting down (straight to black screen) every time I wake it from sleep, whether sleeping closed or open. I have tried an SMC

  • HTTP response contains status code 503

    Hi All, Im working on File to JDBC scenario using MsAccess.My file is been picked by XI from the sender folder (im using NFS at the sender side), but it is not inserting the data in the table which i have created on the server. When i do SXI_MONI , i

  • Adobe Flex with Java webdynpro

    Hello, I like to use Adobe flex applications for my webdynpro java projects which then later I can use in portals. I need some learning materials for that. I was looking from google but I haven't found many sources. if you guys can help me out then I

  • Doubt in - recover database command

    Hello, I wanted to know the significance of - using backup controlfile in the sql command: recover database using backup controlfile until cancel Some background info- I am performing a system copy using Db backup-restore methodology. I generated a n