Display MENGE field with no decimals in smartfroms

Hi Experts,
I  want to print MSEG-MENGE field with no decimals in smartforms , how do i declare this field,
I have also declared this field in global defination in quantity/currency field...
But i am unable to get the output..
I tried using &mseg-menge(13.0)& but i get an error in my program stating formating is wrong.
Thanks In Advance.
Ashwin.

write a code to display menge value.
data: l_menge   type i,
      l_menge2  type string.
move: w_bseg-menge to l_menge.
move: l_menge to l_menge2.
condense l_menge2.

Similar Messages

  • Custom Table Currency field with 5 decimals

    Hello,
    I have created a custom table and it has a field for 'US Plan Cost'. The users wanted it with 5 Decimals. I have created a custom domain and custom data element of DEC Type with 5 Decimals.
    Domain: ZCOST: Data Type: DEC, No. of Characters: 11, Decimal Places: 5.
    However When I am trying to create entries in the table though, it's giving me error: Input must be in the format _____,_____,_____,_____~._____
    The entry that I am creating is: 1.23450.
    I dont know what went wrong? Can anybody please help me?
    Thanks Much.

    Are you doing this with SM30?  or from a program?  If a program, be sure your data value is precisely '1.23450'. It sounds like you're inputting something else...
    Or, post code?

  • How can I modify the Contacts Template to display additional fields with out selecting "add field" everytime?

    How can I modify the contacts template in either iCloud, my iPhone, or my iPad to display additional fields that I always use ... example: How can I get Job Title to always be a fillable field with out selecting "add field" everytime?

    Let the HairSalon implement the java.lang.Comparable interface. You'll need to write code for
    public int compareTo(Object o1, Object o2)
    The compare method would cast the Objects to HairSalons and return the difference in price.
    Then use java.util.Arrays.sort(Object []);

  • To display text field with more than 1000 length in ALV

    Hi Friends,
           I need to display material long text field which is more than 1000 length in ALV or Object oriented ALV.
    Please help me to resolve the issue.
    Regards,
    Jaya.

    Hi,
    U mean to say in a single cell of ALV ??
    It is not possible in ALV .. As per OSS note 857823
    Below is the reason for same.. I think you should to split in number of columns.
    Summary
    Symptom
    Entries in cells of the type CHAR or string are truncated after 128 characters in the SAP GUI.
    Other terms
    ALV Grid Control (cl_gui_alv_grid), function module (Full-screen)
    Grid (Reuse_alv_grid_display, SAPLSLVC_FULLSCREEN), SAPGUI, back end, front end
    Reason and Prerequisites
    The data table that is sent to the front end only allows character values with the length 128.
    Solution
    This is the standard system behavior and cannot be changed.

  • Displaying same field with two different selection criteria.

    Post Author: spulkundwar
    CA Forum: Crystal Reports
    Hi All,  i want to display list of product in two different table having life counter field less than 0 and life counter field greater than 0. The product list is grouped by product category. The report should look like as shown belowProduct Category1                                             Soon expired (Life 0-25)                                                        Expired Products (Life < 0 )                            Product Name  Product Life                                                        Product Name    Product Life                                     Coke                            24                                                                        Pepsi                    -2                                    Beer                           12                                                                          Vodka            -34 Product Category2                                  Soon
    expired (Life 0-25)                                          Expired
    Products (Life < 0 )
                                Product Name  Product Life       
                                     Product Name   Product Life
                                 Pepsi                    14             
                                           Coke              -2  
                             Beer                     2                
                                          Vodka            -34
    Is this possible to show two tables in each report row? When i set selection formula to product name, it sets the same selection formula to all the fields in the report.

    Post Author: pvierheilig
    CA Forum: Crystal Reports
    Hello -
    Can't you set the group to be on the category?  Selecting the product name in the record selection formula will present only those product (as opposed to categories).
    A subreport, as suggested, will work as well, but your stated record selection will continue to produce the same results - check that, too.  Additionally, you could group on the category and add a group 'b' section (Section Expert; see the Help file).

  • Problem in displaying two fields in dropdown on selection screen

    Hi All,
    I have a reqmt where i need to display the dropdown list for certain field.
    For this perticular fields there is a description attached to it.
    Please let me know teh way where i can display the field with description in dropdown.
    Like
    field1   field2
    P         Hi
    R        Hello
    S        How are you
    I am using  CALL FUNCTION 'VRM_SET_VALUES' for the same.
    Please reply asap.
    Edited by: PRADEEPKULAT on May 20, 2010 2:03 PM

    Hi,
    I am not sure about your question,
    I understood that you have to Display both key and Text.
    If so Concatenate both Key and Text .
    I mean,
    TYPE-POOLS : VRM.
    DATA : T_VRM TYPE VRM_VALUES,
                 WA_VRM TYPE VRM_VALUE.
    WA_VRM-KEY = 'Field1'.
    CONCATENATE WA_VRM-KEY  'Field1' INTO
                       WA_VRM-TEXT SEPERATED BY SPACE.
    INSERT WA_VRM INTO TABLE T_VRM.
    WA_VRM-KEY = 'P''.
    CONCATENATE WA_VRM-KEY  'Hi' INTO
                       WA_VRM-TEXT SEPERATED BY SPACE.
    INSERT WA_VRM INTO TABLE T_VRM.
    WA_VRM-KEY = 'R'.
    CONCATENATE WA_VRM-KEY  'Hello' INTO
                       WA_VRM-TEXT SEPERATED BY SPACE.
    INSERT WA_VRM INTO TABLE T_VRM.
    WA_VRM-KEY = 'S'.
    CONCATENATE WA_VRM-KEY  'How are you' INTO
                       WA_VRM-TEXT SEPERATED BY SPACE.
    INSERT WA_VRM INTO TABLE T_VRM.
    Then pass this table to the function module VRM_SET_VALUES.
    I hope this resolves your issue.
    Regards,
    Raghava Channooru

  • Currencies with 5 decimals

    Hi,
    For pricing reason, I need to define 5 decimals in some currencies (USD, ARS, EUR and DEM). I was reading some information about it, and the solution I found is to create one Z currency for each estandar currency (USDN, EURN, AR5 and DEM5).
    I am not sure about the problem this procedure can cause in the system. Suppose that the local currency is USD, so I will have the SD invoice in USDN. The document will be managed as a document in foreing currency. I wondering if I will also have rounding differences in the cIearing document, and for some report I will have to adapt the information.
    Does anyone have implemented this solution?
    Which problems can cause?
    Any recomendation about that?
    Thanks,
    Cecilia

    Hi,
    check the following threads:
    Currency in 5 decimal places.
    Custom Table Currency field with 5 decimals
    Any changes you going to made in OY04 is affecting cross clients.
    It is NOT recommended that when postings have already been made, that a
    change in the currency be done, as amounts posted can become invalid or
    incorrect as a result which is most critical in production environment.
    The decimal places setting in OY04 is limited to 5. It is not possible to set more decimal places in standard SAP.
    Technial explanation is also described on note 434349, 137626 and 126857
    Hope this was helpful for you.
    Regards,
    Cristiano

  • Currency field with Decimals in ALV

    Hi,
    Im having a problem with display of currency field wityh decimals.
    My currency field is declared as type  dmbtr ( whis is currency field data element in standard).
    I have some amount say 1589.00 which is Korean currency. But this Korean currency doesn’t have any decimals.
    (My source field is always 2 decimals irrecpective of curency. It will store as below,
    if value 100 JPY--> TABLE STORE 100.00
             200 SGD --.> 200.00
             500 KRW  --> 500.00
    sO MY source field always maintained with 2 decimals)
    In alv im using the  currency field so that it displays the correct decimals.
          wa_fcat-cfieldname  = 'WAERS'.
          wa_fcat-ctabname    = 'IT_FINAL_ALV'.
          wa_fcat-datatype = 'CURR'.
    Now IN alv it displays 158,900 which is not correct.
    My requirement is I have display this value as 1589 for Korean currency(as it doesn’t have any decimals)
    ( I observed that the value is always stored with 2 decimals in database field)
    if value 1589.00 and output currency is JPY(japan) IT HAS TO Display 1589.000.
    Can anybody give any hint..?
    Message was edited by:
            agrud agrud

    please  try like this  it should work..
    fieldcatalog-fieldname   = 'NETPR'.
      fieldcatalog-seltext_m   = 'Net Price'.
      fieldcatalog-col_pos     = 7.
      fieldcatalog-outputlen   = 15. 
      fieldcatalog-do_sum      = 'X'.        "Display column total
      fieldcatalog-datatype     = 'CURR'.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
    reward  points if it is usefull .....
    Girish

  • In reports, i want to display currency field out put with diff currencies

    Hi all
    in reports, i want to display currency field out put with different type of currencies like 1st record in rupees 2nd record in dolors 3rd record in       
    Euros. for this i should not use any tables and any currency fields and any functional modules. pls give replay urgently.

    Hi swamy,
    so sorry, but you have to use some of the objects you do not want to:
    Currency values in ABAP are stored in currency fields (type CURR). If they are stored in structures or database, every CURR field must be connected to a CUKY field (currency key).
    Displaying data using WRITE statement four output on a list is obsolete technique, you may use the use WRITE with the option CURRENCY c to format according to currency c in table TCURX.
    SAP recommends to use ALV technique. If you use ALV to display structure data, then create a dictionary structure with currency value and currency key. The rest goes automatically.
    Believe me: It is much easier and more reliable.
    Regards,
    Clemens

  • How to display HTML formatted text in the field with Item Style: Raw Text

    How can I display HTML formatted text in the field with Item Style: Raw Text.
    Currently the Item Style is Raw Text, but the text is being displayed along with HTML tags without formatting.
    Regards

    Hi,
    Use Item Style formattedText.
    Regards,
    Gyan

  • Need help with a form where checkbox displays another field

    I created a from in january that works perfectly.  I have different departments as checkboxes and if the box is checked, it displays another subform with a comments, approval, and signature field.  However, we just added two new departments.  I copied one of the checkboxes and subsequent fields twice.  I then changed the script for the approriate field and checked to make sure there were no other functions I was missing.  However, now when I open the form, the two new fields show by default.  If I check the box and uncheck, the associated subform disappears.  I think there may be some simple thing i am overlooking. 

    I'm not getting any errors at all. The form isn't online as of yet so I dont have a link. I will attach a screen shot and maybe you can tell me where I went wrong.

  • BADI me_process_po_cust, no obtain decimals of menge field

    Hi all !,
    I can´t obtein decimals in menge field when i use get_data method in badi me_process_item.
    it´s my code in process_item method.
            ref              TYPE REF TO if_purchase_order_mm ,
            re_items         TYPE purchase_order_items ,
            line_item        TYPE purchase_order_item ,
            po_item          TYPE mepoitem .
        ref = im_item->get_header( ).
        re_items = ref->get_items( ).
    LOOP AT re_items INTO line_item.
            po_item = line_item-item->get_data( ).      
           po_item-menge without decimals.
    ENDLOOP.
    Can you help me?.
    Thanks all,
    regards!!

    I resolved it. In PO, I got a Warning Message "Order quantity violates rounding rules (See long text)".
    This post was very helpful : Quantity Copied in Purchase Order is not same as Purchase Requisition
    regards.

  • Question of possible problem with "display as" field in MS Outlook contact

    Are you aware of any problems with an apparent shift of the display as field in MS Outlook contacts after the initial syncing with their iPhone? When preparing to send an e-mail in Outlook, the auto populating of the "display as" field is now linked to incorrect contacts. Therefore, one could unknowingly send an e-mail to the wrong recipient. After seeing this error, it appears that many of my "display as" fields have shifted among contacts within my Outlook contacts. This appears to have happened right around the first time I synced my iPhone. It could be completely unrelated to the iPhone syncing but I am curious if other iPhone / MS Outlook users have experienced similar problems.

    There should be no leeway or movement. Return the phone to where you bought it and show them. It should be covered under warranty unless they determine it was dropped or accidental damage.

  • Display attachement extension field with link in report

    Hi gurus,
    Do you know how i can display in a report, an attachment extension field, with the link to the document ? It displays fine, but how can i add the hyperlink to open it directly from the report ?
    Regards,
    Simion

    Hey Ben,
    Thanks for the suggestion. I understand what you are saying, the problem is that when you have an interactive report that includes a BLOB and you use the built-in method for displaying a download link, it only gives you the option of using a text link. The method is outlined in the online help under:
    Home > Advanced Programming Techniques> About BLOB Support in Forms and Reports > About BLOB Support in Reports
    This is done by using the following syntax in the Number/Date Format of the column attribute of the BLOB:
    DOWNLOAD:CC_DOCUMENTS:CONTENTS:ID::MIME_TYPE:FILENAME:UPDATED_ON::attachment:View
    Where the last parameter is the link text. The only problem is that there is no option for substituting an image rather than the link text. That's what I'm trying to work around. Sorry if you new all of this already, but I wanted to explain what I've already done. Thanks for any help you can offer.

  • Display value instead of key in input field with LOV?

    Sorry, this is so basic I'm sure it must be easy but somehow I can't find it in the documentation. The LOCATION table contains a foreign key referencing the CLIMATE table. As well as its primary key, CLIMATE has a column called NAME holding the name of the climate (e.g. temperate, tropical, etc.). The user must be able to update the climate value for the location he is working on. So I have a list of values which looks up possible climate names, the user selects the name he wants and the value gets set in the LOCATION table. That works, but the problem is that the input item displays the key value of the CLIMATE record, and I need it to display the value of NAME instead. Of course I can have another field showing the name, but that is messy, the user doesn't understand the key value and shouldn't have to see it. So how do I make one input field display the NAME, while actually updating the key value from the LOV choice?
    Thanks

    Thank you, Joseba. It does help to some extent. Now I have a non-updatable field with the climate name in it, and below that is the magnifying-glass icon that invokes the list of values. I guess that's not bad, and I can put a label next to the magnifying class saying "Click to select climate". So it's better, but still looks very odd compared to updating fields that are in the LOCATION table itself, where it's an updatable field and the maginfying glass is right next to it. Really the user should not have to behave differently just because the database chooses to hold the value that he wants to alter as a reference to another table.
    Is there at least a way to put the list of values magnifying-glass next to the field that displays teh value, rather than underneath it? They are all inside a thing called "af:panelFormLayout", and I tried setting MaxColumns to 2 in its properties, but it still won't let me move the list-of-values field alongside the other one.
    Thanks.

Maybe you are looking for

  • My Macbook 10.5.8 won't read audiobook discs.

    It reads CD's and DVD's fine, but, when I put in an audiobook disc it sometimes spins but never catches or just spins and spits it out. However, sometimes, it reads the discs just fine, but, only certain titles. Can anyone help? Thanks!

  • Crystal Report Lines / Boxes not show in Excel

    In Crystal Report 2008, I created a report with lines and boxes inserted. I then imported into SAP B1 8.8. The report looks fine in crystal report viewer with all the correct formatting. I exported the report as Ms Excel (with formatting). After expo

  • Is it mandatory to delte all the previous delta request.

    Hi Gurus, I got strucked up with the following issue. Please help We have two infocubes called regional and global cubes. We are loading data from regional infocube in to global info cube through delta update. But the values did not tied up. so I ran

  • Could not create JVM error : Substitution

    I am trying to create a substitution. I created a new VO as an extension of the existing VO, and then changed the query to include some more columns. I followed the Dev guide: 1. From the JDeveloper menu bar, select Project | Project Settings to open

  • Premiere doesn't "remember" my Video Effects! I have to edit them each time I open the project!

    Eh guys this is just crazy! Sometimes, premiere comes with this problem in a specific project where I've put effects and transitions. If I close the project, then when I will reopen it my transitions and effects will still be there but they wont be s