Quantity Field Display

Hi,
I am displaying the quantity field in the sap script layout.But in the quantity field having 3 decimal places.
Ex: 3.400 is there i want to display 3.4
    3.000 only i want to display 3
    3.740 -
  3.74 like that i want.
I want to omit the zeros after decimal places.
Please give me the solution.
Regards,
Jenny

Hi Janardhan,
Do one thing in your print program make us of following line of code
shift wl_local right deleting trailing '0'.
where wl_local will containing your quantity..
This will solve your prob...
Enjoy SAP.
Pankaj Singh.

Similar Messages

  • ALV: Quantity field displays both blank and 0 value.

    Hi,
    My ALV has a quantity field. The requirement is for the first time displaying the value of this column always blank but once user change it to 0, it should keep 0 value.
    I implemented the first requirement by setting the property Display Leading Zeros in Formatting area to "Zeros as Blanks" for the corresponding attribute/node in context. The problem is whenever I key in 0 then enter --> the value of this field is always set back to null.
    I have another solution is using type char instead of type quantity. But this is the last choice because I don't want to validate and make the char field works as the numeric field.
    Please help.
    Thanks,
    Khanh
    Edited by: khaliachika on Jul 16, 2010 12:36 AM

    Hi Anu,
    One question from my side.
    U have displayed the ALV.In that grid u have quantity field.U have changed the value of that field to 45.
    When u press enter the value has been changed to .045.Is this u r problem.
    U can do onething anu.
    Declare one varaible with the local field.
    Pass u r quantity field value into that variable.
    While displaying thriugh SET_TABLE_FIRST_DISPLAY in your internal table pass this variable.
    It will solve u r problem.I think.
    Let me if yu have any problem
    IF u want u can refer to the program BCALV_EDIT* in se38.
    There also u have needful info
    Thanks,

  • Quantity Field Display in Sap Scripts

    Hi,
    I am displaying the quantity field in the sap script layout.But in the quantity field having 3 decimal places.
    Ex: 3.400 is there i want to display 3.4
    3.000 only i want to display 3
    3.740 -
    3.74 like that i want.
    I want to omit the zeros after decimal places.
    Please give me the solution.
    Regards,
    Jenny

    As it is quantity field, it will print even the decimal points...U can try this...move the value to a char variable and use truncating to remove zeros by deleting them and use this value in ur script to print the value.

  • Quantity field display only in ME52N

    Dear Experts,
    Our requirement is to restrict any change in PR qty through ME52N.
    I have done the changes in field selection group ME52, but still the field is not in display mode.
    Kindly siggest what all field selection groups involved when ME52N transaction is executed.
    As per my understanding;
    I checked AKTV-Optional,ME52-Display and NBB-Mandatory...result should be display but the result is still optional.
    Also as per rule combination of display field with any other mode results display only(except suppressed).
    Is it getting overruled through hard coded standard programs...kindly advise.
    Regards

    SAP-MM wrote:
    Dear Experts,
    > Our requirement is to restrict any change in PR qty through ME52N.
    > I have done the changes in field selection group ME52, but still the field is not in display mode.
    >
    > Kindly siggest what all field selection groups involved when ME52N transaction is executed.
    > As per my understanding;
    > I checked AKTV-Optional,ME52-Display and NBB-Mandatory...result should be display but the result is still optional.
    >
    > Also as per rule combination of display field with any other mode results display only(except suppressed).
    > Is it getting overruled through hard coded standard programs...kindly advise.
    >
    > Regards
    hi,
    please change in me52n not in me51.
    and come to me52n 
    select other purchase requsion
    given your requsion number  and click on change / display option  then it displiedin change mode
    Thanking you.

  • In smartform quantity field move to left side.

    Hi,
    smartform output quantity field displaying rightside.
    how can i move quantity field to leftside.
    Regards,
    Suresh.

    Hi Suresh,
    check this
    Left/Right Alignment of Quantity field?
    hope it helps you
    Regards!

  • BSP view quantity field causing error CX_BSP_CONV_ILLEGAL_REF

    Hi All,
    I have a htmlb inputfield on the view of my MVC bsp.  The field type bound to this inputfield is a quantity data type.  When I run the application i get the error:
    Following error text processed in system: 
    When I debugged into it the below exception is triggered:
    CX_BSP_CONV_ILLEGAL_REF
    Can anyone please, please tell me how to get around this?
    After further investigation, we've discovered that quantity fields display fine when they are an attribute on the model itself.  But the problem occurs when the quantity field is on a structure which is an attribute of the model.
    Many thanks,
    Liz.
    Edited by: Liz O'Leary on Nov 4, 2009 3:36 PM

    Hi Raja,
           I am getting same exception. Here i am creating input field at run time.My code is
                   CREATE OBJECT lref_inputfield.
                   lref_inputfield->disabled      = lwa_fieldcatalog-disabled.
                   lref_inputfield->id            = lwa_fieldcatalog-fieldid. 
                   lref_inputfield->submitonenter = lwa_fieldcatalog-submitonenter.
                   lref_inputfield->value         = <lv_value>.       "0.00"            
                   lref_inputfield->width         = lwa_fieldcatalog-width.
                   lref_inputfield->_value        = lwa_fieldcatalog-_value.     "//MODEL/MS_STRUCT.ZCURR"
    Getting Exception if i call below method
          CALL METHOD lref_inputfield->if_bsp_bee~render_to_string
                     EXPORTING
                       page_context = m_page_context
                     RECEIVING
                       result       = lv_element_string.

  • Quantity fields not getting displayed in the second total row

    Hi,
    As per the requirement I have to display 2 total rows for an ALV report using CL_GUI_ALV_GRID. I am able to get the first total row properly using method get_subtotal(). However for the next total row only the character fields are getting displayed and the quantity fields are coming blank.
    The second total row will have different values based on a formula.
    Please help me out in resolving the issue.
    Thanks,
    Abhishek

    You can provide first row as the SUBTOTAL and next row as the TOTAL.
    Get one extra column on which you can do the SUBTOTAL.
    Regards,
    Naimesh Patel

  • Quantity field in alv display

    Hi all.
    we are phasing a  problem.
    I am using alv to display in output.
    I am using a Quantiti field (BDMNG),.
    in this field if nodata is there then it is showing 0.000(that is the default value).
    I don't want those zeros.I want only space(blank only).
    Can any body help me to solve this issue.
    Thanks in advance
    Eswar.

    Hai,
         While building field catalog For quantity field Set the NO-ZERO attribute to 'X'.
         Or you can change the quantity filed to character in the alv display.
    Mark points if helpful.
    Regards,
    Umasankar

  • Is is possible to display quantity field in FBU3?

    Hi,
    Is it possible to display the quantity field in FBU3? We have activated the quantity field for FBL3N but not able to find the configuration to do it for FBU3.
    Please guide.

    Good Morning Everybody,
    The above question still continues...
    {Please Answer}

  • CJI3 report not displaying values correctly in the "Total Quantity" field

    Dear Friends,
    Need your assistance on the issue explained below,
    In our project there is a scenario where the actuals posted on a WBS are split/distributed to various WBS.These actuals that are split can be CATS entries,manual posting (KB21) or postings that come to R3 from a legacy system.The split happens by means of a custom program and is not standard.There is a tab seperated text file that contains the split percentages and the sender as well as the receiver WBS elements.Off late it has been observed that after the split is done the CJI3 report does not show the split quantities correctly and hence there is difference in the values displayed in the currency field.This is not a rounding off difference and is considerable.We have done all possible analysis from our side but i am unable to find how the difference occurs.
    To add to this i have even come across certain notes which describe the issue closely but none of it has helped so far. I have simulated the scenario with the same settings in the Quality server and it seems to work fine there without any glitches. We have even compared the program in both the Quality as well as the Production servers and there is no difference in the program as well.The values for the total quantity field are stored in the table COVP and it has been observed the report is fetching this data to display in CJI3.
    I have run CJEN too but this too does not correct the report. I was just wondering if any of our colleagues can provide me with some suggestions or insight in this issue.
    Regards,
    Gokul

    Hi Praveen,
    Thanks for the response.
    Actually i did debug the program with the help of our technical guys but found nothing wrong in both the quality and the production system. We compared the program in both the systems and it seems to be same. I am exploring this issue. Will update the findings here.
    In case anyone has any suggestion please do suggest.
    Regards,
    Gokul

  • Tcode VL10G  quantity field values are not displaying ?

    Hi All,
    In TCODE - VL10G - Sales and Purchase Order display  -
    After passing the input values it displays the results with minimum fields in the ALV layout.  When I add Quantity fields to the layout - WMENG -Order quantity and any other Quantity related fields it is not displaying values in the results. Even though the values exists in the table.
    Can anyone tell me what could be the reason? In the input screen u2013 passing the values in USER ROLE tab has anything related to this issue?
    I tried to debug and could not find code related to VBEP table or other table which has quantity fields.
    Please let me know if any ideas? Thanks in advance.

    Hi,
    We are using - SAP ECC 6.0 system.
    Any hint how I can solve this?
    Thanks.

  • How to display Quantity fields in Table control

    Hi,
    I need to display quantity fields in my table control based on the resb-meins field. i.e. I need a feature similar  to qname of ALV Grid Control in Table control.
    Can any body help me.
    Regards,
    Srinivas

    hi,
    use the charecter filed and   convert u field in to charecter
    check this link
    Re: character to decimal conversion
    ~linganna

  • 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

  • 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

  • Quantity field in ALV

    Hello All,
          I am using OO - ALV in which I am displaying a quantity field.This field is an editable field and if user tries to change the value and SAVE , it is taking some wrong values.
    Say suppose I am having 1.000 as the initial value and if user changes it to 2.000 and saves it is converted to .002.
    I tried with qfieldname , ref_fieldname of fieldcat but of no use. Anything apart from this will be highly appreciated.
    Regards,
    Dhwani

    User might be changing the value to only 2 and you might have declared the fieldcat with 2-3 decimal places. If you enter value with decimals say 2.001 it will take.
    Otherwise you need to replace it with char value as Nanda has suggested.
    Hope it helps.
    Thanks,
    Jayant

Maybe you are looking for

  • Apple TV image doesn't match computer screen

    We have a new Apple TV and are able to navigate using the TV screen to access content, but our MacBook Pro which is "synced" to the Apple TV displays different content and seems to operate independently. Any ideas on how to have the TV display and la

  • Empy openMQ destination

    Hi. I have another problem. I try to send a message to a topic destination, but it doesn't persist (dest. is always empty). No errors and the log and seems to be fine. I post my JAVA code, some metrics and a log after starting the JAVA class. "For pe

  • Firefox double or triple boots before opening

    Application Basics Name Firefox Version 3.6.10 Profile Directory Show in Finder Installed Plugins about:plugins Build Configuration about:buildconfig Extensions Name Version Enabled ID Adblock Plus 1.2.2 true {d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d} Do

  • Java Applet + Security: blacklist: hasBeenModifiedSince

    I am trying to understand java blacklist. I am working on an applet and in my java console I get the following errors. security: blacklist: hasBeenModifiedSince 1366405605649 (we have 1366405324565) security: blacklist: hasBeenModifiedSince 136640564

  • After updating to version 6 my iphone 4 will not work all is see is a flashing white apple!  I cant get to the application screen.

    I updated my i-phone 4 software to version 6.  Unfortunately my phone now wont work, it doesnt get passed the initial white apple which now flashes.  I have tried holding down the power and home button for 10 seconds, it makes no difference.  when it