Select field 'B' based on field 'A'

Hi,
I have a report with selection screen. I want to display the list of possible entries for field 'B' as per the value in field 'A'.
I am doing this on event
<b>"Selection screen on value-request for <B></b>
using functional module
<b>'REUSE_ALV_POPUP_TO_SELECT'</b>
Everything is fine except one problem.
Let's take a example that screen has two fields
A).
<b>parsmeters: p_vbeln like vbap-vbeln.</b>
"Sales order number
B).
<b>parameters: p_posnr like vbap-posnr.</b>
"line item
Based on sales order number i have to show an popup with corresponding line item numbers. and i have coded this under,
<b>Selection screen on value-request for POSNR</b>
<u><b>Scenario 1:</b></u> i enter the sales order number in the field p_vbeln <b>and hit enter</b>
when i do F4 on p_posnr, it displays the popup with corresponding line items.
<b>This works fine</b>
<u><b>Scenario 2:</b></u> i just type in the sales order number and <b>do not hit enter or anything)</b>
Now if i do F4 on p_posnr, it doesn't display the line items, since there is not value populated in p_vbeln as entered it but did not press enter.
I hope i am making sense.
So, my problem is how display possible value for field 'B' if user type in the value in field 'A' but do not hit enter.
Please let me know.
Thanks,
Pal

*-- F4 help for Payroll Administrator
AT SELECTION SCREEN ON VALUE REQUEST FOR P_SACHA.
    PERFORM VALUES_SACHA.
*-- F4 help for Pay Scale Group
AT SELECTION SCREEN ON VALUE REQUEST FOR P_TRFGR.
*-- F4 help for Pay Scale Level
AT SELECTION SCREEN ON VALUE REQUEST FOR P_TRFST.
     FORM  VALUES_SACHA
      Provide popup help for the Payroll Admin field
FORM VALUES_SACHA.
  REFRESH: LTAB_DYNPSELECT,
           LTAB_DYNPVALUETAB.
  PERFORM READ_VALUE_FROM_SCREEN USING SY-REPID
                   SY-DYNNR
                   'PA0001-WERKS'
          CHANGING LTAB_DYNPSELECT-FLDNAME
                   LTAB_DYNPSELECT-FLDINH.
  APPEND LTAB_DYNPSELECT.
  LTAB_DYNPSELECT-FLDNAME = 'MANDT'.
  APPEND LTAB_DYNPSELECT.
  LTAB_DYNPSELECT-FLDNAME = 'SACHX'.
  APPEND LTAB_DYNPSELECT.
  PERFORM SHOW_HELP TABLES LTAB_DYNPSELECT
       LTAB_DYNPVALUETAB
USING 'T526'
       'SACHX'
                  CHANGING PA0001-SACHA.
ENDFORM.         " VALUES_SACHA
      FORM VALUES_TRFGR
      Provide popup help for Pay Scale Group
FORM VALUES_TRFGR.
  REFRESH: LTAB_DYNPSELECT,
           LTAB_DYNPVALUETAB.
  LTAB_DYNPSELECT-FLDNAME = 'MANDT'.
  APPEND LTAB_DYNPSELECT.
  LTAB_DYNPSELECT-FLDNAME = 'MOLGA'.
  SELECT SINGLE MOLGA FROM T001P
         INTO   LTAB_DYNPSELECT-FLDINH
          WHERE WERKS = *PA0001-WERKS
          AND   BTRTL = *PA0001-BTRTL.
  IF SY-SUBRC NE 0.
    LTAB_DYNPSELECT-FLDINH = SPACE.
  ENDIF.
  APPEND LTAB_DYNPSELECT.
  LTAB_DYNPSELECT-FLDNAME = 'TRFAR'.
  LTAB_DYNPSELECT-FLDINH  = *PA0008-TRFAR.
  APPEND LTAB_DYNPSELECT.
  LTAB_DYNPSELECT-FLDNAME = 'TRFGB'.
  LTAB_DYNPSELECT-FLDINH  = *PA0008-TRFGB.
  APPEND LTAB_DYNPSELECT.
  LTAB_DYNPSELECT-FLDNAME = 'TRFKZ'.
  SELECT SINGLE TRFKZ FROM T503
         INTO  LTAB_DYNPSELECT-FLDINH
         WHERE PERSG = *PA0001-PERSG
         AND   PERSK = *PA0001-PERSK.
  IF SY-SUBRC NE 0.
    LTAB_DYNPSELECT-FLDINH = SPACE.
  ENDIF.
  APPEND LTAB_DYNPSELECT.
  LTAB_DYNPSELECT-FLDNAME = 'TRFGR'.
  LTAB_DYNPSELECT-FLDINH  = SPACE.
  APPEND LTAB_DYNPSELECT.
  PERFORM SHOW_HELP TABLES LTAB_DYNPSELECT
       LTAB_DYNPVALUETAB
USING 'T510'
       'TRFGR'
                  CHANGING PA0008-TRFGR.
  PERFORM UPDATE_VALUE_ON_SCREEN USING SY-REPID
                   SY-DYNNR
                   'PA0008-TRFGR'
                   PA0008-TRFGR.
ENDFORM.         " VALUES_TRFGR
     FORM  VALUES_TRFST
      Provide popup help for Pay Scale Area
FORM VALUES_TRFST.
  REFRESH: LTAB_DYNPSELECT,
           LTAB_DYNPVALUETAB.
  LTAB_DYNPSELECT-FLDNAME = 'MANDT'.
  APPEND LTAB_DYNPSELECT.
  LTAB_DYNPSELECT-FLDNAME = 'MOLGA'.
  SELECT SINGLE MOLGA FROM T001P
         INTO   LTAB_DYNPSELECT-FLDINH
          WHERE WERKS = *PA0001-WERKS
          AND   BTRTL = *PA0001-BTRTL.
  IF SY-SUBRC NE 0.
    LTAB_DYNPSELECT-FLDINH = SPACE.
  ENDIF.
  APPEND LTAB_DYNPSELECT.
  LTAB_DYNPSELECT-FLDNAME = 'TRFAR'.
  LTAB_DYNPSELECT-FLDINH  = *PA0008-TRFAR.
  APPEND LTAB_DYNPSELECT.
  LTAB_DYNPSELECT-FLDNAME = 'TRFGB'.
  LTAB_DYNPSELECT-FLDINH  = *PA0008-TRFGB.
  APPEND LTAB_DYNPSELECT.
  LTAB_DYNPSELECT-FLDNAME = 'TRFKZ'.
  SELECT SINGLE TRFKZ FROM T503
         INTO  LTAB_DYNPSELECT-FLDINH
         WHERE PERSG = *PA0001-PERSG
         AND   PERSK = *PA0001-PERSK.
  IF SY-SUBRC NE 0.
    LTAB_DYNPSELECT-FLDINH = SPACE.
  ENDIF.
  APPEND LTAB_DYNPSELECT.
  PERFORM READ_VALUE_FROM_SCREEN USING SY-REPID
                   SY-DYNNR
                   'PA0008-TRFGR'
          CHANGING LTAB_DYNPSELECT-FLDNAME
                   LTAB_DYNPSELECT-FLDINH.
  APPEND LTAB_DYNPSELECT.
  LTAB_DYNPSELECT-FLDNAME = 'TRFST'.
  LTAB_DYNPSELECT-FLDINH  = SPACE.
  APPEND LTAB_DYNPSELECT.
  PERFORM SHOW_HELP TABLES LTAB_DYNPSELECT
       LTAB_DYNPVALUETAB
USING 'T510'
       'TRFST'
                  CHANGING PA0008-TRFST.
  PERFORM UPDATE_VALUE_ON_SCREEN USING SY-REPID
                   SY-DYNNR
                   'PA0008-TRFST'
                   PA0008-TRFST.
ENDFORM.                 " VALUES_TRFST 
      FORM SHOW_HELP        *
-->  FTAB_DYNPSELECT       *
-->  FTAB_DYNPVALUETAB     *
-->  FSTR_HELP_INFO        *
-->  F_NEWVALUE            *
FORM SHOW_HELP TABLES FTAB_DYNPSELECT   STRUCTURE DSELC
  FTAB_DYNPVALUETAB STRUCTURE DVAL
               USING  F_CHECKTABLE      LIKE HELP_INFO-CHECKTABLE
  F_CHECKFIELD      LIKE HELP_INFO-CHECKFIELD
             CHANGING F_NEWVALUE.
  DATA: LSTR_HELP_INFO LIKE HELP_INFO.
  DATA: LC_SELECTION_VALUE LIKE HELP_INFO-FLDVALUE.
  DATA: LC_SELECTION(1)    TYPE C.
*-- Fill in fields required for help function call
  LSTR_HELP_INFO-CALL       = 'T'.
  LSTR_HELP_INFO-OBJECT     = 'F'.
  LSTR_HELP_INFO-SPRAS      = SY-LANGU.
  LSTR_HELP_INFO-CHECKTABLE = F_CHECKTABLE.
  LSTR_HELP_INFO-CHECKFIELD = F_CHECKFIELD.
  CALL FUNCTION 'HELP_START'
       EXPORTING
            HELP_INFOS   = LSTR_HELP_INFO
       IMPORTING
            SELECTION    = LC_SELECTION
            SELECT_VALUE = LC_SELECTION_VALUE
       TABLES
            DYNPSELECT   = FTAB_DYNPSELECT
            DYNPVALUETAB = FTAB_DYNPVALUETAB
       EXCEPTIONS
            OTHERS       = 1.
  IF LC_SELECTION NE SPACE AND SY-SUBRC = 0.
    F_NEWVALUE = LC_SELECTION_VALUE.
  ENDIF.
ENDFORM.           " SHOW_HELP
      FORM READ_VALUE_FROM_SCREEN               *
-->  F_REPID               *
-->  F_DYNNR               *
-->  VALUE(F_FIELDNAME_IN) *
-->  F_FIELDNAME_OUT       *
-->  F_FIELDVALUE          *
FORM READ_VALUE_FROM_SCREEN USING F_REPID
              F_DYNNR
              VALUE(F_FIELDNAME_IN)
     CHANGING F_FIELDNAME_OUT
              F_FIELDVALUE.
  DATA: LTAB_FIELDS LIKE DYNPREAD OCCURS 0 WITH HEADER LINE.
  DATA: LC_DYNAME LIKE SY-REPID.
  DATA: LC_DYNUMB LIKE SY-DYNNR.
  DATA: LC_DUMMY(1) TYPE C.
*-- Read the screen to see if the user has entered a value for WERKS
  LTAB_FIELDS-FIELDNAME = F_FIELDNAME_IN.
  append ltab_fields.
  LC_DYNAME = F_REPID.
  LC_DYNUMB = F_DYNNR.
  CALL FUNCTION 'DYNP_VALUES_READ'
       EXPORTING
            DYNAME     = LC_DYNAME
            DYNUMB     = LC_DYNUMB
       TABLES
            dynpfields = ltab_fields
       EXCEPTIONS
            OTHERS     = 01.
  read table ltab_fields index 1.
*-- Return the value from the screen
  IF SY-SUBRC EQ 0.
    SPLIT LTAB_FIELDS-FIELDNAME AT '-'
          INTO LC_DUMMY
          F_FIELDNAME_OUT.
    F_FIELDVALUE = LTAB_FIELDS-FIELDVALUE.
  ENDIF.
ENDFORM.           " READ_VALUE_FROM_SCREEN
      FORM UPDATE_VALUE_ON_SCREEN               *
      The PROCESS ON VALUE-REQUEST does not always return blanks.   *
      If a blank value is to be returned, this routine must be      *
      called.
-->  F_REPID               *
-->  F_DYNNR               *
-->  VALUE(F_FIELDNAME)    *
-->  F_FIELDVALUE          *
FORM UPDATE_VALUE_ON_SCREEN USING F_REPID F_DYNNR VALUE(F_FIELDNAME) F_FIELDVALUE.
DATA: LTAB_FIELDS LIKE DYNPREAD OCCURS 0 WITH HEADER LINE.
DATA: LC_DYNAME LIKE SY-REPID.
DATA: LC_DYNUMB LIKE SY-DYNNR.
LC_DYNAME = SY-REPID.
LC_DYNUMB = SY-DYNNR.
LTAB_FIELDS-FIELDNAME = F_FIELDNAME.
LTAB_FIELDS-FIELDVALUE = F_FIELDVALUE.
APPEND LTAB_FIELDS.
CALL FUNCTION 'DYNP_VALUES_UPDATE'
EXPORTING DYNAME = LC_DYNAME
          DYNUMB = LC_DYNUMB
TABLES DYNPFIELDS = LTAB_FIELDS
EXCEPTIONS OTHERS = 8.
ENDFORM. " UPDATE_VALUE_ON_SCREEN
regards
vinod

Similar Messages

  • Tabular form (select list Query based LOV)

    Hi all,
    I have this situation:
    a tabular form with two "select list (query based LOV)" fields.
    The first one must affect elements in the second one. And so the second query based LOV field should has a "where attr1 = first_list_selected_value" in the query.
    Is this possible ? Could you show me some advices ?
    thanks in advance.

    OK, thank you.
    But maybe I wasn't too clear.
    I need cascading LOV for each row of my tabular form.
    I have a EMP tabular form
    select
    "ROWID",
    "EMPNO",
    "ENAME",
    "JOB",
    "MGR",
    "HIREDATE",
    "SAL",
    "COMM",
    "DEPTNO"
    from "#OWNER#"."EMP" I need a Select List for DEPTNO for each record of table. After set a value, the second "Select List" for ENAME should be affected automatically.

  • How to make Multi Select Picklist Field Required Based on another field

    Hi,
    I want to make one filed which is Multi select Required(mandatory) based on certain value in another filed.
    I tried putting IIf([<FieldNAme>]> 1000 AND [<FiledNAme1>] IS NULL,"Invalid",[<FieldNAme>]) in the Field validatation as but it is not working.
    Please suggest any workaround available.
    Warm Regards
    Pramod
    Edited by: user11361975 on Jun 3, 2011 5:03 AM

    I guess FieldName1 is the multiselect picklist you are referring to?
    Where did you get the ITAG from? I don't see any multiselect picklists available in Expression Builder. I doubt whether you can set validations on multi select picklists at all.
    If anyone has achieved this please let me know as well.
    Regards,
    Udaya

  • Why do I have to select "continue allowing" every time I visit certain sites in order to be able to type into flash based form fields?

    Why do I have to select "continue allowing" every time I visit certain sites in order to be able to type into flash based form fields?
    See attached image for reference to what button I am referring to. Until i hit the "continue allowing" button I can not type into the form fields. I have tried removing and reinstalling flash. refreshing firefox, and clearing cache and cookies, and deleting the permissions.sqlite file. Nothing has worked. This issue just started happening a few days ago. Please let me know what I might be able to do to fix this.

    That full page including the form is a Flash object.
    I didn't see this doorhanger opening when I tried the URL in a new profile.
    Did you previously created an exception or is the default selected if you check the permissions for the Flash plugin?
    You can inspect and manage the permissions for the domain in the currently selected tab:
    *Click the "[[Site Identity Button|Site Identity Button]]" (globe/padlock) on the location/address bar
    *Click "More Information" to open "Tools > Page Info" with the Security tab selected
    You can go to the Permissions tab (Tools > Page Info > Permissions)
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Select MULTIPLE default values for a multiple selection list box based on another field in Infopath 2010

    Hello there - Before I explain my issue, I would like to point out that I have reviewed some other discussions on selecting default values for multiple selection listbox. But my issue is specific and different, and not answered by any of the discussions
    I visited.
    I have a multiple selection list box (say for example all countries in the world as values), and I would like to pre-select or setup multiple default values (say five countries) based on some criteria that I query from MS SQL database table.
    I know we can go to Data | Default Values option to setup one or many default values for multiple selection list box. When I enter the default values manually this works. I also right click the field under the Multiple-Selection List Box group, then select
    Add another Value Below and set the Default Value for this field to setup multiple default values.
    However, if I reference a field (either an infopath field or a field from SQL database) I am not able to setup multiple default values. Infopath automatically selects the last field I selected for all instances and in the end I am able to see only one
    default value selected instead of many. How to fix this problem? Why would infopath allow multiple default values when we enter it manually but not when we reference some fields?
    Please let me know if you need more info. Appreciate your help.
    Thanks!

    Hi redhotc,
    According to your description, my understanding is that you want to set multiple default values for a multiple checkbox list in InfoPath form.
    I did a test with SQL database table. I set three default values for the checkbox list by adding three values field under the group field(Data->Default values), each value field is for a default value. Then publish it to my SharePoint site, everything
    was fine.Please have a try as the below link:
    http://www.bizsupportonline.net/infopath2010/pre-select-items-multiple-selection-list-box-infopath-2010.htm
    Note: if you are using SQL databse table, you may need to enable ‘Allow cross-domain data access for user form templates that use connection settings in a data connection file’ in CA. More information, please refer to:
    http://answers.flyppdevportal.com/categories/sharepoint2010/sharepoint2010customization.aspx?ID=418b9423-a96c-4e5e-91f9-6a1b010ebb69
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Form Personalization - Make field required based on LOV selection

    Newbie here.
    I am trying to make a field required based on the selection of the LOV that is next to it. Having a heck of a time with it.
    The form i am working on is the Sub Invenntory form that you get to via Organization Items. We want the subinvnetory field to be manditory when subinv is selected from the LOV in the sources tab.
    here is what i have so far:
    CONDITION
    Trigger Event: WHEN-VALIDATE-RECORD
    Trigger Obj: ITEM_SUBINVENTORIES
    Condition: ${item.item_subinventories.SOURCE_TYPE.value} = 3
    Action
    Type: Property
    Object Type: Item
    Target Object: ITEM_SUBINVENTORIES.SOURCE_SUBINVENTORY
    Property Name: REQUIRED
    Value: TRUE
    The problem seems to be that i can't get the field to be required. It shows up yellow but still allows me to save w/ the field being blank.

    I do not know about the particular form that you are trying to personalize, but whenever I have created a condition, it has usually been in the following syntax:
    :BLOCK_NAME.FIELD_NAME = 'VALUE'
    For example, :MTL_SYSTEM_ITEMS.PRIMARY_UNIT_OF_MEASURE_MIR = 'SEAT'
    Yours seems to be very much different from mine, but then again, I am not technical so I cannot comment intelligently on that aspect.
    May be that is the problem.
    Also, once you get it to work, you might want to also add a condition where the field is turned to un-required when the SOURCE_TYPE is NOT 3.

  • How to show valid field items based on previous selected field

    I am trying to use BC Web Apps to help my customers find products for their specific motor vehicle.
    By selecting the vehicle make and then the model. e.g. Chevrolet and then Camaro.
    This will then bring up a table with all the cosponsoring equipment part numbers.
    At the moment the closest I can get is two dropdown lists one with all the vehicle makes and another with every vehicle model.
    If I select Chevrolet I only want to see Chevrolet models in the dropdown list.

    Hi 2932464,
    2932464 wrote:
    Hi,
    I have a set of text Field items in oracle apex:
    Order Number
    Revision Number
    When we open the report, revision should be hidden.
    Only when the user enters unique order number (non-duplicate order numbers), revision number should be visible.
    If he enters duplicate order number, revision number should be hidden.
    Please help.
    Giving you example how to achieve this.
    Step 1. Create three Page Items
        1) P1_ORDER_NO - Text Field
        2) P1_REVISION_NO - Text Field
        3) P1_ENABLE_DISABLE_REVNO  - Hidden,Value Protected - No
    2. Create 3 Dynamic Actions
    1) Disable revision number on page load
        Event - Page Load
        Action - Disable
        Fire When Event Result Is  - True
        Selection Type - Item
        Item - P1_REVISION_NO
      2) Check duplicate order number
        Event - Change
        Selection Type - Item(s)
        Item(s) - P1_ORDER_NO
        Condition - is not null
        Action - Execute PL/SQL Code
        Generate opposite false action - Unchecked
        Fire When Event Result Is  - True
        Fire on page load - Unchecked
        Stop Execution On Error - Checked
        Wait for Result - Checked
        PL/SQL Code -
    declare
    l_count number;
    begin
      select count(*) into l_count
        from emp
       where empno = :P1_ORDER_NO;
    if l_count > 0 then
      :P1_ENABLE_DISABLE_REVNO := 1;
    else
      :P1_ENABLE_DISABLE_REVNO := 0;
    end if;
    end;
    Page Items to Submit = P1_ORDER_NO
    Page Items to Return  = P1_ENABLE_DISABLE_REVNO
    3 ) Enable and Disable Revision Number
        Event - Change
        Selection Type - Item(s)
        Item(s) - P1_ENABLE_DISABLE_REVNO
       condition - greater than or equal to
       value  - 1
       Action - Disable
       Fire on Page Laod - Unchecked
       Generate opposite false action - checked
       Selection Type = Item(s)
       Item(s) - P1_REVISION_NO
    Hope this helps you,
    Regards,
    Jitendra
    DER_NO

  • Search Fields value based on the input.

    Hi Experts,
    I was trying to develop a web dynpro with two  input-fields and process the logic based on the input-fields.
    The scenario is,have two Input fields, the value for the first input-field a static search help is assigned and for the second input-field the value are populated on the based of the values selected in the first input-fields.
    so here the values for second input-field depends on the first input-field.
    Please put in your thoughts or suggestion for the scenario.
    Thanks
    Best Regards,
    Lalitkumar.
    Moderator message: wrong forum, please post again in Webdynpro forum.
    Edited by: Thomas Zloch on Jul 9, 2010 1:36 PM

    Please refer the following for achieving the same.
    http://wiki.sdn.sap.com/wiki/display/Snippets/OVSsearchhelp

  • How to create Formula based value field in COPA

    Hi,
    I want to know how to create formula based  value field in COPA
    My Requirement is i want to collect some value in formula based value field and want to use in copa allocation cycle as a tracing
    factor.
    anybody give some light on the same topic or requirement ?
    Thanks
    Nilesh R

    The key figure you are creating in KE2K is not a value field, i.e. you can't post to it and you can't use it in a report. It is a caluculated value that can be used only in assessment and top-down-distribution.
    In Ke2K, enter a name for your key figure, then click on the the white sheet button to create it. Now the formular area is open for input. Input your formular (e.g. VV001 + VV002 - VV003 .... where VVXXX are the technical names of value fields).
    Now click the "check formuar"-button. Then save.
    Before you can use the key figure in assessment, execute TC KEUG.
    Now the key figure is available as any value field in the tracing factor selection of your assessment cycle.
    I hope this made it clearer.
    Regards
    Nikolas

  • How to enable a DFF field if we select the option 'others' inprevious field

    Hi All,
    I have configured the DFF in one of compliance monitoring form. My DFF contains three fields for address.
    1st field - Division number - A table value set is attached.
    2nd field - Street name - Based on the value entered in the division number, the list of streets will be displayed in the LOV. A table value set is attached.
    3rd field- Location - Based on the valued entered in the division number, the list of location will be displayed in the LOV. A table value set is attached.
    The requirement now is, once we receive the Division number from the customer, the user select it from the LOV of 1st field and will check for the street name in the 2nd field. If the correct street name is not available in the LOV, we need to manually type the street name in the 2nd Field. As we are using the LOV, the system is not allowing us to update that field manually.
    Please let me know, is there any other provision to satisfy this requirement.
    Regards,
    Raj.

    Raj,
    Descriptive Flex-Fields (DFF) are a feature of the Oracle Enterprise Business Suite (EBS) and not a feature of Oracle Forms. This forum is for general Oracle Forms questions. Please post your in the General EBS Discussion forum. If you have a general Forms question, by all means, ask it here! ;-)
    Craig...

  • SELECT DISTINCT only on some fields but returning other fields.

    As the thread says I need to select distinct rows with some fields but I need to show the associated data of other columns in the same table.
    Simple Example
    SUPPOSE THE TABLE INFO:
    INFO(ID, NAME, TITLE, NUMBER, TELEPHONE, FAX, DESCRIPTION, TOPIC);
    The table info could have null values in all the columns except for the ID. And there could be the same information for: Name, Title, Number, Telephone, Fax info in a lot of rows.
    With the following statement I get distinct rows based on the name, title, number, telephone, fax and i get assured that the row with name in null is not returned.
    SELECT DISTINCT P.NAME, P.TITLE,P.NUMBER,P.TELEPHONE,P.FAX FROM INFO P WHERE TRIM(P.NAME) IS NOT NULL;
    returns 1400 rows;
    The problem is that I need the DESCRIPTION and TOPIC columns of the 1400 distinct rows.
    I have tried the following, but without sucess because the statement is returning 1350 rows, so there are 50 rows losted:
    SELECT P.NAME, P.TITLE,P.NUMBER,P.TELEPHONE,P.FAX, P.DESCRIPTION,P.TOPIC
    FROM INFO P , (SELECT DISTINCT P.NAME, P.TITLE,P.NUMBER,P.TELEPHONE,P.FAX FROM INFO P WHERE TRIM(P.NAME) IS NOT NULL) R
    WHERE P.NAME= R.NAME AND P.TITLE = R.TITLE AND P.NUMBER = R.NUMBER AND P.TELEPHONE = R.TELEPHONE AND P.FAX = R.FAX;
    Could anybody give me some help?
    pd: Don´t ask why the table has been designed in that way... I'm trying to fix that ¬¬
    Edited by: user6483610 on Sep 1, 2010 6:29 PM

    @Raj Mareddi: I have tried that aproach and it gives the ORA-00979: not a GROUP BY expression
    @PhoenixBai: You put me to think... jajaja i haven't think about it, actually there are more distinct values if I put the DESCRIPTION and TOPIC values in the query and yes I was hoping that the query choose for me... So I think that theres no way, the quality of the data is really bad and I have to deal with it. Thanks anyway!
    By oher hand theres no way to do this thing in Oracle? the aproach of Raj makes sense but the ORA-00979: not a GROUP BY expression says that you must remove the other columns that are not in the group by function.

  • /fre/exc  Selection Exception workbench add new field

    Hi,
    We have a requirement in which new selection criterion needs to be added for tcode /fre/exc. It should be in Selection Identifier.
    The new field required is RP TYPE.
    Based on this new field the filtering should occur when we go to REDETERMINE ALERTS.
    Is there some BADI/User Exit by whcih this can be achieved.
    Or some configuration?
    Please help.

    Hi,
    I think, checkName should not throw an exception at all. The task of this method is to check the name. There are two results: good or bad, which maps pretty well to a boolean return value. You could then pop up a JOptionPane with the error message and ask the user again to enter correct values. Do this in a while loop, until checkName returns true (or the user presses some "cancel" button).
    You should throw an exception only, if a method cannot complete its task. E.g. setWage or setHoursWorked could throw an IllegalArgumentException, when a negative value is given. checkName however can always completely do what it is supposed to do. BTW: perhaps it should also check, whether FName == null and LName == null to avoid a NullPointerException?

  • Making a DFF field mandatory based on another field

    Hello All,
    We have a requirement where in we need to make a DFF field mandatory based on another field.
    example:
    DFF has two fields :
    Filed1 : values 'Email', 'Fax'
    Filed2
    If 'Email' is selected in 'Field1' then Field2 should become mandatory.
    Any inputs on this will be really helpful.
    Thanks & Regards,
    Satya.

    hi kumar3a,
    recently, i spent considerable amount of time wracking my brain on a similar problem. the nearest i came to a solution was when i used a forms personalisation. mind you, forms personalisation will not work directly on the DFF window, so it has to be approached in a roundabout sort of way.
    i got this information from an Oracle Support personnel - MOS Note 1078348.1.
    i would start with the flexfield segment as "not required", and then using Forms Personalization, i would make it "required". i would try to figure out how to establish a condition where the previous 'required' flexfield segment's value is checked to see if this 'not required' segment needs to be made 'required'. in theory, this should solve the issue. i gave up on it because the forms personalisation would need to cover WHEN-VALIDATE trigger event, and we had close to 100 validations going on through other preexisting forms personalisations, which rendered it near impossible to employ this method.
    best regards.

  • Changing value of select list to match report field

    I have an Apex page that has a report region and a form region.
    The report region returns a single row of data from a SQL select. One of the fields returned is a user id (which I translate into a user name using a LOV).
    In the form region, I have a select list containing users (based on the same LOV as above). The form is used to add a new record to a table. I want the select list in the form region to display the same user as displayed in the reports region. I'm adding in the form is based on the user id in the report region.
    How do I do this? Because the form region is adding a new record, and uses the Database field as Source, it always displays the first item in the LOV.
    I tried using computations to override what's in the select list in the form region (by doing a SQL select and getting the same row of data as in the reports region) but this doesn't seem to work. The select list just always defaults to the first user.
    Is there a trick for making one select list match another?

    Cheers - think you're right, using the default will do it. Having a bit of trouble with my SQL select now though...
    This is the SQL I'm was using
    SELECT ASSIGNED_USER_ID FROM REQUEST WHERE REQUEST_ID = 1;
    How do I rewrite this as a PL/SQL function or expression to return the ASSIGNED_USER_ID field as my default (I'm still learning the basics of PL/SQL)?

  • Making a field mandatory based on values in a drop down

    Hi,
    I am new to Javascripting on the Adobe Designer and we have a requirement to make a text field mandatory based on one of the values selected in a drop down list on the same form.
    When I say mandatory I mean we need to prevent the form from being Saved if this text field is not filled - specifically when a value (say "Promotion") is selected on a drop down.
    Please help me with the events under which the script needs to be placed and the scripting commands.
    Thank you!
    Neera

    Hi,
    You can put PPR event on EMAIL field. Catch that event in PFR and put your logic there like:
    if EMAIL is not null then make FORMAT field mandatory (for that u can catch that in PR)
    --Sushant                                                                                                                                                                                                                                                                                                                                                                                                                   

Maybe you are looking for

  • URGENT HELP: Need to reformat an external hard drive for Mac/Win!

    We got a Desk Hammer external hard drive and my hubby chose to format it as Mac Only when it first initialized. We needed it to be formatted for Mac/Win usage. Now we cannot figure otu how to reinitialize and reformat it. It's been years since I mess

  • Ipod not working after Europe trip

    I have a 20GB Ipod with click wheel, purchased in March 2005. I spent two months in Germany this summer. During that time I charged my Ipod several times using a plug adapter. I know that a voltage converter is not needed for the Ipod, as the charger

  • Using NetBeans Java ME Designer for List

    I'm using the Java ME screen Designer in NetBeans. I'd like to create a simple list from which users can select one option. I know how to write code to do it, but how do I do it through the screen designer?

  • Random selectionFailure errors at runtime - SOA 11g

    Hi All I am getting random selectionFailure errors at runtime. I have developed a bpel process and when I try to run this, at runtime I get below error randomly at assign activity. Non Recoverable System Fault : <bpelFault><faultType> <message>0</mes

  • My ipad mini went in to recovery mode, when installing ios 8 HELP!!

    I was trying to install ios 8 when my ipad mini went in to recovery mode. please help!!