Dynamci Query Result View - New Field with domain values

Hi,
I added to the result list a new field (using an append structure). Than I added it to the layout. This field contains a number, which will be translated into text by domain values. But in my result view only the number will be displayed. Any idea how I can display the text instead of the ID?
Thanks in advance Paul.

Hi Paul,
You can display the domain text by fetching it in the corresponding GETTER method. The GETTER will be sending the ID; you can add extra code to fetch the corresponding text ID in the getter and return this in rv_value.
Regards,
Shiromani

Similar Messages

  • Adding new field with constant value for pre-existing records

    Hi,
    I have to introduce in different tables (ztable and standard one) a new field, containing the company code. The problem is that all the records already inserted in these tables should be filled with a particular company code ('DD01').
    I'd like to have this field automatically filled with a constant value without having to develop a program in order to update all the preexisting data. The reason is that cardinality of these tables is aroud 100 Millions of rec....
    Ideal solution should be to have some rule/routine defined in the data dictionary CR, so to get the field value during the import of the related CR.
    I've seen that is possible to define routine, but only for maintainance view (so new records..). If I open the db view, the situation is the following (example):
    Campi di ZKR_CRPU  
    Nm.campo Pos. Tp. dati Lngh. Decimali Not null Default
    MANDT 1 VARCHAR 3   X '000'
    ZZKDATANNO 2 VARCHAR 4   X '0000'
    ZZKDATMESE 3 VARCHAR 2   X '00'
    ZZKCODZONA 4 VARCHAR 3   X ' '
    ZZKDCODCTDIS 5 VARCHAR 6   X ' '
    ZZKCRPU 6 DECIMAL 10 9 X 0
    Is it possible to change the default value? is there a solution to my problem without developing a tool just for updating a field? I can also define a custom data element if the problem can be solved.
    Thanks a lot,
    Gabriele

    Hi!
    If I were you, I will not look for another solution, because it's pretty easy task for ABAP.
    It can be solved within 1 line:
    UPDATE ztable SET zzcompany = 'DD01' WHERE zzcompany = ''.
    Regards
    Tamá

  • Options to control display performance of CLOBs, etc. in Query Result view?

    Whenever I attempt to query a table that contains LOBs (e.g. a CLOB or XMLTYPE), the lack of performance pretty much makes the "Query Result" view (from F9) unusable. Any time I attempt to scroll the results, SQL developer apparently continues to query the database for the additional characters to populate the view.
    Resizing the columns containing the LOB to only a few characters almost solves the issue. Unfortunately, the size of the columns showing the LOBs apparently attempt to resize to the length of the LOB, making the column several pages long - and the same performance issue prevents resizing it smaller.
    Ideally, there would be some way to resize a column to a given or even a predefined and small size, without having to drag the resize handle the entire width of the desired resize amount. Alternatively, there could be a user preference to never set default column widths above a given number of pixels or characters. Another option would be a user preference to disable the in-line display of LOB contents, displaying only and requiring a click on the "..." (or pencil icon) button to open the "View Value" dialog. Ideally, all 3 of these options could be implemented.
    One crude work-around I'm using for now is to exclude the LOB columns from the results, requiring me to make secondary queries to see the LOB contents when necessary, and doesn't allow for scrolling through and viewing the LOB contents at all. Another work-around is to run the query as a script (F5) instead of a query (F9), and view the results in the "Script Output" view instead.
    I'm currently using SQL Developer 2.1.0.63, but experienced this same issue with all previous versions, including 1.5.5.
    Thanks!

    I agree.
    When I requested to auto-width the columns, I said to build in a maximum, but apparently they didn't.
    I suggest you log 2 feature requests on the SQL Developer Exchange; 1 for the maximum width, 1 for the CLOB contents/performance. Like this others can vote too and add weight for future implementation (I will).
    Have fun,
    K.

  • Show query results in new tabs - preference

    I am presently in Build MAIN-12.84.
    Setting this preference: "Show query results in new tabs" either on or off gives the same result when executing for instance 3 queries at once.
    1. execution 3 result tabs, 2. execution, 6 result tabs ....
    And that also happens even if I set the preference to OFF ! surely not the intended behaviour?
    best regards Inger

    Hi KK
    For this to work unit must be a characteristic that is stored in the infoprovider
    Try creating a structure in the rows with 3 RKF, drag in the unit characteristic a restrict to the following:
    1. Unit restricted to KG
    2. Unit restricted to LB
    3. Unit restricted to EA
    Then under the RKF include the material characteristic, this will give a break down of material by the above unit types.
    Then in the columns include quantity.
    Hope this helps
    Josh

  • How to view complete date stamp in query result view in sql developer?

    Hi,
    In the query result, the date present in db is shown as DD-MM-YYYY format but I want to view the complete date stamp. When I view the same data in aqua data studio, I see the complete time stamp. Please let me know if I need to do some settings in Oracle SQL Developer so that complete date is shown?
    How to view complete date stamp in query result view in sql developer?
    Thanks in advance,
    Vineet

    864793 wrote:
    Hi,
    In the query result, the date present in db is shown as DD-MM-YYYY format but I want to view the complete date stamp. When I view the same data in aqua data studio, I see the complete time stamp. Please let me know if I need to do some settings in Oracle SQL Developer so that complete date is shown?
    How to view complete date stamp in query result view in sql developer?
    Thanks in advance,
    VineetAlternatively you can execute below
    set nls_date_format='DD-MM-YYYY HH24:MI:SS';Regards,
    Achyut K

  • Query result is not match with selection

    Dear experts
    I have a infoobject X which have attribute Y
    In my query, I use infocube and I set X and Y as selection
    When I run the query, if I fill Y with 1 value, and X with 10 values,
    Only 1 value of X appear in the result of the report (Not 10 values like selection)
    But  if I don’t fill Y and fill X with 10 values,
    10 values of X appear in the result of the report (correct)
    and also if I fill Y with 1 value and fill X with 9 values,
    9 values of X appear in the result of the report (correct)
    So why if I fill Y with 1 value, and X with 10 values,
    Only 1 value of X appear in the result of the report ?
    Is there any limited of selection query which use infocube ?
    Because, if I use ODS in my query, there’s ok
    really appreciate your help
    Regards
    Jeiming

    hi
    To get you values as required , Set X and Y
    Infoobject  X
    Attribute   Y
    Your selection, X --?
                           y -?
    The report is correct in all your scenarios
    When you fill some values of X, the query will fetch all the values available
    But Y is attribute so when you select for X and Y, the query will search for that combination of X and Y only
    Assign points if useful
    Thanks
    N Ganesh

  • Populated the new field with historic data

    HI,
    I have a data for 2 years now I am enhancing the data source how can I populated the new field with historic data.Is it by
    1)deleting all the data in BW side and the doing an init then setting up a regular delta
    2)running a repair full request with selection condition.
    or is there any other option available? which is the best scenario to load these historic data?
    Regards,
    Ravi

    Hi,
    I think your datasource is already in production, and you want to data only from today onwards for enhanced fields, i.e. historical data is not required for enhanced fields..
    1.Fix ECC down time for 20 to 30 munities
    2. Keep all objects on Qty system in ECC and BW.
    3.Run Delta laods in BW for 2 to 3 times.So with this step you can clear SMQ1 and RSA7. Check the entries in RSA7, if it is ZERO then it is fine.
    4. Move DS from ECC Qty to ECC PROD .
    5. Replicate in BW.
    6. Move all BW objects from BW Qty to BW Prod.
    7. Delete Init load in InfoPackage level (Not in ODS/CUbe).
    8.Load Init without DataTransfer.
    9.Then Run Delta.
    10. Next day on wards deltas will come as usual.
    If you need Historical data also.
    1.Delete data in Cube.
    2.Fix Down Time and load Init then Delta.
    Check
    SAP Note 328181 - Changes to extraction structures inCustomizing Cockpit
    Thanks
    Reddy

  • Call transaction in new session with the value at hotspot

    Hi all,
    As a hotspot functionality I would like to open a new transaction in a new session with the value at hotspot. For that reason, I am using the FM ABAP4_CALL_TRANSACTION with the option STARTING NEW TASK.
    This FM is not working because Parameter ID is not Maintained for the field (Hotspoted). So no value is passing to new transaction.
    Please suggest any other way to implement this.
    Thanks

    Hi Anil..
    This is the Solution for ur Requirement.   try this program and change as per ur need.
    REPORT  ZSEL_CALL_TCODE.
    data : IT_KNA1 TYPE TABLE OF KNA1 WITH HEADER LINE.
    DATA : IT_SPA TYPE TABLE OF RFC_SPAGPA WITH HEADER LINE.
    SELECT * FROM KNA1 INTO TABLE IT_KNA1 .
    LOOP AT IT_KNA1 .
      WRITE:/ IT_KNA1-KUNNR HOTSPOT ON.
      HIDE IT_KNA1-KUNNR .
    ENDLOOP.
    CLEAR IT_KNA1-KUNNR.
    AT LINE-SELECTION.
    CASE SY-LSIND.
    WHEN 1.
    IF IT_KNA1-KUNNR IS NOT INITIAL.
    REFRESH IT_SPA.
    IT_SPA-PARID = 'KUN'.
    IT_SPA-PARVAL = IT_KNA1-KUNNR.
    APPEND IT_SPA.
      CALL FUNCTION 'ABAP4_CALL_TRANSACTION' STARTING NEW TASK 'S1'
        EXPORTING
          TCODE                         = 'XD02'
         SKIP_SCREEN                   = ' '
        MODE_VAL                      = 'A'
        UPDATE_VAL                    = 'A'
      IMPORTING
        SUBRC                         =
       TABLES
        USING_TAB                     =
         SPAGPA_TAB                    = IT_SPA
        MESS_TAB                      =
      EXCEPTIONS
        CALL_TRANSACTION_DENIED       = 1
        TCODE_INVALID                 = 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.
      ENDIF.
    ENDCASE.
    <b>Reward if Helpful.</b>

  • Mass changes of Material Master field with different values

    Hi,
    How to change a field in Material Master for more than thousand materials. I think MM17 can only be used for mass changes of materials with same values. I need to upload different values for different materials. Is there any other way to do this.
    Thanks,
    K R Vishnu Kumar

    Hi Kumar.
    I think you have to use LSMW for mass updation for Material Master fields with different values.
    Regards,
    Rahul.

  • FormsCentral - design form : Initialize form field with default value

    Hello,
              My customer asks me to initialize text fields with default values. Example , Name , email , phone number etc to be displayed by default till it is overwritten by values entered. Could you please guide me how to achieve this ?
    Many Thanks,
    Sree

    Hi,
    see Re: sequencing problem-Forms
    Regards Michael

  • Initializu00EDng select options field with default values and with NO INTERVALS

    Dear All,
    I have used WDR_SELECT_OPTIONS technology within WD Abap.
    I also have added the fields which have to be taken into consideration.
    lt_range_table =
    wd_this->m_handler->create_range_table(
    i_typename = 'PLANT' ).
    wd_this->m_handler->add_selection_field(
    i_id = 'PLANT'
    it_result = lt_range_table
    i_read_only = read_only ).
    Can I assign two values to this field 'PLANT' whereby the user may take only these values.
    I mean kind of pre initializíng of this select options field with default values.
    Due to this handling it should be prevented that the user can give other values
    except this values.
    Additonally it should be fine whether it is possible to disable the second input field
    of this select options field like NO INTERVALS .
    Regard
    sas
    Regard
    sas

    wd_this->m_handler->add_selection_field(
    i_id = 'PLANT'
    it_result = lt_range_table
    I_NO_INTERVALS = 'X'
    i_read_only = read_only ).
    Pls check 'WDR_TEST_SELECT_OPTIONS' web dynpro component

  • Records with a picklist field with empty values can't be seen from a report

    Records with a picklist field with empty values can't be seen from a report. I've created a report that have a picklist as a column. When there is no values the record(s) associated to this picklist don't appear. Do you know what are the common causes for this event?
    Regards
    Arturo

    Hi samrat chakraborty ,
    go to SUIM > roles > roles by complexselection criteria>
    under the selection according to authorization values give the object's  form SU53 screen and press enter it will asks the values for given object pass the values as per the SU53 and execute it will give the list of roles.... capture the roles. The user gets access if you give the any one of the listed roles is assigned, assign the role as per your approval process.
    Check with the below link for more assistence:
    http://help.sap.com/saphelp_erp2004/helpdata/EN/71/8fba30840c6e4d90da3526971cc684/frameset.htm
    Regards,
    S.Manu.

  • How to bring fields with no values into workbook..?

    Hi Gurus,
    We have a query, which is filtered with some 60 GL Accounts. Some of these GL account has no values or activity since long back. But we need to display it in the report for some reasons. Since it doesnu2019t have any value, its not coming up in the report. Only the accounts with values are coming up.
    Is there any way I can bring these accounts in the report with 0 as values...? Any help is highly appreciated.
    Thanks
    Uan

    Hi,
    there are two ways:
    1) first you update in the infocube all values from gl_account.
    => your data volume grown up very much.
    2) in the query you create a structure with all values from gl_account.
    Sven

  • [svn:osmf:] 14599: Fix for FM-477 (DVR: Negative duration when publishing a new video with endoffsset value).

    Revision: 14599
    Revision: 14599
    Author:   [email protected]
    Date:     2010-03-05 07:38:39 -0800 (Fri, 05 Mar 2010)
    Log Message:
    Fix for FM-477 (DVR: Negative duration when publishing a new video with endoffsset value).
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FM-477
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/net/dvr/DVRCastDVRTrait.as
        osmf/trunk/framework/OSMF/org/osmf/net/dvr/DVRCastTimeTrait.as

  • Export query results to flat file with dynamic filename

    Hi
    Can anybody can point me how to dynamic export query serults set to for example txt file using process flows in OWB.
    Let say I have simple select query
    select * from table1 where daterange >= sysdate -1 and daterange < sysdate
    so query results will be different every day because daterange will be different. Also I would like to name txt file dynamicly as well
    eg. results_20090601.txt, results_20090602.txt, results_20090603.txt
    I cant see any activity in process editor to enter custom sql statment, like it is in MSSQL 2000 or 2005
    thanks in advance

    You can call existing procedures from a process flow the procedure can create the filename with whatever name you desire. OWB maps with file as target can also create a file with a dynamic name defined by an expression (see here ).
    Cheers
    David

Maybe you are looking for

  • Happy now I've gone back to Snow Leopard

    When Lion was first released I violated my personal rule of never doing a major upgrade to any operating system on any computer (because of potential unpredictable side effects like needing to replace software), and upgraded my 2008 Macbook from Snow

  • Acrobat creating odd page sizes.

    First, about the system: Adobe Acrobat 9 Standard Version 9.4.3 Windows XP Pro SP3 Now, the issue: I use a program to download recorded documents from a server and then view/print/save them to my computer.  In the past, I have been able to simply sel

  • Resizing to post online

    i am wanting to post photos onto an online forum i belong to but i need to resize them. i was wondering if there was an easy way to resize them to 800x600 without having to do it one at a time. any help would be fantastic.

  • EDI IDoc -SAP XI -ALE IDoc

    Hi All, I have a scenario in which EDI IDoc needs to be converted to an ALE IDoc(Basic Type FIDCCP02 ) when sent through SAP-XI. I need ur help in the following areas : 1.Do I have to create the data type for sender ? 2.How should I mention the File

  • Boot Camp issues again

    Okay, I'm having trouble with Boot Camp. I found my install discs from my previous post and I'm trying again at Boot Camp but every single time I boot up into Windows installer I just see one partition, just like last time. Now what the ****? I thoug