Modify the Field Type of standard Table fields in a Query

Hello. I have a question.
Is there a way to "modify" the field type for standard table fields that are included in a Query?
I made a simple query out of a join of tables, but several fields have a lot of decimals, and I would like to present them in the query without any decimals, just as a regular "N" field.
I tried the possibility of creating extra local fields where all I do is transfer the value to the new "N" field, but I have many fields like this, so if there's a better way; I'd prefer that.
Maybe somewhere in the InfoSet there's a way to modify the type of the standard table fields?
Thank you.

Hi,
This document may help you out.
[http://help.sap.com/saphelp_erp60_sp/helpdata/en/d2/cb4468455611d189710000e8322d00/frameset.htm|http://help.sap.com/saphelp_erp60_sp/helpdata/en/d2/cb4468455611d189710000e8322d00/frameset.htm]
Cheers,

Similar Messages

  • Urgent : How to modify the line type and table type

    I am working on ALV Grid Control, i need to know how to modify the line type values to table type.
                 ls_celltab-fieldname = 'ZSAVINGS '.
                 ls_celltab-style = l_mode.
            INSERT ls_celltab INTO TABLE pt_celltab.
    Here ls_celltab is line type and pt_celltab is table type.
    Please give me the suggestion ASAP.
    C.Bharath Kumar

    Hi,
    Here is the example
    DATA: BEGIN OF LINE,
            LAND(3)  TYPE C,
            NAME(10) TYPE C,
            AGE      TYPE I,
            WEIGHT   TYPE P DECIMALS 2,
          END OF LINE.
    DATA ITAB LIKE SORTED TABLE OF LINE
              WITH NON-UNIQUE KEY LAND NAME AGE WEIGHT.
    LINE-LAND = 'G'.   LINE-NAME   = 'Hans'.
    LINE-AGE  = 20.    LINE-WEIGHT = '80.00'.
    INSERT LINE INTO TABLE ITAB.
    LINE-LAND = 'USA'. LINE-NAME   = 'Nancy'.
    LINE-AGE  = 35.    LINE-WEIGHT = '45.00'.
    INSERT LINE INTO TABLE ITAB.
    Regards
    Sudheer

  • How to change the lenth of existing field in sap standard table

    Hi all,
    can anybody help,my requirement is, how to change the length of existing field in sap standard table....
    thanks in advance..

    Which field are you thinking of in particular?  Are you wanting to increase or decrease the length?
    Some fields are used so extensively that a change to their length will mean adjusting many tables, some of them potentially very large, and hence taking a long time to adjust.
    Some standard SAP programs expect certain fields to be of specific lengths and won't work if the length is changed.
    Some screens could cease to work.
    If you decrease length, then you could lose data.
    matt

  • Creating a custom change document for a standard table field

    Hi
    Is it possible to create a change document for a field in a standard table?
    I have searched the forum and only found threads about creating change document to a custom table.
    Will the creation of change documents to a standard SAP table be a modification?
    Thanks.
    Regards
    Sowbhagya.L

    Yes it will be a modification on standard table, but you can always create change document for any field by assigning it to custom change object.
    Regards,
    Krishna.

  • Sending custom field added in Standard table through idoc

    Hello Folks,
    We have a requirement where custom field of a standard table PA0002 needs to be sent through idoc only to a desired destination system.
    My Approach:
    I have created a custom segment having custom field from PA0002 & mapped this segment in T777D table.
    But the problem with above, is all the system who are receiving PA0002 will be receiving this custom segment also including desired system.
    How can it be filtered?

    Hi,
       In BD64 you can do the segment level filtering. Go to BD64, search for your distribution model there drill down to "filter settings" the make the required segment filtering.
    Thanks,
    Asit Purbey.

  • Attach search help to standard table field

    Hi,
    I need to attach search help to standard table field VBKD-EMPST.
    I have create a z search help and taken acess key from SAP.
    But unable to attach this to standard table field.
    Kindly help.
    Moderator message: duplicate post locked.
    Edited by: Thomas Zloch on Oct 27, 2010 6:11 PM

    Hi,
    just go throw this link
    Re: Attaching Search Help to a field
    I hope this will help u
    Thanks
    Regards
    Akhilesh Singh

  • Can I modify the data type of a dynamic parameter?

    I am using CR2008 against an Oracle 11 db and have a report with dynamic parameters.
    One of the report sources is a custom view that selects all of the possible 'pay ending dates' where one of the fields from this view is used as the source for the dynamic parameter.
    The view performs a TRUNC on the date field in an effort to eliminate the TIME component.
    The problem is that the parameter definintion defaults to DATE/TIME (vs. just DATE). I'm wondering if there is any way to modify the data type of the parameter to be DATE only.
    I've searched several forumns but have not found anything.
    One solution I can think of is to have the custom view format the date field as a VARCHAR (sans the time component) which I assume would force the dynamic parameter data type to string, and then have the report perform a todate function on the value when applying the criteria.
    Anyone else have an idea? Just seems like CR should allow the developer to specify the data type- especially b/w Date and Date/Time, rather than make an assumption.
    Thank you in advance-
    emaher

    emaher,
    Here's what you can do:
    Leave the existing date column as it is in the view...
    Just add another column to the view that casts the the date as a VarChar data type and formats the date as you would like it to be.
    So now you'll have 2 date columns in the view... 1 that's still a date and another that a character string.
    Now for your parameter, use the date version as the parameter value and the text version as the parameter description.
    Be sure to set the "Prompt with description only" is set to true.
    This way the user sees the LoV in the desired format but there's not need to wrangle it back into a date for data selection.
    HTH,
    Jason

  • How to get the line type of a table type

    Hi,
      i want to indetify the line type of a table type dynamically in my program. how to do?
    For example:
    data: lv_ttype type type ROLLNAME value 'PRXCTRLTAB'.
    how to identify line type of lv_ttype in the program.
    Thanks,
    johnney.

    Hello Johnney,
    try like this...
    types: begin of ty_itab,
                matnr like mara-matnr,
                werks like marc-werks,
                maktx like makt-maktx,
              end of g_t_itab.
    data: g_t_itab type table of ty_itab.
    data: <b>wa_itab like line of g_t_itab.</b> " This is line type... so called work area.
    Reward If Helpful.
    Regards
    Sasidhar Reddy Matli.

  • Weblogic-Modifying the content type

    Hi All,
    Is there a way to modify the content type in the Weblogic server.
    Basically what I want to do is, make IE6 to IE8 compatible for CSS3. I read somewhere that ".htaccess" file should be modified to make it work. I would like to add the below line...
    AddType text/x-component .htc
    So, where do I add this ?? Can some1 guide me as I dont know how to play around with WLS. I dont even know if there is such setting in WLS.
    WLS: 10g
    Thanks in advance..

    Tom and I exchanged several emails on this topic. It would appear that the problem (mail setting the content-type to ISO-2022-JP) is caused when certain characters in the quoted text of a reply are encoded; mail decides it needs to specify ISO-2022-JP. Characters identified as causing the problem are smart quotes and apostrophes. If you look at the apostrophe in the raw text it appears as =1B$B!G=1B(B and the smart quotes as =1B$B!H=1B(B and =1B$B!I=1B(B
    AK

  • How to find the function module for standard tables.

    Hi
    Could any one please tell me how to find the standard function module to update the standard tables
    Thanks & Regards
    Sowmya

    Hi sowmya,
    To find the function modules for standard tables you go for a where used list of that particular table and check only function module interfaces checkbox...
    and more over you can go for DB_UPDATE_TABLE will be the function module for updating database table..
    Hope this information would help you
    Regards
    Narin Nandivada

  • Updating custom field in a standard table - AFVC

    Hi All,
    We have created a custom field in table AFVC. While updating other things related to that Order/Operation, we need to update this custom field.
    Can you kindly let me know how we can approach this? Do we use a direct Modify/update statement in such cases to update the standard sap table?
    Regards
    An

    Hi Ankur,
    There are few ways to do.
    1) Implement the screen field in the transaction at the operation level for visibilty to all the reason code. After updation of USER STATUS you need write the small utlity to update that field through LSMW or any other way to update this field in the transaction directly to save in the database table.
    2) AFVC means orders operation data. In this table many types of order data will store so you have to choose which type of order you are going to update whether it will be Internal order or production order or maintaineance order etc..
    3) Direct updation is last preference if there is no way for updation.
    Please let me know which order cateogry you are updating from thrid party sytem to your current system.
    As J@Y said if you are updating through some function module then in that case for BAPI's there is separate structure EXTENSION_IN and OUT to update the custom fields.
    Thanks,
    Satheesh

  • How to change the desription of a standard SAP field in the Search Help

    Hi All,
    In Table T023T there is a field WGBEZ60(Long text describing the material group) and the data element of the field is WGBEZ60.
    Requirement is to change the description of the field WGBEZ60.The desription of the  field is - Description 2 for the material group.
    But the user want as - Description for the material group. He dont want 2 in the description.
    we are using this field in the search help of Material group for the transaction ME21N and ME51N.
    So please tell me how can we change the description of the field in the Search help.
    Thanks.
    Regards,
    Peeyush

    As search help uses data element , it shows its keyword. So you have to do modification to that keyword.
    - Go to CMOD
    - from top menu GOTO -> Text enhancements -> Keywords -> Change -> type WGBEZ60 -> change the description -> Save and add it to transport
    - now use that data element either on the screen or search help. It will have the descripiton modified.
    Regards
    Marcin

  • How to get the current type of a generic Field Symbol

    Hi Experts,
    I have a Field Symbol:
    FIELD-SYMBOLS: <lf_any> TYPE ANY.
    I loop around an internal table with a generic structure and assign their fields to my fieldsymbol:
    LOOP AT it_data ASSIGNING <lf_any>.
    After executing this statement I am able to see the current Absolute Type of the field Symbol in debugger.
    For example this could be TYPE ZX_1 in first loop, TYPE ZX_2 in second loop and so on...
    Question: How can I get this current type within my Loop?
    The Reason is I have to CREATE DATA xxx TYPE "current type of the field symbol".
    Thanks,
    Daniel

    Hello Daniel
    Do you have the RTTI classes available on your system? If so then try the following:
    *& Report  ZUS_SDN_RTTI_GET_TYPE
    REPORT  zus_sdn_rtti_get_type.
    DATA: gt_knb1   TYPE STANDARD TABLE OF knb1,
          gd_type   TYPE string.
    DATA: go_typedescr    TYPE REF TO cl_abap_typedescr,
          go_strucdescr   TYPE REF TO cl_abap_structdescr.
    FIELD-SYMBOLS: <gs_struc> TYPE ANY.
    START-OF-SELECTION.
      APPEND INITIAL LINE TO gt_knb1.
      LOOP AT gt_knb1 ASSIGNING <gs_struc>.
        go_typedescr = cl_abap_typedescr=>describe_by_data( <gs_struc> ).
        go_strucdescr ?= go_typedescr.
        gd_type = go_typedescr->get_relative_name( ).
        WRITE: / 'Type=', gd_type.
        gd_type = go_strucdescr->get_relative_name( ).
        WRITE: / 'Type=', gd_type.
      ENDLOOP.
    END-OF-SELECTION.
    Regards
      Uwe

  • Change field value in standard table

    Hello Experts,
    Could you please guide me to change i.e update field CESS value in standard table j_1irg23d.
    Thanks and regards,
    Sirisha

    Hi sirisha,
    if you want to change the value in the CESS field of j_1irg23d table. ( sales tax )
    since it is a standard table dont try to do it using update ot modify statsments.. standard tables are updated using standard transaction and it is not advicable to change using abap statments..
    just try to find a bapi or field module to update that field in the j_1irg23d table.
    1) To find a bapi or function module just do a whereused list on the table name you may get some fms or bapi
    2) check the forum you may get some links on it..
    Regards
    Satish Boguda

  • Problem in delta management for custom fields added in standard Table

    Hi developers,
    we have a problem, when a sales order is modified in a field custom, added in tables (VBAP-VBAK), the delta BW doesn't recognize the modifications. The data type of these fields haven't the flag (Change document) setted in
    view Definition.
    If this flag is setted, Can the delta BW recognize the modifications of the custom fields?
    Best regards
    Domenico

    You cannot get delta by just appending fields to extract structure & writing the user exit coding as this user exit code is run by the extractor after the X- and Y- tables are compared to create the before & after images.
    You have to do this procedure by enhancing  LIS comm structures like MCVBAP (for example).
    Please refer to OSS note 576886 for complete details.
    Kumar Gudiseva.

Maybe you are looking for

  • Satellite L300 - Recovery wipes C drive then fails to rebuild

    My Satellite L300 has just come back from Toshiba for repair under warranty and before having a chance to burn Recovery Disks came up with the BSOD. Removed hard drive and placed in a SATA cradle and ran chkdsk which repaired it to the extent that (b

  • Adobe Acrobat XI and Microsoft Expressions 4

    Background: Windows 8.1 box, Adobe Acrobat XI (ver. 11.0.07), Microsoft Web Expressions 4 User has Web Expressions open to the intranet web page access, she's able to use that to make changes, changes are seen reflected on intranet page. However when

  • Reg : Dynamic Drown list in ALV Report

    Hi Guru's, Please help on showing Dynamic drop down list in ALV Report. My requirement is to show sales partner function in ALV report for each and every line.Every line item may have different partner function. Regards P.Senthil Kumar

  • Sales order error processing

    m not making export sales order. i m making general sales order in document typr--OR. Also after that this message is coming. this is the problem Error message "Legal control: issue error log item

  • Imac g5 hard drive OS X 10.4.4

    I cannot boot from my hard drive (160 GB) anymore. It just sits there with a grey screen. About 1 in every 10 boot attempts results in partial success where I get as far as the screen showing the filled in status bar beneath the Apple. I booted off t