Displaying the quantity field in decimal values

hi
I have created a web dynpro application,and I am calling BAPI functional module from that webdynpro application.
Now the output is being displayed in the second view by giving the input from the first view.
Now my problem is that the quantity value is being displayed as "5" and whereas It should be "5.00".
Is there any setting to be done from the properties end of that particular table.
Please suggest me in this issue.
thanks and regards
kris

Hi Gopi,
     The property in question is "calculated". This is a property of a context value attribute. So select the value attribute in the context to which your field is bound and view the properties. Set "calculated=true". It will generate the accessors.
     In the setter method, add the following piece of code:
public void set<your attribute name>(IPrivate<your component>View.IContextElement element, java.lang.String value)
  DecimalFormat df = new DecimalFormat("#.00");
  value = df.format(value).toString();
Regards,
Satyajit
Message was edited by: Satyajit Chakraborty
Message was edited by: Satyajit Chakraborty

Similar Messages

  • Unit of the Quantity field is displaying in internal format in Bex report

    Hi Experts,
    I have a BEx Query, in which i have quantity keyfigure added(Examble - Sales Quantity).
    When i run the report for a selection the report displayes the unit for the quantity field in internal format.
    Examble - instead of showing 10 CS (case), the report is shwing in 10 CV (internal format of unit CS is CV).
    Also when i check the cube content, it has the unit updated into the cube as CS for that keyfigure.
    Can any one let us know, how to dispaly the report output in external format.
    Regards.
    Muruganand.K

    Hi Gopi,
         The property in question is "calculated". This is a property of a context value attribute. So select the value attribute in the context to which your field is bound and view the properties. Set "calculated=true". It will generate the accessors.
         In the setter method, add the following piece of code:
    public void set<your attribute name>(IPrivate<your component>View.IContextElement element, java.lang.String value)
      DecimalFormat df = new DecimalFormat("#.00");
      value = df.format(value).toString();
    Regards,
    Satyajit
    Message was edited by: Satyajit Chakraborty
    Message was edited by: Satyajit Chakraborty

  • In smartforms the quantity field is not showing the perfect value .

    In smartforms the quantity field is not showing the perfect value because the point is shifting left
    insted of showing 8.10 it is showing 80.00.

    Hi,
    Dont use the quantity field same as that it come from interface Fm declare one field for quantity in the global settings and write the logic to pass the value to that field and pass that global value to the particular texts...same is the case with currency fields also.
    Regards,
    Rohan.

  • Change of the quantity field to 5 decimal places in SAP

    Hi Gurus,
    The quantity field is appearing with 3 decimal places in BOM, Process Order, etc. Is it possible to make the decimal places to 5.
    All the decimal digits from SAP are 3 digits. We have an interface through which the data flows from another legacy system (Fow system) to SAP. And the Fow system setting was 5 digits. The issue is some of the raw material requirement qty was really minor and it might be below the decimal 3 digits.
    In that case, when the data flows to SAP from Fow system it will cause the material stage failure. so please help me to investigate how to let the SAP also could have the 5 digits decimal. Thanks.
    Regards
    Brijesh

    Dear ,
    Its SAP standard ,to put and use decimal places in BOM qty .You can use upto 3 decimal places in BOM qty.
    At SE11 you need to see what measure field is linked to the quantity field.Then goto tranaction CUNI and chage the decimal places of the unit of measure for the qty field unit , it will not allow you more than 3 decimal places in case of BOM qty.
    You have following choice :
    1. With the access key make changes in the standard program and take help from ABAPer
    SAPLCSDI, Table Name-RC29P, Field Name- MENGE.
    2) Change the base quantity in BOM header to 1000 aand accordingly change the component quantity.
    Hope this is clear
    Regards
    JH

  • Query Alert for a change in value of the Quantity field of the sales order

    Hi Experts,
    A query alert has been set up to alert the warehouse employee when a new sales order is created by a sales employee. Our client wants the warehouse employee alerted when the sales employee edits the quantity field of an already added sales order.
    Kindly assist in designing a query to notify of this change in the Quantity field of the sales order.
    David

    Try this one:
    SELECT T0.DocNum, T0.CardCode, T1.ItemCode, T3.Quantity 'Old Qty', T0.Quantity 'New Qty', MAX(T2.LogInstanc) 'Times Changed'
    FROM dbo.ORDR T0
    INNER JOIN dbo.RDR1 T1 ON T1.DocEntry = T0.DocEntry
    INNER JOIN dbo.ADOC T2 ON T2.DocNum = T0.DocNum AND T2.ObjType = '17'
    INNER JOIN dbo.ADO1 T3 ON T3.DocEntry = T2.DocEntry AND T3.ItemCode = T1.ItemCode
    WHERE T0.DocStatus = 'O' and T0.DocType = 'I' AND T1.Quantity != T3.Quantity
    GROUP BY T0.DocNum, T0.CardCode, T1.ItemCode, T1.Quantity, T3.quantity

  • How to truncate the decimals in the ALV report for the quantity field

    Hi All,
    I have to display a quantity field and units of measure in the ALV output. If the units of measure eq 'PC' i should not display the decimal places for quantity in the alv output, otherwise i have to display the decimals in the output. How to do this....any help would be highly rewarded. I knew that for this type of cases decimal_o will not work.

    Hi,
    Declare one more Internal table same as output table. In that intead of that quantity field, declare field_name(15) type c.
    data temp type i.
    Loop at itab.
    if field = 'PC'.
    temp = qunantity field.
    field_name =temp.
    else.
    field_name = quantity field.
    endif.
    endif.
    endloop.

  • Problem with the quantity field

    hi every one
    i am facing a problem with the quantity field (vbap-kwmeng)
    as per my requirement i need to display this quantity field along with some other item fields from VBAP in an alv grid.
    among all the fields displayed in the alv grid only this quantity field is editable(end user can change this quantity)
    once end user changes this quantity and press save button i need to capture this new quantity in my internaltable.
    problem is input of length of quantity is 15 and the output length is 19
    so when i am pressing save
    say my quantity is 50 when i am pressing save '0.050' is coming because of the length difference
    how can i capture the original changed value.
    vamsi

    what about define two fields in  you inner table ,one as char and the other as vbap-kwmeng, you can show the char one in the ALV gird , when user input value and press SAVE ,you can move the value to vbap-kwmeng.
    you can test it,mybe some one has one better idea.

  • How to get the leading zeros for decimal values?

    Hi,
      How i wil get the leading zeros for decimal values.For CONVERSION_EXIT_ALPHA_INPUT it is not working.Now iam using overlay condition for getting leading zeros.But iam getting the value like 00013.500.But as per my requirement i want to display this value 0000013.5.
    my code is
                    overlay w_MetLife_detail-rdempsalary with '000000000'
                    data :rdempsalary     type char9
    Please help me on this.
    Regards,
    Sujan

    Hi
    For more info,
    The function of the statement UNPACK is based on the fact, that the BCD display of a decimal place corresponds to the second half-byte of code of a digit in the most character representations. This conversion is commonly called "unpacking".
    The statement PACK to pack is obsolete and can be replaced by MOVE.
    If destination is specified as untyped field symbol or as untyped formal parameter and is not flat and not character-type during execution of the statement, then an untreatable exception occurs in Unicode programs. In non-Unicode programs, an exception occurs only with deep types, whereas flat types are treated as character-type types.
    Example
    After the assignments,char1 and char2 contain the values "123.456" and "0000123456".
    DATA: pack  TYPE p LENGTH 8 DECIMALS 3 VALUE '123.456',
          char1 TYPE c LENGTH 10,
          char2 TYPE c LENGTH 10.
    MOVE   pack TO char1.
    UNPACK pack TO char2.
    Regards

  • Hide the quantity field at goods movements in cofirmation.

    HI,
    My client is using CO11N for confirmation. and doing auto goods reciept and auto goods issue.
    Whn I am clicking on Goods movement in CO11N system is showing me which material is going in goods reciept and which is in Goods issue.
       Now my requirement is I want to hide the quantity field of the material in goods movement because some time user is changing the quantity of goods issue.
       Wat can I do for the same?
    Please sugest
    Thanks & Regards,
    Nilesh Ithape.

    Dear Nilesh,
    Try to achieve the same using the authorization control.
    You can take the help of the BASIS consultant and try to find the authorization object and the value
    which's allowing to change the quantity.
    Check whether this is the particular object C_AFKO_AWA is allowing the same(I'm not sure).
    After finding out the Authorization object remove the tick mark for the value which's for change or delete.
    You can find it using SU24 T code or using SUIM and other related T codes.
    If it cant be done even after authorization control ,revert back to the forum.
    Regards
    Mangalraj.S

  • AP Invoice interfaced to Projects shows the amount in the quantity field

    We are noticing that AP Invoices interfaced to Projects show the invoice amount in the quantity field, e.g. in projects quantity and cost both show the invoice amount. The actual quantity is different. Anybody experienced that or has a solution?

    Hi User,
    This is intended functionality of Oracle projects:
    For AP invoices the QUANTITY = ACTUAL AMOUNT (eg 1000) of the AP invoice at the distribution level and UOM = word "CURRENCY".
    Incase of labor expenditures the quantity = the number of hours and UOM = HOURS.
    Please revert incase more information is required on this issue.
    Thanks & Regards,
    Neeta

  • Setting Default Value to the Quantity Field in ML81n

    Hi Gurus,
    I have an assignment to set a default value of 1 to the quantity value when creating entry sheet. This is the process we go through before the point of setting the 1:
    1. Go ML81n and click on "Other Purchase Order" input some PO number and click enter.
    2. On the Menu --> Entry Sheet --> Create --> Empty Page
    3. At the bottom of the screen Click on "Service Sel", and click enter if a pop-up shows
    4. Now on the line item, select any row (1 or 2 or many). and Click on Services on top.
    So at this point when the new screen shows with the new Entry Sheet number, the line Items that comes up should all have a quantity of 1, and should be editable by the user before saving.
    How can i go about this. Which UserExit will do this or Enhancement Point. The screen field for this quantity is ESLL-MENGE.
    Thanks guys.
    Rewards, will be greatly reward.
    Edited by: Basil Balogun on Jul 7, 2008 11:03 PM

    Hi,
    Pls check out this Exit-
    package name ML-
    SRVESSR->EXIT_SAPLMLSR_010->Set Entry Sheet Header Data.
    For this in importing paramertes
    I _EKPO type EKPO in this we have MENGE field try to asign value 1 to this.
    First check the screen number of the popup screen for which you need to enter the MENGE valuein GUI status. Chck if this screen exit can be used by puting a break-point.
    And also try this screen exit for SRVEUSCR-
    EXIT_SAPLMLSR_020-Transfer of Data to Entry Sheet User Screen
    EXIT_SAPLMLSR_021-Adoption of Data from Entry Sheet User Screen
    SAPLMLSR-Screen exit at 0400 subscreen.
    Reward if helpful.
    Best Wishes,
    Chandralekha
    Edited by: Chandralekha on Jul 8, 2008 6:41 AM
    Edited by: Chandralekha on Jul 8, 2008 6:43 AM

  • How to display the Quantity and Rate fields in PO Report

    I am trying to get a Purchase Order report that has the following fields in it.
    1. Ordering Date
    2. Purchase Order ID
    3. Supplier
    4. Product
    5 Quantity
    6. Rate
    7. Amount (Quantity x Amount)
    The reports under the Purchase Order WoC do not display Quantity and Rate.
    Any more information like pointing to an Article or Help Topic is appreciated.
    Regards
    Yagyesh

    Try the Purchase Order Volume report as your starting point.
    I got everything you need onto that report in about two minutes (except quantity which may take longer).
    The report can be found under the reports menu or you can find it under Business Analytics WoC if you have access.
    I have been using the Business Analytics WoC for all of my reporting since it saves me the step of going to each WoC to look for the core reports.
    Jim

  • How to display the dataset field values in my ssrs bar chart report ?

    HI i have a Bar Chart report in that i want to display the dataset one  field values in my x-axis of my ssrs report? so how should i display those values into my bar chart report?
    consider i want to display the Every Qtrly details in my x-axis so how should i ?
    can you pls help me out for this 

    I have added the Category Group into my Report area with required field ,now i will get my required output.

  • ALV Display for Quantity Field

    Hi All,
    I am working on ALV classes.
    I have a quantity field which needs to be displayed without decimals.
    When I declare the data type as type p decimals 0,It is displayed correctly but when I change the field with a value using the method handle_data_changed it gives a value multiplied by 10 always. i.e., when the new value is 5 it gives the value as 50.
    I tried referencing the Unit value but it doesn't work.
    Any views on suppressing the decimal values without getting the value multiplied by 10 is highly appreciated.
    Thank you in advance.
    Regards,
    K.S.

    Hello Kandasamy,
                                 Change the reference field that points to the ALV display field to a non decimal field and then use the Integer variable assignment for  removing the decimals  during teh BAPi or database fetch.
    Hope this answers your question.
    Thanks,
    Greetson

  • Regarding quantity field...value in layout

    Hi All,
    my issue is here i am passing vbrp-fkimg value to layout..
    the value in the field above is 100.000, but here in the layout it is coming as 100 and printing it.
    how the value of 100.000 become 100.
    any settings, configuaration are there which changes the value..
    Regards,
    vinesh..

    Hi,
    quantity field will be whole no.
    if the requirment is like printing decimals.
    Then declare one variable of type pack decimal.
    data : w_var type p decimal 3.
    Move vbrp-fkimg to w_var.
    and desplay this variable w_var.
    Reward pts if helpfull.
    Regards,
    Dhan

Maybe you are looking for

  • Unable to load entities into Planning using OutlineLoad utitlity

    Good day all, One of our Planning admins needs us to load some new entities for her. We've done this off and on with her Planning app for the last year without a problem. However, over the last couple of days we have not been able to load her latest

  • Portal Runtime Error in ESS iview

    Hi All, I have implemented ESS 50.4 on EP 6.0 SP9. For SAP IAC iviws i am getting following error. Portal Runtime Error An exception occurred while processing a request for : iView : pcd:portal_content/AFDB/Role/ESSRole/Office/SAPInbox/SAPInbox Compo

  • When i send a text (imessage) to my girlfriends iphone I get the same message sent to mine

    When I text (imessage) my girlfriends iphone I keep getting the exact same message sent to my iphone at the same time, how do I stop it doing this. It only started recently. I must have changed a setting but Ive only had the phone a week so not sure.

  • Some apps won't open after OS X Mavericks update

    After the update to OS X Mavericks, some apps won't open on my macbook pro.  That include things like preview, boot camp assistant, from what I've tried so far. When I click on those from applications menu or from the spotlight search, the icon appea

  • Boot Camp - removing a partition

    Hi, I created a parition in boot camp and later removed it. When I went to delete the parition boot camp said it had been deleted but the 10 gigs of space I had allocated to the windows parition was not allocated back to the Mac partition and the win