ALV round zero after comma if all decimals = ,000

I have a problem.
I use ALV, field catalog from 'vbap', and data from 'vbap'.
In the field NETWR I have value '111,340'. -> I need '111,340',
but if I have value '123,000', I need '123'.
I don`t no how it is, but if I do it with field BRGEW, it`s working, but with NETWR don`t work.

Hi,
I am not sure but try like this
in the fiedlcatalog as u give the fieldname -> NETWR
give also the QFIELDNAME -> "BRGEW' 
FIELDCAT_LN-QFIELDNAME = 'BRGEW'.
or
while declaring the internal table
(refer netwr field to vbap-brgew)
i hope this shud work
begin of itab occurs 0,
<b>netwr like vbap-brgew,</b>------
end of itab.
Regards
Sowjanya.

Similar Messages

  • How to delete trailing zeros after the decimal point in the ALV sum

    Hello Expert,
    In my alv output, I need to sum up one column, but in the sum result, I don't want to display zeros after the decimal point.
    for example,
    If the sum is 134.00, I only want to display 134 on the alv.
    Does any expert have idea about it?
    Thanks in advance,
    best regards, Johnny

    Hi ,
    Use following
    SHIFT variable RIGHT/LEFT DELETING TRAILING '0'.
    For more variations ,
    just write SHIFT and press f4 , it will show you the information you need.
    Hope this is helpful,
    Regards,
    Uma Dave

  • How to give a page break in alv grid display after 65 lines are displayed?

    hi all,
    I need to give a page break in alv grid display after 65 lines are displayed on each page...Please help me with this...

    hai
    give this command beging of the report name... u have to diclar the beging of the report ......
    <b>report</b> ( name of the report)  <b>standard page heading line-size 200 line-count 65.</b>
    ex1.:- report name is  rtpm_trl_show_flows 
    report <b>rtpm_trl_show_flows </b> no standard page heading line-size 200
                                                         line-count 65.
    ex:2
    report  <b>zlpur01</b> no standard page heading line-size 200
                                                         line-count 65.
    type-pools: slis.
    tables: bkpf.
    selection-screen begin of block sel with frame title text-001.
    select-options: s_comp for bkpf-bukrs, " Company
                    s_valut for bkpf-budat. " Invoice Date
                   S_MTART FOR MARA-MTART. " Material Type
    selection-screen end of block sel.
    parameters: p_vari like disvariant-variant. " ALV Variant
    constants: formname_top_of_page type slis_formname value 'TOP_OF_PAGE'.
    data:   i_bseg type bseg  occurs 0 with header line.
    data: vatval type p decimals 2 value '0.15'.
    data: xhkont type string value '154000'.
    data COM type c.
    data: begin of invt occurs 100,
            budat like bkpf-budat, " Inv Dat
            bukrs like bkpf-bukrs, " Material
            STCEG like bsak-STCEG, "name of the companycode
            belnr like bkpf-belnr,
            xblnr like bkpf-xblnr, " Inv Reference
            ebeln like rseg-ebeln, " PO number
            lifnr like bseg-lifnr, " Vendor No
            name1 like lfa1-name1, " Supplier Name
            matnr like bseg-matnr,
            maktx like makt-maktx,
            stcd1 like lfa1-stcd1, " Supplier VAT REG NO
            xamt like bseg-dmbtr, " TAX amt
            yamt like bseg-wrbtr,
            wrbtr like bseg-wrbtr, " Base amount
            mwskz like bseg-mwskz,
            dmbtr like bseg-dmbtr, " TAX amt
            gjahr like bkpf-gjahr,
            hkont like bseg-hkont,
            zamt like bseg-dmbtr, " TAX amt
            wamt like bseg-dmbtr,
            shkzg like bseg-shkzg,
            shkzg1 like bseg-shkzg,
          end of invt.
    regard
    nawa

  • Costs in Cost Center are not zero after Revaluation at Actual Prices

    I executed:
    1. KSS2 - Splitting  (I use a Cost Center ABC and all Cost Elements in the configuration)
    2. KSII - Price Calculation
    3. CON2 - Collective Processing
    4. I see the report KSB1 of the Cost Center ABC, but Costs are not zero after revaluation.  For example
    Cost Element 61:                        $   1000
    Cost Element 62:                        $   2000
    Activity Allocation  98:               $ -2800
    Revaluation at actual price 98:  $ -100
    TOTAL:                                      $ 100
    Total must be $ 0.00
    We work with thousands of product orders in a month.  Is it possible that the problem was for rounding?
    Thanks in advance for your help.
    José Luis

    Hi Ajay,
    I checked OKEQ configuration, it's equal that you mentioned.
    I have seen that Revaluation registers are using other Exchange Rate.  In OB08 Exchange Rate P is 2.80 ( 1 USD --> 2.80 PEN)
    How ever those revaluation registers are using ERate of 2.14 (1 USD --> 2.14 PEN)
    Why revaluation registers use other Exchange Rate?  Is this the problem that Cost Center is not zero?
    Thanks in advance for your help.
    José Luis

  • Target Cost in the settled process order become zero after cost deletion

    Dear all,
    User has standard cost estimates created in Jan 2010 that valid until the end of 2010 for every material in the system.  user created a process order in April 2010. Target cost of the order was created based on the standard cost estimate and recipes as well as order qty.    The order was also confirmed and settled in April 2010 without problem. 
    However, after I deleted all old costing estimates before I did a costing run for all materials in May 2010, the old order was resettled and all Target cost is removed from the order.  I guess system try to look at April costing estimate but it is not there since it was deleted before I created the new costing estimate in May.  Therefore, all varainces are throwed into remaining variances since the target cost become zero.
    Other than mark the settled order for deletion or keep all old costing estimates,  I am just wondering is anyway in the configuration to prevent the system to recaculate the target cost again for the settlement so I can avoid the problem happens?
    Thanks.

    Hi,
    Target costs are only calculated after goods movements have occured on the order, the Target Costs are then calculated during the Variance calculation.
    Target costs will only be calculated after the first goods receipt has been posted to the order. Also you have to ensure that the information to calculate target costs exists on the system in particular in OKV6.
    This estimation is based on the customizing for the Target cost version in transaction OKV6 as in turn will the "real" calculation of the Target costs via the variance calculation.
    So in OKV6 the Target cost will be based on preliminary costing on the order, an alternative cost estimate or the current standard cost estimate. Importantly if the choosen option is not fulfilled e.g. no current standard cost estimate, the target costs will not be predicted or calculated.
    regards
    Waman

  • Absence quota zero after Time Evaluation

    Dear friends,
    We are generating Absence quota automatically after Time evaluation. But CL/PL/SL leave quota generated is zero after TE.
    Even I am not able to edit Absence quota(IT2006) manually or through IT2013.
    Please guide me, what needs to be done.
    Regards,
    Nayak

    Hi Dracula,
    Thanks for your response. No am not able to simulate the situation, it happen just once in PRD server.
    I do agree that some one might have chaned the value. But if the quota is generated by time evaluation then you cannot changed the record directly in infotype (2006). Time evaluation generated quota can be changed on through infotype 2013.
    I do request all the expert please share your thoughts.  Please do let me know what could be the problem here.
    Regards
    Sandeep

  • Sender agreement not updated in XI cache after commit

    Hi all,
    somehow none of my created sender agreements appears in the XI cache after commit. I also did a complete refresh of the XI chache.
    Any ideas?
    Thanks!
    Denis

    Hmm,
    I have created sender agreements for SOAP channels, this would explain why I could not see the agreements...
    Actually I am wondering why the 'test configuration' tool in the ID brings up an 'java.io.IOException' in the receiver determination. Prior to that the sender agreement lookup fails. So I thought it's the XI Cache...
    I restarted the J2EE engine but the problem remains.
    Any other ideas?
    Thanks so far!

  • To Remove zeroes after decimal in screen field

    I need to remove the zeroes after a decimal like for a field of the type VBAP-KWMENG the is shown as 200.000 i need to show it as 200.I have to display this value inside a Table Control.

    hi,
    you can user "write to" statement with formating option.
    In your case,
    write  VBAP-KWMENG to l_var1 DECIMALS 0.
    so you will get l_var1 without any decimals and now you can populate this variable in your control.
    Please reward points if you find it useful.
    Regards,
    Jigs.

  • Suppressing zeroes after decimal

    Hi
    I need to suppress the zeroes after the decimal places in my form output if 00 appears after decimal.
    eg 123.00 shd be displayed as 123 .
         123.23 shd be dispalyed as 123.23.
    Could anyone help me with this
    TIA
    Regards

    hi Ankur do this way
    data: wa_input  type i,     
          wa_output type i.
    wa_input = '1.000'.
    CALL FUNCTION 'ROUND' 
      EXPORTING   
        INPUT              = wa_input
      IMPORTING  
        OUTPUT             = wa_output
      EXCEPTIONS
       INPUT_INVALID       = 1
       OVERFLOW            = 2
       TYPE_INVALID        = 3
       OTHERS              = 4.
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    write:/ wa_output.

  • Eliminating zeroes after decimal

    HI all,
      I have a requirement to delete the trailing zeroes after decimal.
      It is a interest rate and it is denoted in EUR.
      i.e the number is 0,739000 % Internal declaration of this number is in DEC.
      the data type is AZINSSATZ.
    i want it to be displayed as 0,739 %
    How can i eliminate these zeroes?
    Thanx in Advance
    Regards,
    Hamsa Priya

    Hi Hamsa Priya,
    To remove leading zeros and leading blanks
    Please use FM
    CONVERSION_EXIT_ALPHA_INPUT Conversion exit ALPHA, external->internal
    CONVERSION_EXIT_ALPHA_OUTPUT Conversion exit ALPHA, internal->external
    Ex :
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
                EXPORTING
                  input  = wf_version
                IMPORTING
                  output = wf_version.
    Hope this resolves your query.
    Reward all the helpful answers.
    Regards

  • Zeroes after decimal getting trimmed after 1:1 mapping of EDIFACT

    hi all
    i have created 1:1 mapping for XML->EDI.
    i took the output from XI and gave it as input.However, in the output of the mapping, the zeroes after decimal are getting deleted.
    for example if the input contain 2500.000, the output of the mapping contains 2500.
    I want 2500.000 in the output.
    Any suggestions as how to overcome the problem?

    hi Kai
    sorry ..i think i didnt convey properly my prob.
    This is what i want.
    My scenario is IDOC->EDIFACT using XI.
    i did a XI graphical mapping from IDOC ->to->EDIFACT_XML.Here for a particular field i got the output as 2500.000.
    Now this EDIFACT_XML is converted into EDIFACt using 1:1 mapping of BIC MD.
    When i give 2500.00 as an input to this 1:1 Mapping of BIC MD, the output contains only 2500.
    I'm not having problem in XI but in BIC MD.
    kindly suggest how i can get decimal output from BIC MD.

  • Mass Contract Update - Item price become zero after Tax Code change

    HI Guru,
    I have issue on the contract net price which become zero after change in Tax code of item.
    Took the opportunity to update contracts to reflect the changing VAT code (from V0 to V1 for some items) from the Trx code: MEMASSCONTRACT. However, having run the transactions (ME33K) above the contracts are now displaying zero prices on the Item Overview.  The conditions are all correct (PB00) and the follow on purchase orders seem to be picking up the correct prices but we need to resolve the issue of zero prices on the item overview. 
    Please help me in this why it is happening like this? & what is the solution for it.
    Thanks in advance
    Praveen Katageri

    Hi,
    If pricing picking , just check  validity period ( Valid from & Valid to) in  condition of the  Info record.Also check any scale is used & price active or not in condition of Info record.
    Regards,
    Biju K

  • A way to change metrics to 1 digit after comma?

    Hello. I have just noticed Flash CC is using 2 digits after comma, and im just wondering if there is a way to change it to use only 1? In my work i ususally have to avoid having any other digit after comma in symbols position other than 0 and got used to quickly running trough tabs and stroking "end" and "backspace" to make everything more even so its sharper, now when there are 2 digits i have to stroke backspace twice (and many times forgeting about it due to years old habit). For some of you it might sound trivial problem, but when you multiply it by bazilions of stuff i have to do with deadline "yestarday" every bit of stuff i have to do even bit longer in the long run gives me a lot of wasted time. Its not a big problem, but would be awesome if i could make it easier.

    And while im on that "quality of life" question for someoen who has to make millions of banners very fast:
    Is there a way to make objects moving snap to integer positions? SO when i move them around the workspace, they dont land on non-round positions? I would like to avoid putting them on for example: 10.70 - 230.40 but on 10 - 230. Would really appreciate any tip of how to do that.
    I have already tryied "snap to grid" and" snap to pixels" but it just puts it on half of pixels like 10.5 - 230.5 and that results in blurry bitmaps.

  • How to delete trailing zeros after decimal ?

    Hi,
    i want to delete trailing zeros after decimal.
    Example:
    if it is 22.000 then output will be 22
    if it is 22.010 then output will be 22.01.
    plz let me know hw to do this ?

    DATA:
      lv_decimal TYPE f DECIMALS 3,
      lv_string  TYPE string.
    lv_decimal = '22.010'.
    WRITE lv_decimal TO lv_string.
    SHIFT lv_string RIGHT DELETING TRAILING '0'.
    CONDENSE lv_string NO-GAPS.
    * now no trailing zeros are in the decimal stored in LV_STRING
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Jan 30, 2008 12:10 PM

  • Executing subroutine after commit work, not on commit work

    Hi All,
    I want to execute my sub-routine after commit work, not on commit work.
    If any one have answer please mail me at  [email protected]

    Not sure if this helps you but this event is fired, when commit work is fired.
    Christian
    report test.
    class lcl_event_handler definition.
    public section.
        class-methods: on_commit_finished
             for event COMMIT_FINISHED
               of CL_OS_TRANSACTION_END_NOTIFIER.
    endclass.
    set handler lcl_event_handler=>on_commit_finished.
    commit work.
    class lcl_event_handler implementation.
    method on_commit_finished.
      break-point.
    endmethod.
    endclass.
    But check also oss note 704577

Maybe you are looking for

  • Iphoto pics not recognized

    I take alot of pics that i download to iphoto, then transfer to friends, work, and other sites. lately my pics are not being understood by other computers, at work, the PC photo editor "cannot read file type" on another site "did not upload correctly

  • Having trouble playing burned cds on other than pc?

    I have finally figured out how to download tunes that I have downloaded from Itunes onto a cd... However, when I go to play them I can play them on my manual cd player ( hand held ) and the PC but when I go to play them in my cd player in the car - t

  • Okidata C3400n Printer Not Printing

    I'm hoping there's an iMac user out there who is driving an Okidata C3400n color printer. These are fine printers and mine is less than a year old. -- I'm a brand new Mac user. My iMac 2.8 GHz/24" computer is about five days old. -- I succeeded in do

  • Moving iWeb to a new computer

    i have just taken delivery of my new macbook pro and I want to move the maintenance of my iWeb generated web site on to the new computer - how do I do it?

  • HT2213 I am unable to get this to work. Anyone have success on this?

    I recently had a firmware update go bad on me. I did as it said and it flashed the led and beeped once and the screen remained black. After a long time with nothing happening I shut it down and tried again but this time got the 3 quick 3 long 3 quick