LOV validation issue: "Select a valid value"

Hi,
I have a lov problem in oaf: "Select a valid value".
It is a common problem, but somehow I cannot figure it out.
LOV
- LovApplicationId (of type "formValue")
- LovApplicationShortName (of type "messageStyledText")
- LovApplicationName (of type "messageStyledText")
(based on combination of fnd_application and fnd_application_tl)
BASE PAGE
Two relevant items.
First one is "ApplicationId" of type "formValue" connected to view attribute "ApplicationId". (connected to EO attribute in VO)
Second one is "ApplicationName" of type "MessageLovInput" connected to view attribute "ApplicationName" (calculated in VO)
Two lovMappings.
First mapping:
LOV Region Item = LovApplicationName
Return Item = ApplicationName
Criteria Item = ApplicationName
Use for validation = no
Second mapping:
LOV Region Item = LovApplicationId
Return Item = ApplicationId
Criteria Item = <null>
Use for validation = yes
For example.
If I select "Inventory" in the LOV and click on the apply button in the base page, I am getting the error "Select a valid value".
If I select "Inventory Optimization" in the LOV and click on the apply button in base page, no error. And when I look in database the record is saved in my custom table with the correct application_id.
I have read many forum threads on this issue, but I cannot figure it out, what is wrong.
Please help me out.
Kind regards,
Cor

Hi Haroon,
This doesn't solve the problem.
It is true the exception I am getting doesn't show up anymore.
But the application_id isn't saved to the database.
First thing I would expect in this case, that the mappings are not set properly.
But if I choose for the value "Inventory Optimization", the application_id is saved to the database.
If I choose for the value "Inventory" the application_id is not saved to the database.
So it is possible the get rid of the error in the screen, but the underlying problem is still there...
I have checked some core pages, similar to the one I have.
So an UPDATE page (rectification: instead of CREATE).
I have set all attributes the same, but the problem still occurs in my case.
Very strange.
I would make no difference running the page from jdeveloper or put the files on the application server and run it from Oracle, would it?
It makes no sense. But...
Kind regards,
Cor

Similar Messages

  • Select a valid value Error on LOV

    Hi,
    I am getting a Select a valid value error on LOV field on clicking Save button on Page, even when the selected value exists in the LOV list. Disable Valiodation property of LOV Field is set to false. I want the value to be validated.
    This problem is occuring only when i try to select value for a blank LOV field. If I try to update an exiting value on the same field, no error turns up.
    I am unable to find the cause of this unexpected behaviour of LOV.
    I see the following error message in Diagnostics Log:
    [62]:EVENT:[fnd.framework.webui.OAPageErrorHandler]:OAF LOG: Event : Check Errors, in: oracle.apps.fnd.framework.webui.OAPageErrorHandler: Exception: Select a valid value. ,In VO: null
    Please help.
    Thanks in advance.
    -Shilpi Karan Anand
    Edited by: 924887 on Dec 19, 2012 10:24 PM
    Edited by: 924887 on Dec 19, 2012 10:25 PM

    My issue has been resolved.I made following changes:
    Set 'Use for Validation' property of Main LOV Map to No .
    set 'Use for Validation' property of formValue LovMap to default.
    Threads related to this issue:
    https://forums.oracle.com/forums/profile.jspa?editMode=true&userID=924887
    Error: Select a Valid Value
    -SKA

  • LOV Auto Validation Issue

    Hi,
    I have a LOV on Item Field,and the table has the Items ex: 8091,8091S.
    User Enters the 8091 the LOV Window is automatically validating and finding the two results and poping up the window with results 8091 and 8091S.
    actually what ever user entered is a correct value.how can i solve this issue , if there is a correct matching value in table it shouldn't open up the LOV window.
    Thanks,
    Indira

    One Suggestion,
    Make all the Lov mappins as 'Use for Validation' false. This shall make sure that the Lov does not fire when you enter a partial value. However the side effect would be that the Lov would loose its autocomplete validation features.
    So you need to decide. If you make sure that the user shall always enter the correct value in the field (no validation done by Lov) the problem would be resolved. If the user selects from the list then also there is no issue. If you are willing to do some additional coding, I suggest you write your own validation method to validate the value entered by the user.
    Hope the text helps.
    Thanks
    Sumit

  • Selection screen validation - facing an issue

    Hi All,
    I am facing an issue while doing validations on selections screen of a report program.
    On selecting a checkbox, a field related to that should become mandatory.
    But if I do the validation in selection screen events,
    for the first time also, when I select the check box, it is displaying error message saying no data in mandatory field.
    So I am doing the validation in start-of-selection event.
    Is there any work around for this?
    Please help me in this regard.

    Hi
    maybe you could try coding the validations at selection-screen.
    Also remove OBLIIGATORY syntax in selection screen coding.
    check the value in your check box and make the required field mandatory there.
    at selection-screen.
    if chk_val = 'X'.
      if s_mblnr[] is initial.
        if s_ebeln[] is initial.
          if s_matnr is initial or s_budat is initial.
            message e000(fb) with 'Enter at least a PO and material number/GR date!'.
          endif.
        endif.
      endif.
    else.
    endif.
    regards
    Isaac Prince
    Edited by: prince isaac on Nov 9, 2010 11:45 AM

  • Non Cat Requisition gives error: "contract number - select a valid value"

    Hi Guys
    I wonder if you can help me please. After we've loaded these 3 patches:(7427952,6987692,6813613) when we create a NonCatalog Requisition and select a contract number with less than 4 characters, we get the following error: "contract number - select a valid value". But when we select a contract with more than 4 characters, it works fine. So in other words, it only takes contracts with 4 or more characters. Has anyone encountered this problem? Something has been changed by the patches, but we can't figure out what exactly. Any help would be appreciated.
    Thanks

    Hi,
    Review the following note, it may be helpful.
    Note: 756376.1 - Error: 'Select A Valid Value' When Adding a Section to a Contract Template
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=756376.1
    Regards,
    Hussein

  • Multiple select options validation at selection screen

    Hi,
    I have the requirement to create a selection screen with 3 select options. Two of them are cross-dependent. It is mandatory to fill one of them and it is not allowed to fill both. The third one is optional. I tried the validation at selection-screen on block... and I have a problem that search help buttons for select options react like execution buttons, when I press any of them I am getting one of errors instead of search help.
    Any help on this issue would be appreciated.
    Here is my code:
    DATA:
          so_rbkp TYPE rbkp,
          so_mseg TYPE mseg.
    SELECTION-SCREEN BEGIN OF BLOCK blok WITH FRAME.
      SELECT-OPTIONS:
            s_fakt   FOR so_rbkp-belnr,
            s_matdok FOR so_mseg-mblnr,
            s_god FOR so_mseg-gjahr.
    SELECTION-SCREEN END OF BLOCK blok.
    INITIALIZATION.
    SET TITLEBAR '0100'.
    START-OF-SELECTION.
      AT SELECTION-SCREEN on block blok.
          if s_fakt <> space and s_matdok <> space.
            MESSAGE 'Message1' TYPE 'E'.
          elseif s_fakt = space and s_matdok = space.
            MESSAGE 'Message2' TYPE 'E'.
          endif.
        ENDIF.

    Only perform the check when user wants to execute or submit the program, not when pressing F4 or even Enter, but in a selection-screen event, before START-OF-SELECTION which were program would terminate in error :
    TABLES: SSCRFIELDS.
    AT SELECTION-SCREEN OB BLOCK b01.
        IF sscrfields-ucomm EQ 'ONLI'
        OR sscrfields-ucomm EQ 'PRIN'
        OR sscrfields-ucomm EQ 'SJOB'.
          IF s_fakt[] IS NOT INITIAL AND s_matdok IS NOT INITIAL.
            MESSAGE 'Message1' TYPE 'E'.
          ELSEIF s_fakt[] IS INITIAL and s_matdok[] IS INITIAL.
            MESSAGE 'Message2' TYPE 'E'.
          ENDIF.
        ENDIF.
    (You could also always send the message, but using type 'E' for those function code and 'S' status for any other value.)
    Regards,
    Raymond

  • Validator issue

    Hi Gurus,
    I have a list which has say 2 elements say 'X', 'Y'.
    When i select X i display input component iinp1, inp2 - both are marked as required
    When i select Y i display input component int3,inp4 - both are marked as required
    I have a save button.
    Scenario :
    I select Element X from the list. My page shows input 1, inp2.
    Now i don't enter anything and select Y from the list.
    Issue: Elements don't change as jsf validator fires. So i have to enter value in inp1,inp2 then only they r hidden and inp3, inp4 are shown
    How to handle this scenario ?
    thns

    @Nikhil Gokhale : Tried using your code .. FacesContext.getCurrentInstance().renderResponse(); skips PPR so nothing happens
    btw my code is as asked
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
              xmlns:f="http://java.sun.com/jsf/core">
      <af:panelHeader text="Party" id="ph1">
        <f:facet name="toolbar">
          <af:toolbar id="t2">
            <af:commandToolbarButton text="Save and Create Activity" id="ctb1"
                                     action="#{PartyAndOpportunityPageBean.saveAndCreateActivityListener}"
                                     rendered="false"/>
            <af:commandToolbarButton text="Save and Close" id="ctb3"
                                     action="#{PartyAndOpportunityPageBean.saveAndCloseListener}"/>
            <af:commandToolbarButton text="Cancel" id="ctb2" action="close"
                                     immediate="true"/>
          </af:toolbar>
        </f:facet>
        <af:panelGroupLayout id="pgl1" inlineStyle="width:992px;"
                             layout="horizontal" valign="top">
          <af:showDetailHeader text="Party" disclosed="true" id="sdh1"
                               inlineStyle="height:340px;">
            <af:panelFormLayout id="pfl2" partialTriggers="partyTypeId">
              <af:selectOneChoice value="#{bindings.PartyType.inputValue}"
                                  label="#{bindings.PartyType.label}"
                                  required="#{bindings.PartyType.hints.mandatory}"
                                  shortDesc="#{bindings.PartyType.hints.tooltip}"
                                  id="partyTypeId" autoSubmit="true"
                                  immediate="true" valuePassThru="true"
                                  readOnly="#{pageFlowScope.partyId!=null}"
                                  valueChangeListener="#{PartyAndOpportunityPageBean.changePartyType}">
                <f:selectItems value="#{bindings.PartyType.items}" id="si4"/>
              </af:selectOneChoice>
              <af:inputText value="#{bindings.PartyName.inputValue}"
                            label="#{bindings.PartyName.hints.label}"
                            columns="#{bindings.PartyName.hints.displayWidth}"
                            maximumLength="#{bindings.PartyName.hints.precision}"
                            shortDesc="#{bindings.PartyName.hints.tooltip}" id="it3"
                            rendered="#{bindings.PartyType1.inputValue == 'ORGANIZATION'}"
                            partialTriggers="partyTypeId"
                            readOnly="#{pageFlowScope.partyId!=null}"
                            required="#{bindings.PartyType1.inputValue == 'ORGANIZATION'}">
                <f:validator binding="#{bindings.PartyName.validator}"/>
              </af:inputText>
              <af:selectOneChoice value="#{bindings.PersonPreNameAdjunct.inputValue}"
                                  label="#{bindings.PersonPreNameAdjunct.label}"
                                  required="#{bindings.PartyType1.inputValue == 'PERSON'}"
                                  shortDesc="#{bindings.PersonPreNameAdjunct.hints.tooltip}"
                                  id="personPreNameAdjunctId"
                                  rendered="#{bindings.PartyType1.inputValue == 'PERSON'}"
                                  readOnly="#{pageFlowScope.partyId!=null}">
                <f:selectItems value="#{bindings.PersonPreNameAdjunct.items}"
                               id="si5"/>
              </af:selectOneChoice>
              <af:inputText value="#{bindings.PersonFirstName.inputValue}"
                            label="#{bindings.PersonFirstName.hints.label}"
                            required="#{bindings.PartyType1.inputValue == 'PERSON'}"
                            columns="#{bindings.PersonFirstName.hints.displayWidth}"
                            maximumLength="#{bindings.PersonFirstName.hints.precision}"
                            shortDesc="#{bindings.PersonFirstName.hints.tooltip}"
                            id="it4"
                            rendered="#{bindings.PartyType1.inputValue == 'PERSON'}"
                            readOnly="#{pageFlowScope.partyId!=null}">
                <f:validator binding="#{bindings.PersonFirstName.validator}"/>
              </af:inputText>
              <af:inputText value="#{bindings.PersonLastName.inputValue}"
                            label="#{bindings.PersonLastName.hints.label}"
                            required="#{bindings.PartyType1.inputValue == 'PERSON'}"
                            columns="#{bindings.PersonLastName.hints.displayWidth}"
                            maximumLength="#{bindings.PersonLastName.hints.precision}"
                            shortDesc="#{bindings.PersonLastName.hints.tooltip}"
                            id="it5"
                            rendered="#{bindings.PartyType1.inputValue == 'PERSON'}"
                            readOnly="#{pageFlowScope.partyId!=null}">
                <f:validator binding="#{bindings.PersonLastName.validator}"/>
              </af:inputText>
              <af:panelLabelAndMessage label="Land Line" id="plam1"
                                       rendered="#{bindings.PartyType1.inputValue == 'ORGANIZATION'}"
                                       showRequired="true">
                <af:panelGroupLayout id="pgl4" layout="horizontal">
                  <af:selectOneChoice value="#{bindings.FixCountryCode.inputValue}"
                                      label="#{bindings.FixCountryCode.label}"
                                      required="#{bindings.PartyType1.inputValue == 'ORGANIZATION'}"
                                      shortDesc="#{bindings.FixCountryCode.hints.tooltip}"
                                      id="soc9" simple="true">
                    <f:selectItems value="#{bindings.FixCountryCode.items}"
                                   id="si15"/>
                  </af:selectOneChoice>
                  <af:selectOneChoice value="#{bindings.FixAreaCode.inputValue}"
                                      label="#{bindings.FixAreaCode.label}"
                                      required="#{bindings.PartyType1.inputValue == 'ORGANIZATION'}"
                                      shortDesc="#{bindings.FixAreaCode.hints.tooltip}"
                                      id="soc10" simple="true">
                    <f:selectItems value="#{bindings.FixAreaCode.items}" id="si16"/>
                  </af:selectOneChoice>
                  <af:inputText value="#{bindings.FixPhoneNumber.inputValue}"
                                label="#{bindings.FixPhoneNumber.hints.label}"
                                required="#{bindings.PartyType1.inputValue == 'ORGANIZATION'}"
                                columns="7" maximumLength="7"
                                shortDesc="#{bindings.FixPhoneNumber.hints.tooltip}"
                                id="it17" simple="true">
                    <f:validateLength minimum="7" maximum="7"/>
                    <f:validator binding="#{bindings.FixPhoneNumber.validator}"
                                 validatorId="javax.faces.Length"/>
                  </af:inputText>
                </af:panelGroupLayout>
              </af:panelLabelAndMessage>
              <af:panelLabelAndMessage label="Mobile" id="plam2"
                                       rendered="#{bindings.PartyType1.inputValue == 'PERSON'}"
                                       showRequired="true">
                <af:panelGroupLayout id="pgl3" layout="horizontal"
                                     rendered="#{bindings.PartyType1.inputValue == 'PERSON'}">
                  <af:selectOneChoice value="#{bindings.PrimaryPhoneCountryCode.inputValue}"
                                      label="#{bindings.PrimaryPhoneCountryCode.label}"
                                      required="#{bindings.PartyType1.inputValue == 'PERSON'}"
                                      shortDesc="#{bindings.PrimaryPhoneCountryCode.hints.tooltip}"
                                      id="primaryPhoneCountryCodeId" simple="true"
                                      readOnly="#{pageFlowScope.partyId!=null}">
                    <f:selectItems value="#{bindings.PrimaryPhoneCountryCode.items}"
                                   id="si6"/>
                  </af:selectOneChoice>
                  <af:selectOneChoice value="#{bindings.PrimaryPhoneAreaCode.inputValue}"
                                      label="#{bindings.PrimaryPhoneAreaCode.label}"
                                      required="#{bindings.PartyType1.inputValue == 'PERSON'}"
                                      shortDesc="#{bindings.PrimaryPhoneAreaCode.hints.tooltip}"
                                      id="primaryPhoneAreaCodeId" simple="true"
                                      readOnly="#{pageFlowScope.partyId!=null}">
                    <f:selectItems value="#{bindings.PrimaryPhoneAreaCode.items}"
                                   id="si7"/>
                  </af:selectOneChoice>
                  <af:inputText value="#{bindings.PrimaryPhoneNumber.inputValue}"
                                label="#{bindings.PrimaryPhoneNumber.hints.label}"
                                required="#{bindings.PartyType1.inputValue == 'PERSON'}"
                                columns="7" maximumLength="7"
                                shortDesc="#{bindings.PrimaryPhoneNumber.hints.tooltip}"
                                id="it6" simple="true"
                                readOnly="#{pageFlowScope.partyId!=null}">
                                <f:validateLength minimum="7" maximum="7"/>
                    <f:validator binding="#{bindings.PrimaryPhoneNumber.validator}"/>
                  </af:inputText>
                </af:panelGroupLayout>
              </af:panelLabelAndMessage>
              <af:inputText value="#{bindings.EmailAddress.inputValue}"
                            label="#{bindings.EmailAddress.hints.label}"
                            columns="#{bindings.EmailAddress.hints.displayWidth}"
                            maximumLength="#{bindings.EmailAddress.hints.precision}"
                            shortDesc="#{bindings.EmailAddress.hints.tooltip}"
                            id="it7" readOnly="#{pageFlowScope.partyId!=null}"
                            required="#{bindings.PartyType1.inputValue == 'PERSON' or bindings.PartyType1.inputValue == 'ORGANIZATION'}">
                <f:validator binding="#{bindings.EmailAddress.validator}"/>
              </af:inputText>
              <af:inputText value="#{bindings.Address1.inputValue}"
                            label="#{bindings.Address1.hints.label}"
                            columns="#{bindings.Address1.hints.displayWidth}"
                            maximumLength="#{bindings.Address1.hints.precision}"
                            shortDesc="#{bindings.Address1.hints.tooltip}" id="it8"
                            readOnly="#{pageFlowScope.partyId!=null}"
                            required="#{bindings.PartyType1.inputValue == 'PERSON' or bindings.PartyType1.inputValue == 'ORGANIZATION'}">
                <f:validator binding="#{bindings.Address1.validator}"/>
              </af:inputText>
              <af:inputText value="#{bindings.PostalCode.inputValue}"
                            label="#{bindings.PostalCode.hints.label}"
                            columns="#{bindings.PostalCode.hints.displayWidth}"
                            maximumLength="#{bindings.PostalCode.hints.precision}"
                            shortDesc="#{bindings.PostalCode.hints.tooltip}"
                            id="it22" readOnly="#{pageFlowScope.partyId!=null}"
                            required="#{bindings.PartyType1.inputValue == 'PERSON' or bindings.PartyType1.inputValue == 'ORGANIZATION'}">
                  <f:validateLength minimum="3" maximum="5"/>
                <f:validator binding="#{bindings.PostalCode.validator}"/>
              </af:inputText>
              <af:selectOneChoice value="#{bindings.Country.inputValue}"
                                  label="#{bindings.Country.label}"
                                  shortDesc="#{bindings.Country.hints.tooltip}"
                                  id="countryId"
                                  readOnly="#{pageFlowScope.partyId!=null}"
                                  required="#{bindings.PartyType1.inputValue == 'PERSON' or bindings.PartyType1.inputValue == 'ORGANIZATION'}">
                <f:selectItems value="#{bindings.Country.items}" id="si8"/>
              </af:selectOneChoice>
            </af:panelFormLayout>
          </af:showDetailHeader>
          <af:spacer width="10" height="10" id="s1"/>
          <af:showDetailHeader text="Opportunity" disclosed="true" id="sdh2">
            <af:panelFormLayout id="pfl4" partialTriggers="partyTypeId">
              <af:inputText value="#{bindings.OpportunityName.inputValue}"
                            label="#{bindings.OpportunityName.hints.label}"
                            required="#{bindings.PartyType1.inputValue == 'PERSON' or bindings.PartyType1.inputValue == 'ORGANIZATION'}"
                            columns="#{bindings.OpportunityName.hints.displayWidth}"
                            maximumLength="#{bindings.OpportunityName.hints.precision}"
                            shortDesc="#{bindings.OpportunityName.hints.tooltip}"
                            id="it1">
                <f:validator binding="#{bindings.OpportunityName.validator}"/>
              </af:inputText>
              <af:selectOneChoice value="#{bindings.ExistingCar1.inputValue}"
                                  label="#{bindings.ExistingCar1.label}"
                                  required="#{bindings.PartyType1.inputValue == 'PERSON'}"
                                  shortDesc="#{bindings.ExistingCar1.hints.tooltip}"
                                  id="soc3"
                                  rendered="#{bindings.PartyType1.inputValue == 'PERSON'}">
                <f:selectItems value="#{bindings.ExistingCar1.items}" id="si3"/>
              </af:selectOneChoice>
              <af:selectOneChoice value="#{bindings.MediaName.inputValue}"
                                  label="#{bindings.MediaName.label}"
                                  required="#{bindings.PartyType1.inputValue == 'PERSON' or bindings.PartyType1.inputValue == 'ORGANIZATION'}"
                                  shortDesc="#{bindings.MediaName.hints.tooltip}"
                                  id="soc1">
                <f:selectItems value="#{bindings.MediaName.items}" id="si1"/>
              </af:selectOneChoice>
              <af:selectOneChoice value="#{bindings.PurchaseType.inputValue}"
                                  label="#{bindings.PurchaseType.label}"
                                  shortDesc="#{bindings.PurchaseType.hints.tooltip}"
                                  id="soc2" required="true">
                <f:selectItems value="#{bindings.PurchaseType.items}" id="si2"/>
              </af:selectOneChoice>
              <af:selectOneChoice value="#{bindings.CustomerCategory.inputValue}"
                                  label="#{bindings.CustomerCategory.label}"
                                  required="#{bindings.PartyType1.inputValue == 'PERSON'}"
                                  shortDesc="#{bindings.CustomerCategory.hints.tooltip}"
                                  id="customerCategoryId"
                                  rendered="#{bindings.PartyType1.inputValue == 'PERSON'}">
                <f:selectItems value="#{bindings.CustomerCategory.items}" id="si9"/>
              </af:selectOneChoice>
              <af:panelLabelAndMessage id="plam3" label="Contact Person"
                                       rendered="#{bindings.PartyType1.inputValue == 'ORGANIZATION'}"
                                       showRequired="true">
                <af:panelGroupLayout id="pgl2" layout="horizontal">
                  <af:selectOneChoice label="Contact Person" id="soc8"
                                      simple="true">
                    <f:selectItems value="" id="si14"/>
                  </af:selectOneChoice>
                  <af:commandButton text="New Contact" id="cb1"
                                    actionListener="#{bindings.CreateInsertContact.execute}">
                    <af:showPopupBehavior popupId="newContact" triggerType="action"
                                          align="endAfter"/>
                  </af:commandButton>
                </af:panelGroupLayout>
              </af:panelLabelAndMessage>
            </af:panelFormLayout>
            <af:spacer width="10" height="10" id="s2"/>
            <af:popup id="newContact" contentDelivery="immediate">
              <af:dialog id="d1"
                         dialogListener="#{PartyAndOpportunityPageBean.onDialogAction}">
                <af:panelFormLayout id="pfl1">
                  <af:selectOneChoice value="#{bindings.PersonTitle.inputValue}"
                                      label="#{bindings.PersonTitle.label}"
                                      required="#{bindings.PersonTitle.hints.mandatory}"
                                      shortDesc="#{bindings.PersonTitle.hints.tooltip}"
                                      id="soc6">
                    <f:selectItems value="#{bindings.PersonTitle.items}" id="si13"/>
                  </af:selectOneChoice>
                  <af:inputText value="#{bindings.PersonFirstName1.inputValue}"
                                label="#{bindings.PersonFirstName1.hints.label}"
                                required="#{bindings.PersonFirstName1.hints.mandatory}"
                                columns="#{bindings.PersonFirstName1.hints.displayWidth}"
                                maximumLength="#{bindings.PersonFirstName1.hints.precision}"
                                shortDesc="#{bindings.PersonFirstName1.hints.tooltip}"
                                id="it10">
                    <f:validator binding="#{bindings.PersonFirstName1.validator}"/>
                  </af:inputText>
                  <af:inputText value="#{bindings.PersonLastName1.inputValue}"
                                label="#{bindings.PersonLastName1.hints.label}"
                                required="#{bindings.PersonLastName1.hints.mandatory}"
                                columns="#{bindings.PersonLastName1.hints.displayWidth}"
                                maximumLength="#{bindings.PersonLastName1.hints.precision}"
                                shortDesc="#{bindings.PersonLastName1.hints.tooltip}"
                                id="it11">
                    <f:validator binding="#{bindings.PersonLastName1.validator}"/>
                  </af:inputText>
                  <af:selectOneChoice value="#{bindings.CountryCode.inputValue}"
                                      label="#{bindings.CountryCode.label}"
                                      required="#{bindings.CountryCode.hints.mandatory}"
                                      shortDesc="#{bindings.CountryCode.hints.tooltip}"
                                      id="soc4">
                    <f:selectItems value="#{bindings.CountryCode.items}" id="si10"/>
                  </af:selectOneChoice>
                  <af:selectOneChoice value="#{bindings.AreaCode.inputValue}"
                                      label="#{bindings.AreaCode.label}"
                                      required="#{bindings.AreaCode.hints.mandatory}"
                                      shortDesc="#{bindings.AreaCode.hints.tooltip}"
                                      id="soc5">
                    <f:selectItems value="#{bindings.AreaCode.items}" id="si11"/>
                  </af:selectOneChoice>
                  <af:inputText value="#{bindings.PhoneNumber.inputValue}"
                                label="#{bindings.PhoneNumber.hints.label}"
                                required="#{bindings.PhoneNumber.hints.mandatory}"
                                columns="#{bindings.PhoneNumber.hints.displayWidth}"
                                maximumLength="#{bindings.PhoneNumber.hints.precision}"
                                shortDesc="#{bindings.PhoneNumber.hints.tooltip}"
                                id="it14">
                    <f:validator binding="#{bindings.PhoneNumber.validator}"/>
                  </af:inputText>
                  <af:inputText value="#{bindings.EmailAddress1.inputValue}"
                                label="#{bindings.EmailAddress1.hints.label}"
                                required="#{bindings.EmailAddress1.hints.mandatory}"
                                columns="#{bindings.EmailAddress1.hints.displayWidth}"
                                maximumLength="#{bindings.EmailAddress1.hints.precision}"
                                shortDesc="#{bindings.EmailAddress1.hints.tooltip}"
                                id="it9">
                    <f:validator binding="#{bindings.EmailAddress1.validator}"/>
                  </af:inputText>
                  <af:inputText value="#{bindings.Address.inputValue}"
                                label="#{bindings.Address.hints.label}"
                                required="#{bindings.Address.hints.mandatory}"
                                columns="#{bindings.Address.hints.displayWidth}"
                                maximumLength="#{bindings.Address.hints.precision}"
                                shortDesc="#{bindings.Address.hints.tooltip}"
                                id="it13">
                    <f:validator binding="#{bindings.Address.validator}"/>
                  </af:inputText>
                  <af:inputText value="#{bindings.PostalCode1.inputValue}"
                                label="#{bindings.PostalCode1.hints.label}"
                                required="#{bindings.PostalCode1.hints.mandatory}"
                                columns="#{bindings.PostalCode1.hints.displayWidth}"
                                maximumLength="#{bindings.PostalCode1.hints.precision}"
                                shortDesc="#{bindings.PostalCode1.hints.tooltip}"
                                id="it12">
                    <f:validator binding="#{bindings.PostalCode1.validator}"/>
                  </af:inputText>
                  <af:selectOneChoice value="#{bindings.Emirate.inputValue}"
                                      label="#{bindings.Emirate.label}"
                                      required="#{bindings.Emirate.hints.mandatory}"
                                      shortDesc="#{bindings.Emirate.hints.tooltip}"
                                      id="soc7">
                    <f:selectItems value="#{bindings.Emirate.items}" id="si12"/>
                  </af:selectOneChoice>
                </af:panelFormLayout>
              </af:dialog>
            </af:popup>
            <af:showDetailHeader text="Interested Models" disclosed="true"
                                 id="sdh3">
              <af:panelCollection id="pc1">
                <af:table value="#{bindings.InterestedModel1.collectionModel}"
                          var="row" rows="#{bindings.InterestedModel1.rangeSize}"
                          emptyText="#{bindings.InterestedModel1.viewable ? 'No data to display.' : 'Access Denied.'}"
                          fetchSize="#{bindings.InterestedModel1.rangeSize}"
                          rowBandingInterval="0"
                          filterModel="#{bindings.InterestedModel1Query.queryDescriptor}"
                          queryListener="#{bindings.InterestedModel1Query.processQuery}"
                          filterVisible="true" varStatus="vs"
                          selectionListener="#{bindings.InterestedModel1.collectionModel.makeCurrent}"
                          id="t1" columnStretching="column:c2"
                          partialTriggers=":::partyTypeId :::ctb3"
                          rowSelection="multiple" contentDelivery="immediate">
                  <af:column id="c5" width="12" rowHeader="true"/>
                  <af:column sortProperty="Selected" sortable="true"
                             headerText="#{bindings.InterestedModel1.hints.Selected.label}"
                             id="c3" rendered="false">
                    <af:selectBooleanCheckbox value="#{row.bindings.Selected.inputValue}"
                                              label="#{row.bindings.Selected.label}"
                                              shortDesc="#{bindings.InterestedModel1.hints.Selected.tooltip}"
                                              id="sbc1"/>
                  </af:column>
                  <af:column sortProperty="RangeDescription" filterable="true"
                             sortable="true"
                             headerText="#{bindings.InterestedModel1.hints.RangeDescription.label}"
                             id="c2">
                    <af:inputText value="#{row.bindings.RangeDescription.inputValue}"
                                  label="#{bindings.InterestedModel1.hints.RangeDescription.label}"
                                  required="#{bindings.InterestedModel1.hints.RangeDescription.mandatory}"
                                  columns="#{bindings.InterestedModel1.hints.RangeDescription.displayWidth}"
                                  maximumLength="#{bindings.InterestedModel1.hints.RangeDescription.precision}"
                                  shortDesc="#{bindings.InterestedModel1.hints.RangeDescription.tooltip}"
                                  id="it15">
                      <f:validator binding="#{row.bindings.RangeDescription.validator}"/>
                    </af:inputText>
                  </af:column>
                  <af:column sortProperty="RangeCode" filterable="true"
                             sortable="true"
                             headerText="#{bindings.InterestedModel1.hints.RangeCode.label}"
                             id="c4">
                    <af:inputText value="#{row.bindings.RangeCode.inputValue}"
                                  label="#{bindings.InterestedModel1.hints.RangeCode.label}"
                                  required="#{bindings.InterestedModel1.hints.RangeCode.mandatory}"
                                  columns="#{bindings.InterestedModel1.hints.RangeCode.displayWidth}"
                                  maximumLength="#{bindings.InterestedModel1.hints.RangeCode.precision}"
                                  shortDesc="#{bindings.InterestedModel1.hints.RangeCode.tooltip}"
                                  id="it16">
                      <f:validator binding="#{row.bindings.RangeCode.validator}"/>
                    </af:inputText>
                  </af:column>
                  <af:column sortProperty="Quantity" filterable="true"
                             sortable="true"
                             headerText="#{bindings.InterestedModel1.hints.Quantity.label}"
                             id="c1">
                    <af:inputText value="#{row.bindings.Quantity.inputValue}"
                                  label="#{bindings.InterestedModel1.hints.Quantity.label}"
                                  required="#{bindings.InterestedModel1.hints.Quantity.mandatory}"
                                  columns="#{bindings.InterestedModel1.hints.Quantity.displayWidth}"
                                  maximumLength="#{bindings.InterestedModel1.hints.Quantity.precision}"
                                  shortDesc="#{bindings.InterestedModel1.hints.Quantity.tooltip}"
                                  id="it2" autoSubmit="true">
                      <f:validator binding="#{row.bindings.Quantity.validator}"/>
                      <af:convertNumber groupingUsed="false"
                                        pattern="#{bindings.InterestedModel1.hints.Quantity.format}"/>
                    </af:inputText>
                  </af:column>
                </af:table>
              </af:panelCollection>
            </af:showDetailHeader>
          </af:showDetailHeader>
        </af:panelGroupLayout>
      </af:panelHeader>
    </jsp:root>

  • Problem in AT selection screen validation

    Hi,
    I am having problem in AT SELECTION SCREEN Validation.
    I have 2 radiobutton and 6 parameter. if i click first radio button  all the 6 radiobutton should enable and take the user input, that is working fine for me.
    if i click second radiobutton , out of 6 , 3 parameter should disable and remaining 3 should enable. thats also working fine.
    My problem is program has written the validation for this 3 parameter in the AT SELECTION SCREEN.
    For first radioutton all the validation working  fine, for second validation as soon as i press the radiobutton it will display error message. Based on 2 parameter user is filling value for 3 rd parameter.
    I want the same validation to be done for second radio button after user pressing enter.
    PARAMETER: p_single RADIOBUTTON GROUP rad1 DEFAULT 'X' USER-COMMAND f1,
               p_multi RADIOBUTTON GROUP rad1.
    PARAMETERS: s_pwwrk LIKE plaf-pwwrk.          
    PARAMETERS: p_lgort LIKE plaf-lgort.
    PARAMETERS: p_kostl LIKE cobl-kostl.
    here is my code:
    AT SELECTION SCREEN.
    CLEAR t001w.
      CLEAR t001k.
      CLEAR marv.
      SELECT SINGLE * FROM t001w WHERE werks EQ s_pwwrk.
      IF sy-subrc NE 0.
        MESSAGE e999 WITH 'Plant' s_pwwrk 'does not exist'.
      ELSE.
        SELECT SINGLE * FROM t001k WHERE bwkey EQ t001w-bwkey.
        SELECT SINGLE * FROM marv WHERE bukrs EQ t001k-bukrs.
        IF p_budat0(4) NE marv-lfgja OR p_budat4(2) NE marv-lfmon
    IF marv-xruem IS NOT INITIAL.
            IF p_budat0(4) NE marv-vmgja OR p_budat4(2) NE marv-vmmon.
    MESSAGE e999 WITH p_budat4(2) p_budat0(4)
                                'is closed.
                                            Please try again.'.
            ENDIF.
          ELSE.
            MESSAGE e999 WITH p_budat4(2) p_budat0(4)
                              'is closed.
                                          Please try again.'.
          ENDIF.
        ENDIF.
      ENDIF.

    For your Case ,
    If i understand clearly,You can do the validation when you want on AT SELECTION SCREEN ON WP_FIELD.
    If you say your validation to be done only for Selection of Second Radio Button, then..
    AT SELECTION SCREEN.
    if p_multi  eq 'X'. "<- Make Validation to be done only if user select Second Button
    CLEAR t001w.
    CLEAR t001k.
    CLEAR marv.
    SELECT SINGLE * FROM t001w WHERE werks EQ s_pwwrk.
    IF sy-subrc NE 0.
    MESSAGE e999 WITH 'Plant' s_pwwrk 'does not exist'.
    ELSE.
    SELECT SINGLE * FROM t001k WHERE bwkey EQ t001w-bwkey.
    SELECT SINGLE * FROM marv WHERE bukrs EQ t001k-bukrs.
    IF p_budat+0(4) NE marv-lfgja OR p_budat+4(2) NE marv-lfmon
    IF marv-xruem IS NOT INITIAL.
    IF p_budat+0(4) NE marv-vmgja OR p_budat+4(2) NE marv-vmmon.
    MESSAGE e999 WITH p_budat+4(2) p_budat+0(4)
    'is closed.
    Please try again.'.
    ENDIF.
    ELSE.
    MESSAGE e999 WITH p_budat+4(2) p_budat+0(4)
    'is closed.
    Please try again.'.
    ENDIF.
    ENDIF.
    ENDIF.
    endif.

  • Selection-screen validation

    Hi Experts,
          Please can any one give me the details ..
      1)What is the actual use of selection screen  validation?
    2) When we use Selection-screen validation?
    3)If we are not written the selection-screen validation is there any effect?
    I know how to write the validation for a selection screen. But why i am asking above questions is I am very new to ABAP .My Functionl people also new to ABAP. They told me one report.I asked me what are the validation for selection screen . At that time they told there is no validation.
         Thats the reason to ask above questions..
      please tell me the details..
    Thanks In Advance..
    Thanks and Regards
    Siri..

    Abhi,
    Selection Screen Validation are used for correct input processing.
    Selection screen elements are used further in select queries to fetch data. if user enters some wrong input
    we will unnecessarily hit the data base with wrong values and select will fail , hence validation of the input
    will avoid unnecessary data base hit.
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Feb 27, 2008 12:26 PM

  • Issue while changing validity date for assigned roles: SAP IDM 7.2 SP8

    Hello Experts
    I assigned the Task on repository for validity modification for Roles as in below screenshot:
    When I modify the role validity, Task defined for Validity modification doesnt get triggered and IDM executes the tasks defined as Modify Task and fails with below errors:
    1. Could not obtain repository name from Pending object.
    2. Error ! Audit id , Variable doesnt exist in MXPT_GET_ENTRYTYPE.
    I tried checking provisioning audit logs but could'nt find any Audit ID created for validity modification and I guess due to this tasks are getting cancelled.
    Why the task defined in Modify Valdity tasks doesnt get triggered when I modify the Role assignment validity ?
    Am I doing anything wrong with the SAP Standard way of working ?
    Regards
    Deepak Gupta

    Hi Deepak/Chris,
    We are also facing a similar issue in our project where modifying validity of the role does not trigger any task. We then changed the Modify attribute(in task tab) on the priveleges to "inhereted".
    The modify task is now triggered and completes successfully. However, no changes occur in backend.
    We need unedrstand where do we maintain the setting to define which attributes(if changed) will trigger an event task in the provisioning framework. the "check attributes modification" task within the provisioning framework executes the below query:
    select COUNT(VarName) from mxpv_audit_variables where AuditID=%AUDITID% and VarValue='%MSKEY%' and VarName='MARK_EXEC_MODIFY_ATTR%MSKEY%'
    The query gives the result as "False" in case we only modify the validity of the role assigned to user. Thus no event tasks are executed for the same.
    Can anyone please share where do we define the attributes for this query to give "True" as result for role validity modification.
    regards,
    Nits

  • Digital Signature validation issue in Adapter Module

    Hi guys,
    we have developed an adapter module for digital signature validation, unfortunately, it simetimes work, sometimes doesnt. Strange is, that the same adapter module works for one customer, while for another one doesn't.
    We have sent through some "invalid" messages, which should have been valid at the client, where the module works and theu were flagged as valid. It seems the problem is caused by "special" spanish characters, because validation works for the messages where are only standard chars.
    Any idea, what to check? Java version, system encoding?
    Any help appreciated,
    Olian

    Hi,
    Not really sure about what causes such issues, but if your module coding uses String and byte[] manipulation, are you using explicite encoding when declaring such types ? I remember facing strange issues with XML field values, and "forcing" encoding to "UTF-8" when appropriate, it solved all my errors (string typed object, when converted internally by the JVM, were not always represented by the same bytes object)
    Hope this helps
    Chris

  • Selection-screen validations

    Hi Experts ,
    I have module pool program there in first screen user have choice to select screen if user select the first screen .The selection will be displayed with two parameters using key word
    selection-screen begin of screen 2002.
    parameters : p_date type sy-datum,
                         p_num  type kunnr.
    selection-screen end of screen 2002.
    call screen '2003'.
    now i want to do validations on these parameters ,
    please let me know how can i validate these selection-screen fields  there i try chain and endchain in screen 2003 , it says no fields in screen 2003. screen 2002 was developed dynamically by systemplease let me know  how to do validations i search it i cant find it plz solve issue .

    hi
    i think there are two methods two create selection screen
    1.  using layout here we can create selection screen with screen painter
    here we can validate using chain end endchain.
    Plz try this on
    Selection Screen
    Defined within an ABAP program; called by the runtime environment or using the CALL SELECTION-SCREEN statement; processed in event blocks of the corresponding ABAP program.
    in main screen we have 3 selections for screen 2002 ,2004, 2006.
    if sy-ucomm = 2002.
    2 .  selection-screen begin of screen 2002.
    parameters : .........
          selection-screen end of screen 2002.
    call selection-screen '2002'.
    once this was triggered after entering vales it return to the next step then
    call screen 2003.
    then it goes to PBO and PAI events.
    endif.
    if sy-ucomm = 2003.
    selection-screen begin of screen 2003.
    parameters : .........
          selection-screen end of screen 2003.
    call selection-screen '2003'.
    once this was triggered after entering vales it return to the next step then
    call screen 2004.
    then it goes to PBO and PAI events.
    endif.
    all these are done in initial screen PBO . and those are created dynamically now i want to do validations on selection-screen fields. we can;t use at selection-screen in module end end module .
    plz let me know if you know any thing more.

  • Problem in selection screen validation.

    Hi All,
    I am having the following in the selection screen:
    PARAMETERS : p_r1 RADIOBUTTON GROUP grp DEFAULT 'X' USER-COMMAND dlvy,
                 p_r2 RADIOBUTTON GROUP grp .
    SELECTION-SCREEN BEGIN OF BLOCK b1 with frame title text-001.
    SELECT-OPTIONS: s_vbeln FOR lips-vbeln             MODIF ID dly.
    SELECT-OPTIONS: s_lfart FOR likp-lfart  OBLIGATORY MODIF ID dly.
    SELECT-OPTIONS: s_vstel FOR likp-vstel             MODIF ID dly.
    SELECT-OPTIONS: s_matnr FOR lips-matnr             MODIF ID dly.
    SELECT-OPTIONS: s_wadat FOR likp-wadat  OBLIGATORY MODIF ID dly.
    SELECT-OPTIONS: s_wbsta FOR vbup-wbsta             MODIF ID dly.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 with frame title text-002.
    SELECT-OPTIONS: s1_matnr FOR lips-matnr MODIF ID mat.
    SELECT-OPTIONS: s_extwg  FOR mara-extwg MODIF ID mat.
    SELECT-OPTIONS: s_werks  FOR marc-werks MODIF ID mat.
    SELECTION-SCREEN END OF BLOCK b2.
    If I choose Radio Button 1, only option 1 should be triggered,
    If I choose Radio Button 2, only option 2 should be triggered,
    For this I have:
    AT SELECTION-SCREEN OUTPUT.
      IF p_r1 = 'X'.
        blk_hide = 'MAT'.
        blk_show = 'DLY'.
      ELSE.
        blk_hide = 'DLY'.
        blk_show = 'MAT'.
      ENDIF.
      LOOP AT SCREEN.
        IF screen-group1 = blk_hide.
          screen-active = 0.
        ELSE.
          IF screen-group1 = blk_show.
            screen-active = 1.
          ENDIF.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.
    Now I need to validate the selection Screen, I am facing issue in doing selection screen validation:
    Can any one help me in how to go about this?
    Thanks,
    Debrup.

    pls. replace the AT SELECTION-SCREEN OUTPUT event with this one:
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        CASE 'X'.
          WHEN p_r1.
            CASE screen-group1.
              WHEN 'DLY'.
                screen-active = '1'.
              WHEN 'MAT'.
                screen-active = '0'.
            ENDCASE.
          WHEN p_r2.
            CASE screen-group1.
              WHEN 'DLY'.
                screen-active = '0'.
              WHEN 'MAT'.
                screen-active = '1'.
            ENDCASE.
        ENDCASE.
        MODIFY SCREEN.
      ENDLOOP.

  • Message no. CZ160 - Select a valid release strategy - IS Retail

    while assigning PR release strategy to site thru' "Determination of Release Strategy" under tcode WB02, i am getting following error message.
    Select a valid release strategy
    Message no. CZ160
    Diagnosis
    The release strategy 01 is not defined.
    Procedure
    List the permissible values using F4, and choose a valid release strategy.
    FYI, i configured PR release strategy "01" with required config. requirements and checcked the same thru' simulation and it is working fine.

    Hi,
    Please follow the steps;
    1. Create characteristics via tcode CT04
    2. Create Class for class type 032. Via tcode CL02
    3. Then go to SPRO -> MM -> Pur -> PR -> Release Procedure with Classification -> Set up procedure. create release group, rel obj, class 032.
    Next, set up release codes followed by release indicator.
    Then the release strategies.
    4. go to tcode CL20N to assign the release group and release strategy to the class and class type.
    5. SPRO -> MM -> Pur -> PR -> Release Procedure with Classification -> Set up procedure -> Check Release Strategies

  • How to do validations for select-options

    Hi gurus,
    can you suggest me
    how to do validations for select-options
    Thanks&ragards,
    Kals.

    HI,
    TABLES: BKPF.
    TYPES: BEGIN OF TY_BKPF,
           BUKRS TYPE BUKRS,   "COMPANY CODE
           GJAHR TYPE GJAHR,   "FISCAL YEAR
           MONAT TYPE MONAT,   "FISCAL PERIOD
    DATA: T_BKPF TYPE TABLE OF TY_BKPF,
          W_BKPF TYPE TY_BKPF.
    SELECTION-SCREEN : BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS: S_CODE   FOR BKPF-BUKRS,
                    S_YEAR   FOR BKPF-GJAHR,
                    S_PERIOD FOR BKPF-MONAT.
    SELECTION-SCREEN: END OF BLOCK B1.
                        AT SELECTION-SCREEN                           *
    IF S_CODE IS INITIAL OR S_YEAR IS INITIAL OR S_PERIOD IS INITIAL.
      MESSAGE E000(0) WITH 'ENTER VLAUES'.
    ENDIF.
    SELECT SINGLE * FROM BKPF WHERE BUKRS IN S_CODE.
      IF SY-SUBRC <> 0.
      MESSAGE E000(0) WITH 'ENTER VALID VALUES'.
      ENDIF.
    reward if useful
    thanks and regards

Maybe you are looking for

  • Issue in retriving rows from sql statement

    hi all, actually i am trying to executed a query given below: select scodesc from t_coursecatalog where productid=13 and rownum=1; actually this particular column 'scodesc' contain very long insertion statement i.e., <table border=0 cellpadding="1" c

  • Question about IDashedAttributeValues interface

    Hi to everyone,<br />I have a question about IDashedAttributeValues interface.<br />If I would like to apply custom dashes kDashedAttributeValuesBoss to a page item. I would expect that my code will look like this:<br /><br />InterfacePtr<IDashedAttr

  • Can someone help me with compression of video files?

    I am trying to compress some videos to put on my iPod video. I run them through QuickTime Pro 7 or whatever the latest one is, and I compress the file using the "movie to iPod" preset. When it finishes, it gives me the original .mov file which is hug

  • RGB value -- RGB -- YCrCb -- RGB -- RGB value conversion help?

    Hi, I am using bufferedImages and the method getRGB() and setRGB(). I was wondering how I can convert a negative RGB value like -6262262 to RGB values like 155, 80, 90. Then convert those to Y' Cb Cr values like 0.23, 0.212, 013. And then I have to c

  • How can I see ACR is busy (updating the screen)

    Hi, I use an older PC with Win XP, PS CS6 and ACR 7.3 When I've made several modifications the pc is getting slower and slower. I've read when ACR is working, there appears an icon like this: But that is only in the beginnning when ACR is starting...