MANDATORY CHECK FOR SELECT OPTION.

Hi gurus,
How to do a mandatory check on select options..
how do wegive messages in webdynpro..as in information, error as we do it in report programming..!
Best Regards,
Navin fernandes.
Edited by: NAVIN FERNANDES on Dec 30, 2009 3:18 PM

Hi,
To make a selection field mandatory:
wd_this->m_handle->add_selection_field(
                        i_description = 'Candidate Profit Center'
                        i_id = '/MRSS/T_RMOR_PROF_CENTER'
                         i_value_help_type = if_wd_value_help_handler=>co_prefix_searchhelp
                        i_value_help_id = '/MRSS/SH_RM_PC_GROUP'
                        it_result = lt_range_table
                       *I_OBLIGATORY = ABAP_TRUE*
                        i_read_only = read_only ).
MAKE THE PARAMETER ABAP_TRUE  TO MAKE IT MANDATORY.
OR PUT THE PARAMETER AS ABAP_FALSE.
Priya
Edited by: Chaitanya Priya Puvvada on Dec 30, 2009 6:34 PM

Similar Messages

  • Selection screen: no sequence check for select option

    Hello everyone,
    I am an SAP starter and this will is my first question:
    I am making a program that approves a stock demand over several levels. When a level approves, the demand goes to the next level.
    for example:
    level 1 = planning
    level 2 = management
    level 3 = buyer
    In an overview report i want to choose for which levels i want to see stock demands. But when I make a select option for the level, I cannot choose the range between management and buyer or planning and buyer for example, because it is alphabetically not in the right order. In this case the alfabet is not important but the order of the levels is, so can I prevent this check from happening?
    Thank you very much

    Hi vandersteen,
    1. There should be some CODE
       for each level.
    2. Each code will have some description.
      eg. planning, management, buyer
    3. So, make select-option
       for the FIELD of CODE
       (and not the description)
    regards,
    amit m.

  • Authorization check for select-options field - Company code.

    Hi experts,
    i have company code field on the report selection screen and i have to validate the authorization check for BUKRS.
    How to do authorization check for a select-options field?
    Any function modules used to write the authorization check for a SELECT-OPTIONS FIELD?
    Thanks.

    >
    RNB wrote:
    > Any function modules used to write the authorization check for a SELECT-OPTIONS FIELD?
    Does it hurt to type a few lines of code? Why do you need an FM for this my friend?
    Anyways can you please tell which SAP application area (viz. FI, SD etc.) do you want to run the report?
    Suhas

  • Input Negative values in selection screen  for select-options field

    I am not able enter negative values for
    SELECT-OPTIONS V_ERFMG FOR MSEG-ERFMG.
    It says negative values are not allowed but I need to check for negative values. Kindly provide me solution.

    You can't put the negative values here...because the Domain which is attached to MSEG-ERFMG has not the "Sign" checkbox on.
    Try with this code:
    tables:wbrp.
    SELECT-OPTIONS V_ERFMG FOR WBRP-menge.
    Regards,
    Naimesh Patel

  • Standard Match Code for Selection Options with Example

    Hi Guys,
                 Can anybody tell me Standard Match Code or Search help for Selection Options.
             ex: MBEW-MATNR , MBEW-BWKEY and MBEW-BWTAR. can anybody tell how to keep Search Help or Match Code for the Above Fields in ECC 6.0 with Example
              Very Urgent.
    Thanks,
    Gopi.

    Well Gopi.. as per your requirement no need to use collective search help.
    I guess you have three fields in selection-screen,out 3 fields you have two fields contains search help.
    Create your user defined search help BWTAR ..
    Check the below links for creation search help :
    http://help.sap.com/saphelp_46c/helpdata/EN/cf/21ee2b446011d189700000e8322d00/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/41/f6b237fec48c67e10000009b38f8cf/content.htm
    Hope you got it.
    Thanks
    Seshu

  • Reg: EQ Operator for Select-Options..

    Normally we use IN Operator for comparing selection-screen fields for select-options, Rarely we use EQ also when working with Select-Options, why we go for this EQ operator.
    Kindly let me know.
    Thanx in Advance.
    Akshitha.

    Hi there. You should use IN when you know that there will be or may be multiple values chosen for the select-option.  For instance, if the user is going to enter a range of personnel numbers on the selection screen, you could use something like:
    IF ws_pernr IN p_pernr
    (where p_pernr is your select-option selection screen field).
    But if you know that the select-option field will only have one value assigned to it (or you are referencing either the high value or the low value of the select-option) then you can use EQ; the term EQ checks for equality against a single value.
    - April King

  • Drop down required for select-options

    drop down required for select-options as displayed in VT01N 'shipment type'.

    Hi
    Check out..this example
    data: i_value       TYPE vrm_values,
            wa_value      LIKE LINE OF i_value.
    PARAMETERS :  p_field   TYPE dd03l-fieldname AS LISTBOX
                             VISIBLE LENGTH 80 OBLIGATORY.
    INITIALIZATION.
    *-- Populate List Box
    *-- TEMKSV - Legacy Value
      wa_value-key = 'TEMKSV'.
      wa_value-text = 'Legacy Key'.
      APPEND  wa_value TO i_value.
      CLEAR:  wa_value.
    *-- Installation
      wa_value-key = 'INSTLN'.
      wa_value-text = 'Installation'.
      APPEND  wa_value TO i_value.
      CLEAR:  wa_value.
    Setting the selection
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id     = 'P_FIELD'
          values = i_value.
    Patil

  • Validation for select-options

    need help in validaiton for select-options.

    Hi..,
    could u paste ur selection screen declarations here !!!
    check this..
    *"Selection screen elements............................................
    select-options :
      s_vbeln for vbak-vbeln,              " Sales document number
      s_vkorg for vbak-vkorg,              " Sales organization
      s_erdat for vbak-erdat .             " Run date
                          AT SELECTION-SCREEN ON EVENT                  *
    *Validation on Sales document number range...
    at selection-screen on s_vbeln.
    Perform to validate Sales document number range...
      perform f0000_validate_vbeln.
                          AT SELECTION-SCREEN ON EVENT                  *
    *Validation on Sales Organization range...
    at selection-screen on s_vkorg.
    *Perform to validate the Organization number user input...
      perform f0100_validate_vkorg.
                          AT SELECTION-SCREEN ON EVENT                  *
    *Validation on Creation date range...
    at selection-screen on s_erdat.
    *Perform to validate the Creation date of the sales documents...
      perform f0100_validate_erdat.
    *&      Form  f0000_validate_vbeln
          This subroutine validates the user input - Sales document      *
          number range                                                   *
          There are no interface parameters                              *
    form f0000_validate_vbeln.
      select vbeln                         " Sales Document number
        from vbuk
       up to 1 rows
        into vbak-vbeln
       where vbeln in s_vbeln.
      endselect.
      check sy-subrc ne 0.
        message e001(zsls640) with s_vbeln-low s_vbeln-high.
    endform.                               " Form f0000_validate_vbeln
    *&      Form  f0100_validate_vkorg
          This subroutine validates the user input - Sales Organization  *
          range                                                          *
          There are no interface parameters                              *
    form f0100_validate_vkorg.
      select vkorg                         " Sales Organization
        from vbak
       up to 1 rows
        into vbak-vkorg
       where vkorg in s_vkorg.
      endselect.
      check sy-subrc ne 0.
        message e002(zsls640) with s_vkorg-low s_vkorg-high.
    endform.                               " Form f0100_validate_vkorg
    *&      Form  f0100_validate_erdat
          This subroutine validates the user input - Creation date of the*
          Sales documents                                                *
          There are no interface parameters                              *
    form f0100_validate_erdat.
      select erdat                         " Creation date
        from vbak
       up to 1 rows
        into vbak-erdat
       where vkorg in s_erdat.
      endselect.
      check sy-subrc ne 0.
        message e003(zsls640) with s_erdat-low s_erdat-high.
    endform.                               " Form f0100_validate_erdat
    <b>regards,
    sai ramesh</b>

  • CR2011 - Check for updates option

    Hello,
    I remember reading a few weeks ago that there was an update for CR2011. I selected the check for updates option on the help menu. I saw a dialog box that said that there were no updates. Is the menu option working?
    Thank you
    Tracy
    Q18

    Hi Tracy,
    If you go to help.sap.com you'll find release note which include the Adapt numbers and info what was fixed.
    Click on the business Object tab and then filter on CR and CR 2011...
    http://help.sap.com/businessobject/product_guides/CR2011/en/xi4_cr2011_release_notes_en.pdf
    The plan is there will be full Patch releases quarterly which will have all update in them, these will have the Doc as above.
    For the bi-monthly patches I'm still checking
    Thanks again
    Don

  • How to write Error message for select options?

    Hi
    i have this select option statement
    SELECT-OPTIONS: s_fevor FOR afko-fevor.
    how to write error message for this?
    Regards
    Smitha

    Error messages are displayed for Select-options mostly on two conditions:
    1) You needs to check wether a value is entered or not its done by:
    a)
    Select-options:SELECT-OPTIONS: s_fevor FOR afko-fevor Obligatory.
       In this case error message is automatically throwed by system.
    b) You can do this in Selection Screen events.
    Ex:
    AT SELECTION-SCREEN./AT SELECTION-SCREEN ON S_FEVOR.
    IF S_FEVOR-LOW IS INITIAL.
    MESSAGE 'XXXXX' TYPE 'E'.
    ENDIF.
    2) You need to Validate the entered value:
    You can do this in Selection Screen events.
    Ex:
    AT SELECTION-SCREEN./AT SELECTION-SCREEN ON S_FEVOR.
    SELECT FEVOR
                 FROM AFKO
                 INTO AFKO-FEVOR
                 UP TO 1 ROWS
    ENDSELECT.        
    IF SY-SUBRC NE 0.
    MESSAGE 'XXXXX' TYPE 'E'.
    ENDIF.
    Regards,
    Gurpreet

  • Can't find "Check for updates" option in Help menu

    Hello
    I am planning to update several adobe reader installations over a windows domain. First of all, I tried to do it in one particular machine without administrative privileges (not being Local Administrator).
    I am surprised of not finding the "Check for updates" option. What is more, there is no topic in the forums about this issue (?).
    Please, could anyone tell me what am I missing?
    Thanks in advance.

    Yes I'm afraid that update must be run with administrative privileges... But there must be another way of updating a product across a network of 400+ clients without login in all of them ...
    I'm trying with adobeupdatechecker, to see if it is possible some kind of automation.

  • Can i assign a collective srch help for select option in list display

    can i assign a collective srch help for select option in list display

    Hi,
    Yes ,u can assign a collective search help for select-option in list display.
    Eg:
    Define your select option like this
    SELECT-OPTIONS: s_vbeln FOR likp-vbeln MATCHCODE OBJECT vmva.
    Regards,
    Shiva.

  • How to set default values in initialization event for select option

    Abapers,
    I have 3 GL account like 0024831231,0024831238,0024831245.
    Please help me how to set default values in select-options ( s_hkont ) in INTIALIZATION event
    Thanks

    Select option is table <Structure> with fields, low, high, sign & option
    you need to append the value into the select option, with appropriate value in low or
    example:
    S_HKONT-low  = <value>
    S_HKONT-SIGN = 'I'
    S_hkont-OPTION = 'EQ'
    append s_hkont.
    Default value for select-option also can be added directly in select-option statement.
    Regards,
    Mahesh

  • How to get calender in f4 help for select options in module pool (URGENT)

    Hi All,
    how to get calender in f4 help for select options in module pool
    Please help .
    Thanx in advance,
    amruta

    Hi Amruta,
    First of all, you can not create select-options directly in module pool.
    For creating <b>select-option is dialog prog</b> follow these steps:
    1. create your selection screen model as subscreen by:
    SELECTION-SCREEN BEGIN OF SCREEN 2000 AS SUBSCREEN.
    PARAMETRS: P_MATNR LIKE MARA-MATNR.
    SELECT-OPTIONS: S_BISMAT FOR MARA-BISMAT.
    SELECTION-SCREEN END OF SCREEN 2000.
    2. create a screen ( example 100 ) in your module-pool dedicated for selection-screen. on this screen layout sketch a sub-screen name like subscree_2000.
    3. write this bit of code in PBO and PAI of the screen 100;
    CALL SUBSCREEN SUBSCREEN_2000.
    4. include this code in PBO:
    INCLUDING SY-REPID '2000'
    6. write user_command of PAI, call screen which is going to executable after selection-screen.
    5. create a transcation for this dialog module pool with screen 100.
    6. execute this transaction and you can see it's behaving like cool with select-options.
    After that in [bprocee on value-request]</b>, use F4_DATE for both from and to option field.
    Hope it will solve the problem.
    Regards
    Krishnendu

  • How to assign search help using ovs for select options for ALV in web dynpr

    how to assign search help using ovs for select options for ALV in web dynpro

    Hi,
    refer http://wiki.sdn.sap.com/wiki/display/WDABAP/InputhelpofObjectValueSelectioninWDABAP
    http://www.****************/Tutorials/WebDynproABAP/OVS/page1.htm
    and http://wiki.sdn.sap.com/wiki/display/Snippets/WebDynproAbap-OVSsearch+help
    Thanks,
    Chandra

Maybe you are looking for

  • Popup on click of a toolbar button during the call

    Hi, I created a custom button in the Interaction center toolbar to open up a decision popup. The popup opens fine when i am not in the call whereas if i am in a call the popup doesn't open. Is this the standard behaviour? If that is the case is there

  • Issue in mapping the same source and target fields

    Hi All, I am working on PI 7.0 and currently I am connecting to PI 7.0 via citrix desktop . Problem here is : in the mapping , direct mapping option that is available to map the same source and target fields is disabled . I do know that this is due t

  • Query on Clustering,Load Balancing and Dehydration in Oracle BPEL PM

    Hi, I had a Few queries on Dehydration ,Clustering and Load Balancing: 1) In section 5.1 "Use Case for Asynchronous Web Services",insertion of a dehydration point is mentioned.What do you exactly mean by this.Can a dehydration point be inserted expli

  • DVD photos disc will not load.

    Hi When I put a disc in the Mac after a short time it is throne out. The disc works OK in the DVD player on the TV.  Do you think there is a problem with my iMac drive.

  • Running program in foreground

    How to make a z program to run in foreground. When excel upload file is selected from desktop, in the zprogram it runs in background. How do we make it run in foreground?