Input field in dialog screen

Hi all,
I need to create an input field on screen, which would enable input not by writing but by selecting a value from a list.
I tried to define the field as a listbox, but the FM VRM_SET_VALUES used for populating the values can contain only 2 field and I need to populate about 5 to 6 fields.
Any ideas? is it possible?
Thanks,
Hagit

Hi Hagit,
You can attach one search help with required field and convert the field to list box.
Message Edited
shibu

Similar Messages

  • How to hide input fields on selection screen using variant attribute

    Hello all,
    I want to know how to hide input fields on selection screen using variant attribute conpletely.
    As you know, when setting the attribute of variant "Hide field" checked, the field is temporarily hidden, but when clicking "All Selections(F7)" button on the selection screen, the fileds become appeared.
    I want to hide the field completely. Di you know how to do ?
    Thank you for your support.
    Regards,
    Hideki Kozai

    Use this attribute hide field and save the variant. Then create transaction for this program setting default variant for parameter Start with variant . The user who runs it will have it by defualt set.
    Otherwise
    in PBO simply use LOOP at screen and output = 0 for this field. This will ensure that field is invisible in any case.
    Regards
    Marcin

  • Month/year input field in selection screen

    Hi,
    Can anyone tell how to declare an input field in selection screen in the format month/year with out day.
    Thanks.
    Prasad.

    hi ,
    I have the same doubt ,
    but its taking invalid input also as in if i enter 13/2006
    Can it be avoided,
    also can the calender be displayed at F4 on such field.
    Thanks in advance
    Regards
    Bijal

  • Search help for input fields in a screen

    Hi,
    Pls help me
    how to set search help property for the I/O fields in screen in se80?
    1. do we want to add any property for search help in the property window?
    2.do we want to create a MODULE PROCESS ON VALUE REQUEST ?
    PLS tell me how to set search for the I/O field in se80?pls tell me the process?
    i want to set the search help for more I/O fields in se80 but all the fields belongs to the same table?
    can i create a single search for all these fields and use that for all the I/O fields ?
    elementary search help or collective search help?
    thanks & regards in advance,
    vsnl.

    Hi,
    Input Help on the Screen
    Within the Screen Painter, you can define two types of input help:
    1. The FIELD statement with one of the additions VALUES or SELECT.
    2. Linking a search help directly to a screen field.
    If you link a search help directly to a screen field, it overrides the additions of the FIELD
    statement. However, the input check [Page 581] functions of the FIELD statement remain
    unaffected.
    Input Help in Flow Logic
    The following input help methods are obsolete and should not be used. They are still supported
    for compatibility reasons.
    In the screen flow logic, you can specify a value list for a screen field <f> as follows:
    FIELD <f> VALUES (<val1>, <val2>,...).
    The value list contains a series of single values <vali>. The NOT and BETWEEN additions for the
    input check [Page 581] are not appropriate for input help.
    You can also create a value list by accessing a database table as follows:
    FIELD <f> SELECT *
    FROM <dbtab>
    WHERE <k1> = <f1> AND <k2> = <f2> AND...
    In the WHERE condition, the fields of the primary key <ki> of the database table <dbtab> are
    checked against the screen fields <fi>. The WHENEVER addition, used with input checks [Page
    581], is not necessary for input help.
    If you have used a ABAP Dictionary reference for field <f>, the selection and the hit list formatting
    may be affected by any check table attached to the field.
    Attaching a Search Help
    Search helps from the ABAP Dictionary can be attached to a screen field [Ext.]. To do this, enter
    the name of the search help in the corresponding field in the attributes of the screen field in the
    Screen Painter. This assigns the first parameter of the search help to the screen field. It is only
    possible to place a value from the hit list onto the screen.
    Input help on a screen.
    REPORT DEMO_DYNPRO_F4_HELP_DYNPRO MESSAGE-ID AT.
    DATA: CARRIER(3) TYPE C,
    CONNECTION(4) TYPE C.
    CALL SCREEN 100.
    MODULE CANCEL INPUT.
    LEAVE PROGRAM.
    ENDMODULE.
    The next screen (statically defined) for screen 100 is itself. It has the following layout:
    602 April 2001
    Cancel
    Airline
    Flight number
    Screen field with search help
    Input help in the flow logic
    The input fields have been adopted from the program fields CARRIER and
    CONNECTION. The function code of the pushbutton is CANCEL, with function type
    E. The search help DEMO_F4_DE with the search help parameter CARRID is
    assigned to the screen field CARRIER. The search help uses the database table
    SCARR.
    The screen flow logic is as follows:
    PROCESS BEFORE OUTPUT.
    PROCESS AFTER INPUT.
    MODULE CANCEL AT EXIT-COMMAND.
    FIELD CARRIER VALUES ('AA', 'LH').
    FIELD CONNECTION SELECT *
    FROM SPFLI
    WHERE CARRID = CARRIER
    AND CONNID = CONNECTION.
    When the user chooses the input help for the individual fields, the following input
    help is displayed:
      For the Airline field, the search help displays the names of the airlines and places the airline
    code in the input field for the chosen line. If the airline code is not one of those listed in the
    VALUES list of the screen flow logic, the input check triggers an error message in the PAI
    event. So the search help overrides the VALUES addition for the input help, but not for the
    input checks. This is therefore not an appropriate place to use the VALUE addition.
      For the Flight number field, the flow logic displays the selected entries from the database
    table SPFLI and places the selected line in the input field.
    Regards,
    Bhaskar

  • Input Fields of Selection Screen

    HI
    GIven the program name and the Screen #, i need to figure out all the Input fields , Data type and Length  for that program( SAP STD REPORT).
    I checked out the Element List in Se51 for the program name and screen number, I need something similar to it ..I need to pull out that data. How should i approach.
    -Ravi.

    Output checkbox, means that it is a "disabled" input field.  Output Only checkbox, means that it is more like a static text box.
    F1 Help  on  Output Only.
    <i>Pure output field
    This specification makes sense only for template fields.
    At runtime, the format of a template field can be distinguished from that of a field/text field, if it is defined as an output field, but not if it is defined as an input field.
    If the flag is set for an output template, you cannot distinguish the format of a template field from that of a text field. This allows you to insert variable components in apparently fixed texts.
    At runtime, you cannot dynamically modify the input/output attributes of output templates which have this flag set within the LOOP AT SCREEN ... ENDLOOP block in PBO modules.</i>
    Regards,
    Rich Heilman
    Message was edited by: Rich Heilman

  • Adding a new input field on selection screen after input in a select option

    Hi Experts,
    There are 2 input fields on the selection screen.
    I would like to add a new select option field when a value is entered in the 2nd field <b>only</b>. If there is an input in the 1st field or both the fields, the new input field should not appear.
    Message was edited by:
            Gaurav Kothari

    execute the code .
    you will get sel option for s_lgort only when there is a value in s_werks.
    tables mard.
    select-options: s_matnr for mard-matnr,
                    s_werks for mard-werks,
                    s_lgort for mard-lgort modif id abc.
    at selection-screen output.
    if not s_werks[] is initial and s_matnr[] is initial.
    loop at screen.
    if screen-group1 = 'ABC'.
    screen-active = '1'.
    modify screen.
    endif.
    endloop.
    else.
    loop at screen.
    if screen-group1 = 'ABC'.
    screen-active = '0'.
    modify screen.
    endif.
    endloop.
    endif.

  • Display input field on selection screen based on condition

    Hi,
    I have a report with selection with no of  input fields and a checkbox .I want to hide  few i/p fileds based on checkbox i/p.
    If the checkbox = 'X',then only those fields should apper on screen for input.
    how do we get this on sel screen.
    thanks in advance.

    Hi,
    you can use this code as reference.
    Here, depens on check box, in the next screen resepective select options will be displayed.
    You can use this logic for your requirement.
    REPORT Z50871_SELECTOPS_DYNAMIC.
    PARAMETERS : CH_EBELN AS CHECKBOX,
    CH_VBELN AS CHECKBOX.
    DATA: V_EBELN TYPE EKKO-EBELN,
    V_VBELN TYPE VBAK-VBELN.
    SELECTION-SCREEN BEGIN OF SCREEN 100.
    SELECT-OPTIONS : EBELN FOR V_EBELN MODIF ID G1,
    VBELN FOR V_VBELN MODIF ID G2.
    SELECTION-SCREEN END OF SCREEN 100 .
    AT SELECTION-SCREEN OUTPUT.
    IF SY-DYNNR = 100.
    IF CH_EBELN = 'X' AND
    CH_VBELN = ''.
    LOOP AT SCREEN.
    IF SCREEN-GROUP1 EQ 'G1'.
    SCREEN-ACTIVE = '1'.
    ELSE.
    SCREEN-ACTIVE = '0'.
    ENDIF.
    MODIFY SCREEN.
    ENDLOOP.
    ELSEIF CH_VBELN = 'X' AND
    CH_EBELN = '' .
    LOOP AT SCREEN.
    IF SCREEN-GROUP1 EQ 'G2'.
    SCREEN-ACTIVE = '1'.
    ELSE.
    SCREEN-ACTIVE = '0'.
    ENDIF.
    MODIFY SCREEN.
    ENDLOOP.
    ELSEIF CH_EBELN = 'X' AND CH_VBELN = 'X'.
    LOOP AT SCREEN.
    IF SCREEN-GROUP1 EQ 'G1'
    OR SCREEN-GROUP1 EQ 'G2' .
    SCREEN-ACTIVE = '1'.
    ENDIF.
    MODIFY SCREEN.
    ENDLOOP.
    ENDIF.
    ENDIF.
    AT SELECTION-SCREEN.
    IF SY-DYNNR = 1000.
    IF CH_EBELN = 'X' OR CH_VBELN = 'X'.
    CALL SELECTION-SCREEN 100.
    ELSE.
    MESSAGE I000(Z50871MSG) WITH 'Please select atleast one checkbox'.
    ENDIF.
    ENDIF.
    Regards
    Sandeep Reddy

  • How to read the contents of Input Field created via Screen Painter?

    Hi All,
    I have a module program / dialog program, on my second screen, I created an input/outbox field via screen painter of course,
    now in my PAI, how can I read the contents of the input/outbox field?
    Let's say the name of my input/outbox field is: P_WEKRS.  Note: Get Parameter and Set Parameter is ticked.
    PROCESS AFTER INPUT.
      LOOP WITH CONTROL TC_DATA.
        MODULE MODIFY_DATA.
      ENDLOOP.
    I want to get the value of the input/outbox field before my loop in table control?  I thought that it will work like normal parameter in non-dialog programs.
    Any helpful inputs will be appreciated/rewarded.
    Thanks.
    Jaime

    Hi, Jaime
    Do the following Change in you Follow Logic
    PROCESS AFTER INPUT.
    MODULE read_or_change_value. " Add this
    LOOP WITH CONTROL TC_DATA.
      MODULE MODIFY_DATA.
    ENDLOOP.
    Add the Bellow Module code in you Driver Program.
    MODULE read_or_change_value.
    DATA: P_WEKRS like " the Field on Screen. Must be the same name as on SCREEN. and Type must be same too.
    " Here you will find the Value in that Variable or if you will change the Value here you will find it change on Screen
    END MODULE.
    Please Reply if any Issue..
    Best Regards,
    Faisal

  • Want  to check whether input field in selection-screen is numeric or not

    i have a select -option in  selection-screen  in which user enters a value.i just want to check if this value is numeric then it should  be 18 positions prefixed with zeroes if numeric like 000000000000400000  and needs to be left justified if not numeric like G0032-BTI.
    i check the fourm also but it didn't helped me.
    i m using the code.
    SELECT-OPTIONS : S_MAT FOR CDHDR-OBJECTID,
    LOOP AT S_MAT.
    if  S_MAT ca sy-abcde  .
      shift s_mat left deleting leading space.
    else.
        SHIFT s_mat RIGHT DELETING TRAILING SPACE.
        TRANSLATE s_mat USING '0'.
    ENDIF.
    endloop.
    can anybody help.
    <REMOVED BY MODERATOR>
    thanks
    Edited by: Alvaro Tejada Galindo on Jan 17, 2008 4:00 PM

    I have a solution for you! Try this code below, just copy/paste "as-it-is".
    TABLES: cdhdr.
    DATA: gv_type TYPE dd01v-datatype.
    SELECT-OPTIONS : s_mat FOR cdhdr-objectid.
    AT SELECTION-SCREEN.
      LOOP AT s_mat.
        CLEAR gv_type.
        IF NOT s_mat-low IS INITIAL.
          CALL FUNCTION 'NUMERIC_CHECK'
            EXPORTING
              string_in = s_mat-low
            IMPORTING
              htype     = gv_type.
          IF gv_type NE 'NUMC'.
            MESSAGE e016 WITH 'Not Numeric'.
          ELSE.
            SHIFT s_mat-low LEFT DELETING LEADING: '0', space.
            CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
              EXPORTING
                input  = s_mat-low
              IMPORTING
                output = s_mat-low.
            MODIFY s_mat TRANSPORTING low.
          ENDIF.
        ENDIF.
        IF NOT s_mat-high IS INITIAL.
          CALL FUNCTION 'NUMERIC_CHECK'
            EXPORTING
              string_in = s_mat-high
            IMPORTING
              htype     = gv_type.
          IF gv_type NE 'NUMC'.
            MESSAGE e016 WITH 'Not Numeric'.
          ELSE.
            SHIFT s_mat-high LEFT DELETING LEADING: '0', space.
            CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
              EXPORTING
                input  = s_mat-high
              IMPORTING
                output = s_mat-high.
            MODIFY s_mat TRANSPORTING high.
          ENDIF.
        ENDIF.
      ENDLOOP.
    I hope this solves your problem.
    Cheers,
    Sougata.

  • SCREEN - INPUT = '0' i.e.Dis-abling input field in Selection screen????

    Hi Experts,
    I hv a selection screen with,
    1)SELECT-OPTIONS: input_fld_1  with domain value range of A, B, C, D, E, F
    2)input_fld_2
    3)PARAMETERS: input_fld_3 has the LIST BOX
    So, my requirement is,
    If the user selects/enters A, B, C, D in input_fld_1, the next moment/second (here, prog. shuld not ask the user to press any ENTER/button)
    the input_fld_3 shuld b automatically dis-abled/un-able to input!
    (I tried with MOD ID GRP1, but in this case, user has to press ENTER button, which is not suits to my requirement!)
    So, Is it possible? If so How?
    thanq.
    Message was edited by:
            Srikhar

    hi Srikhar,
    It is not possible to have your requirement.
    As the AT SELECTION SCREEN OUTPUT will be triggered only when you press the ENTER key.
    You need to ask user to press the enter key or you need to have USER COMMAND to the selection screen parameter, which I think is not available with select-options.
    Reward points if useful.
    Regards,
    Atish

  • Email id validation in dialog screen

    Hi friends,
    How can i validate email id for input field in dialog screen. can any one gives me code for it.
    Thank you.
    Regards,
    Virat

    Hi,
    I suggest the below logic---
    llen = strlen( lemail ).
    do llen times.
    lchr = lemail(1).
    case lchr
      when '@'.
       lasterix = lasterix + 1.
      when '.'
       ldot = ldot + 1.
      when others.
    *checking for any wierd char apart from alphanumeric.
      if lchr na sy-abcde and lchr na '0123456789'.
       lerror = 'Y'.
       exit.
      endif.
    endcase.
    shift lemail.
    enddo.
    if ldot ne 2 or lasterix ne 1.
    lerror = 'Y'.
    endif.
    --> lerror = 'Y' is Error
    Regards,
    Richa

  • How to display zero in the screen's input field using numc type

    Hi,
    I want to display the zero value in the input field , when I  using the NUMC input field on the screen .
    The zero will be changed to blank ,when I click the Enter key.
    What I should do for it?
    Any help is appreciated.
    Regards,
    Trevor

    Hi ,
    Thanks for your quickly answer!
    I use the numc input field in the dialog's screen.
    I am not sure how to do the realize the function like 'UNPACK'?
    In fact, I can't changed my input field's data type.
    When the status of my input field is display, I can display the zero on the screen. But when the input field is input status , there is blank!
    Regards
    Trevor

  • Wd abap - Input field showing up as yellow on screen

    I've got a problem that is driving me crazy.  On one of my views I have an input field (name, linked to context element type string) that, when you run the application, shows up yellow.  It is one of 6 input fields on the screen, and I can't see any difference between this and the other 5.
    Could someone tell me why this might be happening and what I can do to either stop or control it?  Any assistance would be appreciated.

    Bob,
    One inputfield is active / has focus.
    This is probably the yellow one
    How to set focus actively see:
    IF_WD_VIEW->REQUEST_FOCUS_ON_VIEW_ELEM
    Regards,
    Joris

  • More than one Input field [Parameter] in a single row on Selection-Screen.

    Hi All,
    I am having one scenario where i need to create 6 input fields on selection screen. 3 input fields in first row and remaining 3 input fields on the second row. So will you guys send me some sample code how to do this.
    Waiting for your reply.
    Regards,
    Santosh

    Hi Santhosh,
    check this snippet for parameters.
    SELECTION-SCREEN SKIP 3.
    SELECTION-SCREEN BEGIN OF BLOCK calc
                        WITH FRAME TITLE text-001 NO INTERVALS.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS:
      p_param1(3) type c,
      p_param2(3) type c,
      p_param3(3) type c,
      p_param4(3) type c.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK calc.
    check this snippet for select-options.
    SELECTION-SCREEN SKIP 3.
    SELECTION-SCREEN BEGIN OF BLOCK calc
                        WITH FRAME TITLE text-001 NO INTERVALS.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN :
    PUSHBUTTON 20(3) b1  USER-COMMAND b1,
    PUSHBUTTON  29(3) b4  USER-COMMAND b4,
    PUSHBUTTON  38(3) b7  USER-COMMAND b7,
    PUSHBUTTON  47(3) pm  USER-COMMAND pm.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK calc.
    Hope this would help you.
    Regards
    Narin Nandivada.

  • Multiple selections in a field in module screen

    Hi all
      Can any body tell me how to get the multiple values selection in a field in Dialog screen .
    regards
    dreeni

    Easiest way is to create a subscreen and embed this in your dynpro.
    report zrich_0006 .
    tables: mara.
    Custom Selection Screen 1010
    selection-screen begin of screen 1010 as subscreen.
    selection-screen begin of block b1 with frame title text-001.
    parameters: p_rad1 radiobutton group grp1 default 'X',
                p_rad2 radiobutton group grp1,
                p_rad3 radiobutton group grp1.
    select-options: s_matnr for  mara-matnr,
                    s_matkl for  mara-matkl,
                    s_mtart for  mara-mtart.
    selection-screen end of block b1.
    selection-screen end of screen 1010.
    start-of-selection.
      call screen 100.
    *&      Module  STATUS_0100  OUTPUT
    module status_0100 output.
    SET PF-STATUS 'xxxxxxxx'.
    SET TITLEBAR 'xxx'.
    endmodule.
    *&      Module  USER_COMMAND_0100  INPUT
    module user_command_0100 input.
    endmodule.
    Screen screen 100 with a subscreen area called "subscreen_1010"
    Screen Flow Logic follows
    *process before output.
    module status_0100.
    call subscreen subscreen_1010 including sy-repid '1010'.
    *process after input.
    call subscreen subscreen_1010 .
    module user_command_0100.
    Reward if it helps..
    regards,
    Omkar.

Maybe you are looking for

  • Where can I find an iPad backup file in Time Machine?

    I want to restore my iPad from a backup. I know how to do this, and have already done it before. However, this time I would like to find a backup that is stored in Time Machine. So, two questions: 1) can I even do this? 2) if I can, then do you know

  • Recieving Error Viewing Reports in Report Manager

    I am receiving the following error trying to view a report in Report Manager and Reporting Services:  " Your browser does not support scripts or has been configured not to allow scripts"  I have ensured that scripting is enabled and added the site to

  • Which index?

    Hi, I've a view which takes the most rows of a table. Now i read that if a query takes more than 20% of rows from a table the index don't be used. This my view: CREATE OR REPLACE VIEW EULVIS_STROM_STAMM ( INTERNENUMMER, ANLAGENNUMMER, KUNDENNUMMER, M

  • I am not able to display or change the file after deleting the file

    Hi All, I am checking in the document to content category while creating the DIR. I tried to delete the file on my desktop and after i am unable to open the file in CV02N,It gives the below error: Error while executing "C:\ Firdosi\Desktop\gg.txt" I

  • What happens if you really cannot remember your security question answers

    so i cant remember and i want to just be able to send a reset email but cant find this if there is any way.... let me know thanks Kendra