Have a checkboxand input field. Diable i/p field on selection of checkbox

Hi experts ,
Could someone please correct me on this :-
PARAMETERS:
    p_wbsele TYPE C AS CHECKBOX MODIF ID '123'.  
  SELECT-OPTIONS:
    s_bukrs FOR CSKS-BUKRS NO INTERVALS.
Now if the checkbox is not checked then the input field s_bukrs should be disabled and if checked the input fieldshould be enabled.
Follwoing code was mentioned at
Initialization
loop at screen.
if screen-name = 'p_wbsele'.
screen-invisible = 1.
modify screen.
endif.
endloop.
At selection-screen output.
Loop at screen.
if p_wbsele = 'X'.
  screen-invisible = 1.
  modify screen.
  endif.
endloop.
But the input field is not greyed out.
Thnx
Kylie
Moderator message: this has been solved many times, please search before asking.
locked by: Thomas Zloch on Sep 9, 2010 5:05 PM

for suppose u wnt to display materail text next to material.
now in PAI ,
select single * from makt
into makt where matnr = screen-matnr.
ok now in PBO.
if not screen-matnr is initial.
textfield = makt-maktx.
endif.
Regards
- Gopi

Similar Messages

  • 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

  • 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

  • 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

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

  • Controlling the space between label and Input field in SELECT-OPTION

    Hi ,
    I am using WDR_SELECT_OPTIONS as a used component in order to dynamically generate the Select option in my WD Component.
    Can any one tell me if there is a way to control the spacing between Label and Input field?  This is because rest of the UI elements are in one particular order but for this dynamically generated UI.
    Please help me.
    Thanks,
    Kavitha

    Hi Kavitha,
    The label is required for accessibility reasons. It's not possible to remove it and to use your own label from outside the component to point to it. Labels cannot point to targets across views (and hence acress component) boundaries.
    Best regards,
    Thomas

  • 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

  • How to get Input field value?

    Hi All,
    I have some problem in getting of input value from View to customcontroller.
    My problem is I have created a Input field in the view and if Iam giving the value to that field I can capture the value from View to customcontroller and send it as BAPI input.But My input filed is in the view Context.
    How can i capture InputFiled value from View to CustomController.
    Advance thanks
    Nageswara.
    Message was edited by: nageswar mandapati

    Thanks for your response Patrick,
    In my customcontrollerView all my BAPI mathods instances and execute methods are declared.All the attributes directly getting from model class.
    But I have two views , in first view I created a input field(for that i created valueAttribute in that context).
    Here I want give the conditions If  the input field is empty then directly call the execute method of BAPI.
    Otherwise give any input to the inputfiled then capture that value and send it input to BAPI from view to BAPI.
    In my customcontroller
    BAPI b = new BAPI();
    b.Param1();
    b.param2();
    and
    execute BAPI()
    I done like this.
    How can i capture the view input value how to send as a b.parama();
    Please guide me .
    Any snippests appriciate.
    Thanks
    nageswara.

  • Setting input fields to an empty string BIG PROBLEM

    Hi Rob, thanks for your rerply, It makes sense alright, but I am using 2 seperate input fields. I have discovered what is causing the problem .
    After the user types into the inputfield and moves on to a different frame, I have set the input field to an empty string and this is what is causing the problem.
    I have tried setting the input field to an empty string in a movie script and on individual sprites and the first right answer is not excepted.I have to type in the right answer twice to get get a right response. I am actually using three seperate input fields in total, each with a different name and behavior. Even If I use one input field I still have the same problem. Its driving me crazey. Any Ideas.
    Anne

    I believe that the FIM Service always does trims on string, so you may be out of luck.
    What is your scenario / what are you trying to accomplish by setting a space in an attribute? A space is not an empty string in my definition.
    Regards, Soren Granfeldt
    blog is at http://blog.goverco.com | facebook https://www.facebook.com/TheIdentityManagementExplorer | twitter at https://twitter.com/#!/MrGranfeldt

  • Select-options for input field

    hi,
    Is it possible to use 'Select-options' in web dynpro for the input field like we use in abap?
    Ex. material is the input field. i want to select range also for this input field using 'Select-options'
    I have tried only with ovs(f4 help) for the input field. can u pls tel me how to use if it is possible ?
    Thanks,
    Aishwarya.

    DATA: LT_RANGE_TABLE TYPE REF TO DATA,
            RT_RANGE_TABLE TYPE REF TO DATA,
            READ_ONLY TYPE ABAP_BOOL,
            TYPENAME TYPE STRING.  DATA: LR_COMPONENTCONTROLLER TYPE REF
    TO IG_COMPONENTCONTROLLER,
            L_REF_CMP_USAGE TYPE REF TO IF_WD_COMPONENT_USAGE.
    create the  used component
      L_REF_CMP_USAGE = WD_THIS->WD_CPUSE_SELECT_OPTIONS( ).
      IF L_REF_CMP_USAGE->HAS_ACTIVE_COMPONENT( ) IS INITIAL.
        L_REF_CMP_USAGE->CREATE_COMPONENT( ).
      ENDIF.
      WD_THIS->M_WD_SELECT_OPTIONS = WD_THIS->WD_CPIFC_SELECT_OPTIONS( ).
    init the select screen
      WD_THIS->M_HANDLER =
    WD_THIS->M_WD_SELECT_OPTIONS->INIT_SELECTION_SCREEN( ). 
    WD_THIS->M_HANDLER->SET_GLOBAL_OPTIONS(
                                  I_DISPLAY_BTN_CANCEL  = ABAP_FALSE
                                  I_DISPLAY_BTN_CHECK   = ABAP_FALSE
                                  I_DISPLAY_BTN_RESET   = ABAP_FALSE
                                  I_DISPLAY_BTN_EXECUTE = ABAP_FALSE ).
    *create a range table that consists of this new data element
      LT_RANGE_TABLE = WD_THIS->M_HANDLER->CREATE_RANGE_TABLE(
      I_TYPENAME = 'matnr' ).
    add a new field to the selection
      WD_THIS->M_HANDLER->ADD_SELECTION_FIELD(
      I_ID = 'matnr'
      IT_RESULT = LT_RANGE_TABLE
      I_READ_ONLY = READ_ONLY ).
    This is my code followed by saptechnical. but when i exec, am getting err like the type matnr is invalid.

  • To Display Input Field Value in Pop Up

    hii guys i want to display a input field value in a pop up dialog box.
    For this i have taken a input field, a pop up component and a button.
    In the dialog box of pop up element i have taken an output text which will display the value of input field.
    Everything seems to be work fine if i am giving the value to input filed at design time.
    But when i want to display the input field value entered at run time, the dialog box of pop up displays nothing..!!!

    Thank you so much Arun for your help.
    I did as you told me to do.
    But somehow i think i am not getting it right.
    I created a private String variable named value in my Bean Class and then i created its accessors..
    setValue and getValue..
    Then i set the value property of both input text and output text as #{package.BeanClass.value},
    but its not working...!!!
    Can you help me out with problem..!!

  • How to link label with an input field in data table?

    I am curious if there is a nice way to link a label to input field in a data table directly in JSP? Data filling the table are dynamically bounded.
    Sample, simplified code below. Values of "label" property are unique in the collection binded to dataTable.
    <?xml version="1.0" encoding="UTF-8"?>
    <jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core"
         xmlns:h="http://java.sun.com/jsf/html"
         xmlns:jsp="http://java.sun.com/JSP/Page">
         <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" />
         <f:view>
              <html>
              <body>
              <h:dataTable value="#{screen$monitoring$errorlog$CorrectHopper.dataset}" var="DATA_ROW">
                   <h:column>
                        <f:facet name="header">
                             <h:outputText value="Name" />
                        </f:facet>
                        <h:outputLabel value="#{DATA_ROW.label}" for="#{DATA_ROW.label}_id" />
                   </h:column>
                   <h:column>
                        <f:facet name="header">
                             <h:outputText value="Value" />
                        </f:facet>
                        <h:inputText value="#{DATA_ROW.label}" id="#{DATA_ROW.label}_id" />
                   </h:column>
              </h:dataTable>
              </body>
              </html>
         </f:view>
    </jsp:root>
    returns:
    17:39:01,390 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
    java.lang.IllegalArgumentException: #{DATA_ROW.label}_id
    what is related to EL expression in h:inputText's "id" attribute.
    Is there any other way to bind label with dynamically created input field in JSP? Do I really have to bind input field directly to component objects with "binding" and set IDs manually with setId() (what is ugly solution because it moves View related logic to Model layer)?

    I've thought of using EL because I have to somehow
    link a label to an input field dynamically. Somehow? Dynamically? Just use plain text :)Well... just look at my code snippet (notice: we want to join the pairs of labels and text boxes placed in a datatable [or any other repeater-like component rendering properties of objects from a collection]):
    <h:dataTable value="#{screen$monitoring$errorlog$CorrectHopper.dataset}" var="DATA_ROW">
    <h:column>
    <f:facet name="header">
    <h:outputText value="Name" />
    </f:facet>
    <h:outputLabel value="#{DATA_ROW.label}" for="#{DATA_ROW.label}_id" />
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="Value" />
    </f:facet>
    <h:inputText value="#{DATA_ROW.label}" id="#{DATA_ROW.label}_id" />
    </h:column>
    </h:dataTable>
    and what is your idea of using plain text as "id" attribute value in this case? :)
    Regards,
    Michal

  • Selectable doesn't works for input field

    I wonder that the selectable property doesn't works even for
    input field in flash 8'
    I can't see, select, type anything.
    Is there any reason for it and how can I tackle this issue.
    But it's not a problem in IE7 and works fine in IE7 even it
    doesn't do in flash IDE
    Plz anyone get this solved.

    Are you saying you have an input field and cannot select text
    you type?
    BTW, setting an input field's selectable property to false
    locks the field.

Maybe you are looking for

  • Crystal Reports 2008 Runtime creates Logon Fialed error

    i have a client running Crystal REport 2008 SP4.  They are now receiving this error when running reports. Logon failed. Details:  [Database Vendor Code: 18456 ] Logon failed. Details:  [Database Vendor Code: 18456 ] Error in File Sick Leave Taken fro

  • Error while using Import Manager in MDM 7.1 SP7

    Hi, We are using MDM 7.1 SP7. I am trying to import a Tab delimited flat file through import manager. When I try to connect the source file, I get the following error * Logon Error: Found non-complaint CSV format in input stream [Encoding:UTF16].96*

  • ADVANCED BACKUP AND RESTORING: 102

    I use my dual G5 in a recording studio and had two primary purposes: 1) To run Pro Tools. 2) To run Final Cut & Imovie. It has 3 admin accounts. One for my songs, one for my clients songs and one for my engineers songs... There is priceless data on t

  • Why does apple release seri in beta with many problems

    why does apple release seri in beta with many problems

  • Deployed Applicatio​n requiring lksock.dll​?

    I have developed an application for deployment on Windows XP(pro/home)machines which provides a remote front panel interface and analysis package to another application running on a fieldpoint on the local network or on a remote dial-up network. This