F4IF_INT_TABLE_VALUE_REQUEST not returning value with 2 decimals point

hi all,
i use function F4IF_INT_TABLE_VALUE_REQUEST to do search help, the master data in table ZINVEST has field ZNO, with field type CURR , 2 decimals point.
the return table shows 2 decimals point but in display screen it only shows 1 decimal point, pls advice
here's the coding:
DATA : BEGIN OF itab OCCURS 0,
          e_value(20),
         END OF itab.
  DATA: BEGIN OF field_tab OCCURS 0.
          INCLUDE STRUCTURE dfies.
  DATA END OF field_tab.
  DATA : return_tab LIKE ddshretval OCCURS 0 .
      CLEAR field_tab.
      field_tab-fieldname = 'E_VALUE'.
      field_tab-intlen = 17.
      field_tab-outputlen = 17.
      field_tab-decimals = 2.
      field_tab-inttype = 'C'.
      field_tab-scrtext_m = 'Investment No'.
      APPEND field_tab.
      SELECT * FROM ZINVEST.
        CLEAR: itab.
        itab-e_value = ZINVEST-ZNO.
        APPEND itab.
      ENDSELECT.
  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
      retfield        = 'E_VALUE'
      dynprofield     = 'A'
      dynpprog        = sy-cprog
      dynpnr          = sy-dynnr
    TABLES
      value_tab       = itab
      field_tab       = field_tab
      return_tab      = return_tab
    EXCEPTIONS
      parameter_error = 1
      no_values_found = 2
      OTHERS          = 3.

Hi ester,
You shud try this way. Try to use this code.
DATA:  BEGIN OF it_help OCCURS 0,
       zuonr TYPE zvinvoice,
       kunnr TYPE kunnr,
       name  TYPE zvcustname,
       END OF it_help.
SELECT-OPTIONS: p_zuonr FOR bsid-zuonr.
SELECT DISTINCT
         zuonr
         kunnr
  INTO CORRESPONDING FIELDS OF TABLE it_help
  FROM bsid
  WHERE zuonr <> space.
  SORT it_help BY zuonr kunnr.
  DELETE ADJACENT DUPLICATES FROM it_help
  COMPARING zuonr kunnr.
  IF it_help[] IS NOT INITIAL.
    SELECT kunnr
           name1
           name2
    INTO TABLE it_kna1
    FROM kna1
    FOR ALL ENTRIES IN it_help
    WHERE kunnr = it_help-kunnr.
    SORT it_kna1 BY kunnr.
    CLEAR v_tabix.
    SORT it_help BY kunnr.
    LOOP AT it_help.
      v_tabix = sy-tabix.
      READ TABLE it_kna1 WITH KEY kunnr = it_help-kunnr
                                  BINARY SEARCH.
      IF sy-subrc EQ 0.
        CONCATENATE it_kna1-name1 it_kna1-name2 INTO it_help-name  
        SEPARATED BY space.
        MODIFY it_help FROM it_help INDEX v_tabix
                                    TRANSPORTING name.
      ENDIF.
    ENDLOOP.
FORM event_selscr_valreq_for_pzuonr .
***Function module to display the search help for the assignment filed****
  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
      retfield         = 'ZUONR'
      dynpprog         = sy-cprog
      dynpnr           = sy-dynnr
      dynprofield      = 'P_ZUONR'
      window_title     = text-029
      value_org        = 'S'
      callback_program = sy-repid
    TABLES
      value_tab        = it_help
    EXCEPTIONS
      parameter_error  = 1
      no_values_found  = 2
      OTHERS           = 3.
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
Reward if help ful.
Regards
Azad.

Similar Messages

  • The LOV modal window could not return value to the base page

    when practicing the "create1" task in tutorial, met an issue.
    when create an employee, manageName is a messageLovInput and managerID is a messageTextInput.
    The issue is the LOV modal window could not return value to the mangerName, but can return to managerID .
    If I remove the data boud porperties of the managerName (the bc4j porperties of view name-EmpFullVO and view attribute-MgrName), the lov works fine.
    What is the reason?

    James I would suggest to read the LOV topic in OAF developers' guide. Lov mappings are responsible for bringing pop up values to base page in LOV.
    --Mukul                                                                                                                                                                                                                                                                                                                                                   

  • Data type that can hold negetive values with decimals

    Hi all,
    Is there any datatype which can hold negative values with decimals. INT4 can hold negetive values but don't have decimals and type P has decimals but it cannot hold negative values. Please suggest me some datatype for my requirement.
    Thanks in advance,
    Dev.

    Hi,
    Create your Screen field of type DM07M-JVCRP
    Go to Screen painter and change the Screen field type to DM07M-JVCRP
    Since this Accepts Negative values you wont get run time Errors
    Check the below data elements or use Domain CURRV13 " you can find in where used list for more
    Cheerz
    Ram

  • FM F4IF_INT_TABLE_VALUE_REQUEST do not return value in RETURN_TAB

    Hi all,
    I used the FM F4IF_INT_TABLE_VALUE_REQUEST to return the objid and stext and it is showing the search help in the selection screen, however, after i choose a value from the search help, the FM does not return me the value that i have choosen. The following is the code that I had written.
    DATA: lt_retval  TYPE STANDARD TABLE OF ddshretval,
            lwa_retval TYPE ddshretval.
      DATA: lt_field  TYPE STANDARD TABLE OF dfies,
            lwa_field TYPE dfies.
    CONSTANTS: lc_retfield       TYPE dfies-fieldname VALUE 'STEXT',
                           lc_value_org      TYPE c VALUE 'S'.
    lwa_field-fieldname = 'F0001'.
      lwa_field-langu     = sy-langu.
      lwa_field-position  = '1'.
      lwa_field-offset    = '0'.
      lwa_field-domname   = 'HROBJID'.
      lwa_field-rollname  = 'HROBJID'.
      lwa_field-leng      = '8'.
      lwa_field-intlen    = '16'.
      lwa_field-outputlen = '8'.
      lwa_field-datatype  = 'NUMC'.
      lwa_field-inttype   = 'N'.
      lwa_field-precfield = 'HROBJID'.
      lwa_field-headlen   = '8'.
      lwa_field-scrlen1   = '10'.
      lwa_field-scrlen2   = '15'.
      lwa_field-scrlen3   = '20'.
      lwa_field-fieldtext = 'Posting ID'.
      lwa_field-reptext   = 'Posting ID'.
      lwa_field-scrtext_s = 'PostingID'.
      lwa_field-scrtext_m = 'ID'.
      lwa_field-scrtext_l = 'Posting ID'.
    APPEND lwa_field TO lt_field.
      CLEAR lwa_values.
    lwa_field-fieldname = 'F0002'.
      lwa_field-langu     = sy-langu.
      lwa_field-position  = '2'.
      lwa_field-offset    = '16'.
      lwa_field-domname   = 'TEXT40'.
      lwa_field-rollname  = 'STEXT'.
      lwa_field-leng      = '40'.
      lwa_field-intlen    = '80'.
      lwa_field-outputlen = '40'.
      lwa_field-datatype  = 'CHAR'.
      lwa_field-inttype   = 'C'.
      lwa_field-precfield = 'STEXT'.
      lwa_field-headlen   = '40'.
      lwa_field-scrlen1   = '10'.
      lwa_field-scrlen2   = '15'.
      lwa_field-scrlen3   = '20'.
      lwa_field-fieldtext = 'Posting Text'.
      lwa_field-reptext   = 'Posting Text'.
      lwa_field-scrtext_s = 'PostingTxt'.
      lwa_field-scrtext_m = 'Text'.
      lwa_field-scrtext_l = 'Posting Text'.
      lwa_field-lowercase = 'X'.
    APPEND lwa_field TO lt_field.
      CLEAR lwa_values.
      IF lt_values IS NOT INITIAL.
        CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
          EXPORTING
            retfield        = lc_retfield
    *        dynpprog        = sy-repid
    *        dynpnr          = sy-dynnr
    *        dynprofield     = lc_fieldn
            value_org       = lc_value_org
          TABLES
            value_tab       = lt_values
            field_tab       = lt_field
            return_tab      = lt_retval
          EXCEPTIONS
            parameter_error = 1
            no_values_found = 2
            OTHERS          = 3.
        IF sy-subrc EQ 0.
          CLEAR lwa_retval.
          READ TABLE lt_retval INTO lwa_retval INDEX 1.
          IF sy-subrc EQ 0.
            MOVE lwa_retval-fieldval TO s_post-low.
            CLEAR lwa_retval.
          ENDIF.
        ELSE.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
      ENDIF.
    Please assist, thanks so much.
    Edited by: yf wee on Oct 5, 2009 8:11 AM

    Hi,
    Refer this demo code:-
    PARAMETERS : p_belnr TYPE belnr,
                 p_bukrs TYPE bukrs.
    DATA : BEGIN OF itab OCCURS 0,
             belnr TYPE belnr,
           END OF itab.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_belnr.
      PERFORM f4_belnr_help USING p_belnr.
    *&      Form  f4_belnr_help
    *       text
    *      -->P_BELNR text
    FORM f4_belnr_help USING p_belnr.
      SELECT belnr from <db_table> INTO TABLE itab.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield               = 'BELNR' "internal table field
          dynpprog               = 'Z_F4' "program name
          dynpnr                 = '1000' "screen number
          dynprofield            = 'P_BELNR' "screen field name
          value_org              = 'S'
        TABLES
          value_tab              = itab "internal table
        EXCEPTIONS
          PARAMETER_ERROR        = 1
          NO_VALUES_FOUND        = 2
          OTHERS                 = 3.
      IF sy-subrc  0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " f4_belnr_help
    Hope this helps you.
    Regards,
    Tarun

  • Task.getPayload / getPayloadAsElement not returning elements with no values

    I am using BPEL 10.1.3.1.
    So, I have a task payload that has 9 elements. When I retrieve the payload as an element, it only contains those nodes that actually had data. So, if I had an element like <creator/>, this element is not returned when using either of the getPayload methods.
    Is this a bug? or intended functionality? I don't really like this functionality if it is working the way it is intended....
    Input welcome.
    BradW

    Did you find the solution to this problem.
    For my payload the values are null also.
    for(int i=0; i<task.getPayload().getContent().size(); i++){
    XMLElement xMLElement = (XMLElement)task.getPayload().getContent().get(i);
    for(int j=0; j<xMLElement.getChildNodes().getLength(); j++){
    System.out.println("getChildNodes map " +
    xMLElement.getChildNodes().item(j).getAttributes().toString()
    + " values " +xMLElement.getChildNodes().item(j).getNodeValue()
    + " name " + xMLElement.getChildNodes().item(j).getNodeName());
    Any advice would be greatly appeciated

  • WB_RT_GET_JOB_METRICS does not return values

    DB v 10.2.0.2
    OWB repository/client v 10.2.0.3
    A DB function has a call to the Control Center transformation WB_RT_GET_JOB_METRICS to extract and preserve the metadata of number of records inserted/updated/deleted in a DB table.
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    1.
    The control center transformation WB_RT_GET_JOB_METRICS does not return any values when used under the Post-Mapping Process(mapped to the DB function describe above) in a Map.
    The input parameter ;Audit Id' to the Map is passed from a calling Process Flow. The following query is used to retrieve the Audit Id of the Map.,
    SELECT execution_audit_id
    INTO l_audit_id
    FROM ALL_RT_AUDIT_EXECUTIONS
    WHERE parent_execution_audit_id = P_AUDIT_ID;
    And the retrieve l_audit_id is passed to the WB_RT_GET_JOB_METRICS transformation to extract the number of records inserted/deleted/updated with the execution of the map.
    Gurus, please advice if the approach is appropriate to retrieve the number of records inserted/deleted/updated by the execution of the map. If not, any alternate method.
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    2. The control center transformation WB_RT_GET_JOB_METRICS returns values when used in a standalone pl/sql block with the appropriate audit_id.
    Is this because the metadata for the Map execution is complete, whereas in the earlier attempt, the transformation is called within the map using the Post-Mapping process.
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    3. Since the option 1 did not return any value, tried other option of calling/executing a transformation(call the the DB function mentioned earlier) after the Map activity is successful in a ProcessFlow. Here, the transformation does not seem to be executing, any tips of correcting this issue.
    Request the forum for some helpful tips to resolve the problem. TiA (Thanks in Advance) for the response.
    Message was edited by:
    user599655

    In a process flow, passed the pseudo variable to a transformation to run the WB_RT_GET_JOB_METRICS after the map execution. I am not sure if this is the best solution, but it worked for me.
    Still trying to figure how to use the pre-defined transformation when working on expression.
    Thanks.

  • [Solved] ADF - Update does not return values generated by a trigger

    Hello,
    I'm using JDev 10.1.3.3.0 and DB 10.2.0.3.0.
    On DB I've created a table, a sequence and a trigger:
    CREATE TABLE TAB1
         ID          NUMBER          PRIMARY KEY,
         EDITED_AT     DATE,
         VALUE          VARCHAR2(64)
    CREATE SEQUENCE S_TAB1
         INCREMENT BY 1
         START WITH 1;
    CREATE TRIGGER T_TAB1_BIE
    BEFORE INSERT OR UPDATE ON TAB1
    FOR EACH ROW
    BEGIN
         IF INSERTING THEN
              SELECT S_TAB1.NEXTVAL INTO :NEW.ID FROM DUAL;
         END IF;
         :NEW.EDITED_AT := SYSDATE;
    END;
    /In JDev I've created an EO - Tab1, a VO - Tab1View and an AppModule.
    In the EO Tab1 I have checked "Refresh After Insert" and "Refresh After Update" for Id and Edited_By attributes. I made the latter two attribures as "Never" updatable.
    Then I test the AppModule with a JDev Tester (I use a connection which connects as an owner of the 3 objects above).
    Then I insert a new row and enter a value into the Value field in the Tester. When I press Commit button everything works great - Id and Edited_By attributes get populated with values generated by the trigger.
    But when I try to update the Value field and press Commit the Edited_By field does not retreives new value that was generated by the trigger.
    Why does this happens?
    Many thanks in advance.
    Yerzhan.

    Frank,
    I tried to set Refresh option on both, Value and Edited_At, fields but unsuccessfully.
    Then I tried to do the following in SQL Plus:
    SQL> insert into tab1(value) values('ddd');
    1 row created.
    SQL> commit;
    Commit complete.
    SQL>
    SQL> select * from tab1;
            ID EDITED_AT           VALUE
             1 27.03.2008 17:01:24 ddd
    SQL>
    SQL> declare dt date; val varchar2(64);
      2  begin update tab1 set value = 'ddd' where id = 1 returning edited_at, value into dt, val;
      3  dbms_output.put_line('txt = ' || dt || ', ' || val);
      4  end;
      5  /
    txt = 27.03.2008 17:01:24, ddd
    PL/SQL procedure successfully completed.
    SQL>
    SQL> select * from tab1;
            ID EDITED_AT           VALUE
             1 27.03.2008 17:02:12 ddd
    SQL>As it can be seen Returning clause of an Update statement does not return a new date, i.e. 27.03.2008 17:02:12, that was updated by the trigger, it returns an old one - 27.03.2008 17:01:24.
    Frank, maybe the issue is in the Oracle DB?

  • Rendered=false column is not returning value in simpleSearch Query Region.

    Hi Guru's,
    I have a simpleSearchPanel with two search columns Order Number (Rendered=true, i.e Visible to User in the form) and Order Id(Rendered=False, i.e Non visible to User in the form) which are getting values from LOV. The LOV selection Order Number and Order Id are getting values and Order Number column is rendered true(visible) query able to return the values, but Order Id is not getting values because Rendered=False/Not visible Field.
    Unfortunately i can't make OrderId filed as "formValue" because of simpleSearchPanel (autoCustoomizationCritirea) query region.
    I appreciate your help.
    Regards
    Pathi

    its not the problem with simpleSearchPanel, it is the messageComponentLayout within simpleSearchPanel which is restricting the formValue.
    just change the region style to defaultDoubleColumn and create the formValue into it.
    This should solve your problem..
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Oralce Store Procedure not returning values in out parameters

    I am goig to execute an oracle store procedure using C# through through ODP.NET. The store procedure executes succsfully but it does not return any value in the out parameter.
    When I execute the same store procedure with the same input parameteres from within SQL*Plus. It does return values.
    This is to be clearify here that in the oracle store procedure the data type for the out parameter is number and in the c# the variavle that will hold its value is Integer. I also tried using Long on the C# side but it is still not working. After the successfull execution of the store procedure the C# variable contains nulll value.

    I am goig to execute an oracle store procedure using C# through through ODP.NET. The store procedure executes succsfully but it does not return any value in the out parameter.
    When I execute the same store procedure with the same input parameteres from within SQL*Plus. It does return values.
    This is to be clearify here that in the oracle store procedure the data type for the out parameter is number and in the c# the variavle that will hold its value is Integer. I also tried using Long on the C# side but it is still not working. After the successfull execution of the store procedure the C# variable contains nulll value.

  • LOV does not return value to the base page sometimes

    Hi,
    I have created messageLOV type items. These LOVs do return value to the base page usually. We have a user in Uruguay who is trying to use the page which has the LOVs. He says the LOV takes a long time to return to the main page after he clicks on quick select and also the value does not get populated in the main page.
    We have not been facing any such problem here in India. The LOV has been tested rigorously with no issues as such.
    Can you please suggest a reason why such a problem is occuring? Expecting your replies soon
    Thanks,
    Priya

    Thiyaga, did you read the devguide or the tutorial ?
    Can you please give me the inputs about the creation of LOV and it requires how many lov mappings as mandatory?
    This is there in the devguideHow to identify the mapping fields of an LOV which is already existing in the base page to reproduce in a similar way and need to do a customization on top of it ?
    Open the page XML and you can find the LOV mappings.Tapash

  • Bulk editor is not returning values for default properties

    ..even though the content nodes have a value for this property. CQ version is 5.5.
    I need to export a report of all user generated content from /content/usergenerated/content/<sitename>/en. This is the root path.
    The query parameter I have specified is "type:Rating". By default the "sling:resourceType" is selected. No other custom properties are specified in the interface.
    The search returns the nodes of this type, but the results do not return a value for the "sling:resourceType" for these nodes.

    It should work. Might be you do not have data. Is the results shown as zero records?

  • ITicker getColumnValue() - Not returning Values

    Hi All,
    I'm on SAP MII 14.0 SP5 web application which is migrated from xMII 11.5.
    In xMII 11.5, the iTicker method - String getColumnValue(int nIndex, String sColumnName)'' is returning appropriate values for all the columns of record set fetched by query template.
    But in MII 14 (and MII 12.2 also), this method returns values for only 1st column which selected for display.
    For example, if my query template returning record-set with 3 columns as follows -
    Col1
    Col2
    Col3
    sam
    67
    temp-88
    daniel
    56
    temp-87
    Mike
    54
    temp-89
    Then output of <iTicker>.getColumnValue() is -
    Output
    xMII 11.5
    MII 14
    <iTickerObj>.getColumnValue(1, "Col1")
    sam
    sam
    <iTickerObj>.getColumnValue(2, "Col1")
    daniel
    daniel
    <iTickerObj>.getColumnValue(3, "Col1")
    Mike
    Mike
    <iTickerObj>.getColumnValue(1, "Col2")
    67
    <no value>
    <iTickerObj>.getColumnValue(2, "Col2")
    56
    <no value>
    <iTickerObj>.getColumnValue(3, "Col2")
    54
    <no value>
    <iTickerObj>.getColumnValue(1, "Col3")
    temp-88
    <no value>
    <iTickerObj>.getColumnValue(2, "Col3")
    temp-87
    <no value>
    <iTickerObj>.getColumnValue(3, "Col3")
    temp-89
    <no value>
    Is there any other method in MII 14 to fetch values or is there issue with iTicker method in MII 14 ?
    Appreciate your help.
    Thanks,
    Sumit

    Hi,
    Your method calls are correct. This looks to be an issue with iTicker. Please raise a support ticket with SAP for this issue.
    Regards,
    Anushree

  • Function not returning value in Discoverer report

    Hi All,
    I am using a PL/SQL function in a Discoverer Report to return a particular date. The way I am using is that I have created a PL/SQL function and registered the same in Discoverer Administatrator.
    My problem is that when i run the report this function returns NULL for one particular unit but when i run the same on toad as
    'select max_term_dt_pkg.max_term_dt_fn('703813','OM - AWAITING_SHIPPING - 1179628') from dual'
    it returns the date as 26-May-2009
    Actually it should return a value in the report also.
    Can anyone guide me what could be the problem.
    Regards,
    Shruti

    Hi Rod,
    There are no session variables to be set. I have myself created that and it is returning values for other units also.
    Below is the function :
    CREATE OR REPLACE PACKAGE BODY APPS.max_term_dt_pkg
    AS
    FUNCTION max_term_dt_fn (p_unit_num VARCHAR2, p_order_status VARCHAR2)
    RETURN DATE
    IS
    l_contract_number VARCHAR2 (20);
    --okc_k_headers_b.contract_number%TYPE;
    l_max_term_date DATE; --okc_k_lines_b.date_terminated%TYPE;
    BEGIN
    IF p_order_status IN ('RMA on Unit', 'OKS 30 Days Notice Given')
    THEN
    l_max_term_date := NULL;
    ELSE
    SELECT contract_number
    INTO l_contract_number
    FROM (SELECT DISTINCT okhb.sts_code, okhb.date_terminated,
    okhb.contract_number,
    oklb_ib.attribute15 unit, okhb.start_date,
    okhb.end_date, okhb.creation_date
    FROM apps.okc_k_headers_b okhb,
    apps.okc_k_lines_b oklb_ib --,
    WHERE okhb.ID = oklb_ib.dnz_chr_id
    AND lse_id = 9
    AND oklb_ib.attribute15 = p_unit_num
    ORDER BY okhb.start_date DESC,
    okhb.creation_date DESC)
    --ORDER BY okhb.start_date DESC)
    WHERE ROWNUM = 1;
    SELECT date_terminated
    INTO l_max_term_date
    FROM (SELECT oklb.dnz_chr_id, oklb.ID, oklb.date_terminated,
    oklb.sts_code, mic.category_concat_segs,
    mic.category_set_name
    FROM apps.okc_k_headers_b okhb,
    apps.okc_k_lines_b oklb,
    apps.okc_k_items oki,
    --apps.mtl_system_items_b msib,
    mtl_item_categories_v mic
    WHERE oklb.dnz_chr_id = okhb.ID
    AND okhb.contract_number = l_contract_number
    AND oklb.lse_id = 1
    AND oki.cle_id = oklb.ID
    -- AND msib.inventory_item_id = oki.object1_id1
    -- AND msib.organization_id = oki.object1_id2
    --AND segment1 = 'OKS-RNTL-MAINT-WH'
    --AND oklb.sts_code = 'TERMINATED'
    AND oklb.date_terminated IS NOT NULL
    AND mic.inventory_item_id = oki.object1_id1
    --msib.inventory_item_id
    AND mic.organization_id = oki.object1_id2
    --msib.organization_id
    AND mic.category_set_name = 'Product'
    AND mic.category_concat_segs = 'OKS-Base'
    ORDER BY oklb.date_terminated DESC)
    WHERE ROWNUM = 1;
    END IF;
    RETURN l_max_term_date;
    EXCEPTION
    WHEN NO_DATA_FOUND
    THEN
    RETURN NULL;
    WHEN OTHERS
    THEN
    RETURN NULL;
    END;
    END;
    Regards,
    Shruti

  • List Manager based on LOV returning values with missing spaces

    I am using a list manager based on a pop up lov, in this case it is a list of supplier names. When the pop-up list is shown the values are displayed as expected, with all spaces intact. When I click the supplier name, and then click Add to add to the list manager, all spaces in the supplier name are lost.
    The field I'm pulling is a varchar2 in the db. Here's the sql behind the lov:
    select '(All Suppliers)' d, '(All Suppliers)' r from rep_gy_spend
    union
    select distinct supplier_name d, supplier_name r
    from rep_gy_spend
    order by 1
    Any ideas on why the spaces are lost?

    DJ - There is a javascript function on the page that does that. View page source and you'll see it. You could override it with your own and change that behavior and you could prevent it from upper-casing the returned values as well by using different onclick javascript on the add button.
    Scott

  • LOV not return values more than certain limit

    Hi Guys,
    I have created 2 search fields (State, Area) in report page. Both of them are LOVs based. User select first field value, next field's LOV return values based on the first field( AJAX call). First field is states like 'VIC', 'NSW', 'SA' etc..., next field is 'Area'. when I select state other than 'NSW' in state field then next field is populated successfully. But when I select state as 'NSW' then next field is blank. 'NSW' state has records more than 100 in the table(LOV based on), but all other states have even less than 10 records. when I remove (more than 50) records of 'NSW' in the table then It works.
    Can anybody know if there is a limit of LOV that can be supported?

    Thanks Varad for reply.
    As you suggested to change gReturn = get.get('XML') to gReturn = get.get() for text values, But it is not simple as you said.
    I have found the problem. Actualy, there are some special characters in database column that suppose to return in LOV. But LOV is returned as xml object that may not support special characters (&,$, % etc...). I have put the 'replace' function in query. My query is like
    select replace(name,'&','and') d, id r
    from table1
    where val1 = :P2_val
    order by 1
    This query works in SQL WORKSHOP but not in AJAX. Any Idea? If I have to replace get.get('XML') to get.get() then what other steps I have to perform?

Maybe you are looking for