[ALV] Price field got truncated 2 digits after pressed 'Save'

Dear experts,
In ALV change mode, user change the data directly in ALV report.
There is one field which stores price information as defined with  Domain-WERTV8.
When user input any price data, then press 'Save'. Then the price data will be truncated 2 digits always.
For example:
If user input 2222, then after saved, the ALV report will show as 22.22.
What we want is the ALV report still will show 2222 and updated to the table as 2222.  But right now above issues existed...
If we change the table directly via SM30, the price data will not be truncated and no issues.
Please kindly let me know if any where has issues???
Thank you so much.

Hi,
     I think the problem is the currency key is not referred in the field catalog. The currency key should be referred always, while using currency in ALV.
    If you are using LVC_S_FCAT, pass CURRENCY field with the required currency like USD,LYDN etc. If the currency field is different for each line item, populate the currency field in the internal table and pass the fieldname declared for currency key in the internal table to CFIELDNAME. Also, decalre the currency field as type CURR in the internal table.
eg
wa_fcat-COL_POS      = '1'.
wa_fcat-FIELDNAME   = 'PRICE'.               "Price field in internal table INT_OUTPUT
wa_fcat-TABNAME     =  'INT_OUTPUT'
wa_fcat-CURRENCY   =  'USD'.
OR
wa_fcat-CFIELDNAME = ' CKEY'.            "Currency Key Field in internal table INT_OUTPUT
APPEND wa_fcat TO int_fact.

Similar Messages

  • How to remove connect and workbook link after pressing Save as,Print,Export

    I have to remove the connect link and workbook link which appear AFTER pressing Save as,Printable Page,Export in a discoverer viewer report. I had already removed the link in the report itself with changing the uix files, but after pushing the link for export, save as or print the link Connect and Workbook still appear.
    I know that I have to change something in UIX Files, but which one and what I have to change...? Have anyone an idea? Thanx for fast reply, it´s a urgent problem.
    in addition: In metalink,otn and google were no solution...

    If the tone really is a single (or at least narrow band) frequency like the picture shows, I'd try the Notch Filter on the Audition/Effects/Filter and EQ menu.  It might take some playing around to get the exact frequency and tweak the amount of cut you apply vs. the effect it will have on surrounding frequencies--but if you can get the right balance, you can then easily apply this to the whole of every file.
    Sorry, can't help on the Premiere Pro question since I only use Audition.

  • Which trigger fires after pressing 'Save' button on toolbar.

    hi,
    I wanted to know which triggers get fired after pressing 'save' button on toolbar, and in which sequence it get's fired.

    When you press 'save' it tries to do a commit_form.
    Before commiting the form, it checks for any errors which might occur at form level, block level or item level and does the commit only when it doesn't find one.

  • User Exit which runs after pressing SAVE button at VF01 Screen.

    Dear all,
    I need user Exit which runs after pressing SAVE button at VF01 Screen.
    Kind Regards,

    If you search the forum, you can find plenty of threads on this, for example Re: Badi or user exit for VF01 while save Can you let the forum know what exactly you want to achieve using user exit during saving of a billing document?
    Regards,

  • Problem (implicit commit) after calling  POP UP in f-43 after pressing SAVE

    Hi all ,
    I have done an enhancement for F-43 after pressing SAVE a pop up will be given to enter amount after entering the amount the user will press enter then i check the amount entered if the value is incorrect then i through an error message so the document should not be posted.
    But the issue is the document no is generated or fetched from number range before my enhancement but not commited in NRIV, and when the popup is called , the DOCUMENT no is commited as after the call screen a new LUW is started.
    Iam thinking calling the popup before the DOCUMENT NO is generated or fetch from number range.
    Any solution to resolve this .
    Regards,
    Madhukar Shetty

    Hi Madhukar Shetty,
    For your requirement you can use interface BTE 1020 which gets triggered just before save. Keep your condition based on SY-UCOMM as it will get triggered for Simulate & Save modes. At this point of time system will not have any document number and you can raise any error as well, coz system has not saved anything.
    Thanks & Regards,
    Faheem.

  • In ML81N, Quantity Field allows maximum 3 digits after the decimal.

    Hi Everyone!
            Hope things are going good.
            In SES, ML81N, The Vendor has a total invoiced value of $9033.5 .
            The Gross Price of the Product is USD 13,333.33
            The Quantity entered is                        .667 or .668.
             Both of the quanities entered  gives a value which is $6 more or less.
            The only way to arrive at $9033.5 is to use quantity .6675 and the Quantity field does not allow the entry of more than 3 decimal digits.

    Dont change the domain, as this has a huge impact on your system. At least talk to SAP before you are doing that.
    I am just the opinion that you have a wrong unit of measure for your material.
    You did not say what unit you use, but if it is KG, then you better use Gram to meet your requirement.

  • Throw a popup message just after pressing SAVE button?

    Hello
    I want to throw a message IMMEDIATELY after clicking the SAVE button by user, so, i put JS as below in the Pre-Save event of the form, but its not working, directly am getting the file-download manager dialog box, pls. let me know how to achieve my requirement?
    app.alert ("Pls. dont forward this file after saving on your local machine, its against norms")
    Thank you

    Try
    below script on  javaScript and PreSave event of the form
    xfa.event.cancelAction = 1;
    xfa.host.messageBox("Pls. dont forward......");
    Regards,
    Jay

  • Getting dump after pressing save button in web interface

    Hi all!
    When i press save button in my web interface. i'm getting dump:
    The following error text was processed in the system EDW : Syntax error in program GP1ARALDY6TX0M51YNJ5FNELBCI .
    The error occurred on the application server kurmutau_EDW_01 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Form: VALUE_TO_SID_CONVERT1 of program SAPLRRSI
    Form: VALUE_TO_SID_CONVERT1 of program SAPLRRSI
    Form: VALUE_TO_SID_CONVERT of program SAPLRRSI
    Function: RRSI_VAL_SID_SINGLE_CONVERT of program SAPLRRSI
    Form: GET_SID of program GP5VHI3S252BZAWN36WKBAS71QH
    Form: GET_DIMID_DA of program GP5VHI3S252BZAWN36WKBAS71QH
    Form: WRITEIC of program GP5VHI3S252BZAWN36WKBAS71QH
    Form: WRITEIC of program GPEP1KAM5Q04J9717R7T5PDWE0W
    Form: APO_WRITEIC of program GPEP1KAM5Q04J9717R7T5PDWE0W
    Method: _WRITE_TO_CUBE of program CL_RSDRI_INFOCUBE=============CP
    Infocube and web interface were imported from BW3.5 system...
    How can i solve this problem?
    Thanks in advance...

    Go in ST22 and post the short dump to better ubderstand.
    Regards

  • Purchase price to have 4 digits after decimal point

    Hi Friends,
    Would you please help me out with this issue?
    The purchase price needs to have 4 digits after the decimal point, because the product/component would be packed and sold in other unit, which may give huge value difference.
    The price can be set for the product/component per 100, but is there any setting in SAP Reference IMG?
    Thanks for your help.
    Regards,
    JT

    Hi,
    In material Master (MM01) which unit you maintain for that material. Go to MM02 and keep Base Unit of Measure as storing unit as earlier and maintain Sales unit (unit of measure in which the material is sold) or Order Unit (Specifies the unit of measure in which the material is ordered) in the Purchase Order according to your requirement and Enter the factor for converting the alternative unit to the base unit. In your case product/component would be packed in a Different unit.
    OR
    In your case product/component would be packed in a Different unit.
    Maintain the (BOM) Bill of Material for the finished product you are selling and its component.Create Finished Product as material type as FERT and Components as material type as HALB or ROH.
    Now try your transaction with Finished Product only and sale.
    Hope the above  will help.
    Regards,
    Biju K

  • To Disble the Field in Table Control after clicking Save button

    Hi,
    I have a requirement as follows. i need to disable one field in the table control after clicking save button. i tried with SCREEN elements but it disabling whole the table control but i need to disable that particular one record only in the table control. i found Structure CXTAB_COLUMN in documentaion. it has the properties like invisible. can any body tell how can we disble that particular field in table control only for the one record. and how can we use CXTAB_COLUMN.
    Thanks in advance.

    hi,
    do like this...
    in USER_COMMAND_1000 module of PAI,
    MODULE user_command_1000 INPUT.
      CASE ok_code.
        WHEN 'BACK' OR 'UP' OR 'CANC'.
          LEAVE PROGRAM.
        WHEN 'SAVE'.
          fl = 1.
          GET CURSOR LINE lin.
      ENDCASE.
    ENDMODULE.                 " user_command_1000  INPUT
    and make on module disable in Loop Endloop in PBO.
    and write like this...
    MODULE disable OUTPUT.
      LOOP AT SCREEN.
        IF tab1-current_line = lin AND fl = 1.
          screen-input = 0.
        ELSEIF tab1-current_line < lin.
          screen-input = 0.
        ELSE.
          screen-input = 1.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.
    ENDMODULE.                 " disable  OUTPUT
    here fl and lin both are type i.....
    and there will b one module in PBO
    MODULE tab1_change_tc_attr.
    in that put if condition....
    MODULE tab1_change_tc_attr OUTPUT.
      IF sy-ucomm <> '' AND sy-ucomm <> 'SAVE'.
        DESCRIBE TABLE itab LINES tab1-lines.
      ENDIF.
    ENDMODULE.                    "TAB1_CHANGE_TC_ATTR OUTPUT
    ur problem will solve...
    reward if usefull....
    Edited by: Dhwani shah on Jan 2, 2008 1:17 PM

  • How to fetch the data & display the data if fields got the same name in alv

    hi frnds, i need ur help.
    how to fetch the data & display the data if fields got the same name in alv grid format.
    thanks in advance,
    Regards,
    mahesh
    9321043028

    Refer the url :
    http://abapexpert.blogspot.com/2007/07/sap-list-viewer-alv.html
    Go thru the guide for OOPs based ALV.
    Use SET_TABLE_FOR_FIRST_DISPLAY to display the table:
    CALL METHOD grid->set_table_for_first_display
     EXPORTING
    I_STRUCTURE_NAME = 'SFLIGHT'     “Structure data
    CHANGING
    IT_OUTTAB = gt_sflight.          “ Output table
    You can also implement
    Full Screen ALV, its quite easy. Just pass the output table to FM REUSE_ALV_GRID_DISPLAY. 
    For controlling and implementing the FS-ALV we have to concentrate on few of the components as follows :
    1. Selection of data.
    2. Prepare Layout of display list.
    3. Event handling.
    4. Export all the prepared data to REUSE_ALV_GRID_DISPLAY.
    Regd,
    Vishal

  • How can I allow the application to line through a field that has been locked after being digitally signed?  We have multiple sections on a form with some fields being proposed information and other in another section having the approved information. once

    How can I allow the application to line through a field that has been locked after being digitally signed?
    We have multiple sections on a form with some fields being proposed information and other in another section having the approved information. once the approved information is entered we line through the proposed field so the data entry clerk won't pick up the wrong information.  However we are receiving an error when attempting to enter data  in the field which we have this edit.  Error property: line through cannot be set because doing so would violate the document permission setting.  any idea how we can get around this issue?

    You can control which fields are locked down after signing by setting up a collection. Then those that are not locked can be changed after signing. If this is not possible, then the line outs must occur prior to signing.

  • How can I allow the apHow can I allow the application to line through a field that has been locked after being digitally signed? plication to line through a field that has been locked after being digitally signed?

    How can I allow the application to line through a field that has been locked after being digitally signed?
    We have multiple sections on a form with some fields being proposed information and other in another section having the approved information. once the approved information is entered we line through the proposed field so the data entry clerk won't pick up the wrong information.  However we are receiving an error when attempting to enter data  in the field which we have this edit.  Error property: line through cannot be set because doing so would violate the document permission setting.  any idea how we can get around this issue?

    HI,
    Kindly post this query in Acrobat forum:Acrobat
    Regards,
    Florence

  • ALV OUTPUT FIELD LEANTH

    HI EXPERTS,
    IN ALV OUTPUT FIELD LENTH IS MAX 128?
    IN MY REQUIRMENT THE FIELD HAS 500 CHARTERS
    Moderator Message: So where is the question? And why type in CAPITAL letters? Do some research before you post a question here. Also, please read the Rules of Engagement of this forum
    Edited by: kishan P on Apr 1, 2011 10:10 AM

    Hi,
    Linking F4 Help to Fields
    For the last section, we will deal with linking F4 help to fields. It is easy. As usual, define, implement and register the event “onf4” at proper places in your code. For F4 help, you must register the fields whose F4 request will trigger the “onf4” event. For this you must prepare a table of type “LVC_T_F4” and register this table using the method “register_f4_for_fields”. While preparing table you must include a line for each field which will trigger F4 event. For each field in the structure;
    Pass the fieldname to ‘FIELDNAME’
    Set ‘REGISTER’ to make the field registered,
    Set ‘GETBEFORE’ to provide field content transport before F4 in editable mode
    Set ‘CHNGEAFTER’ to make the data changed after F4 in editable mode.
    Preparing table for the fields to be registered to trigger F4 event
    DATA: lt_f4 TYPE lvc_t_f4 WITH HEADER LINE .
    lt_f4-fieldname = 'PRICE'.
    lt_f4-register = 'X' .
    lt_f4-getbefore = 'X' .
    APPEND lt_f4 .
    CALL METHOD gr_alvgrid->register_f4_for_fields
    EXPORTING
    it_f4 = lt_f4[] .
    A sample “onf4” method implementation
    METHOD handle_on_f1 .
    PERFORM f4_help USING e_fieldname es_row_no .
    er_event_data->m_event_handled = 'X' .
    Again, we set the attribute “er_event_data->m_event_handled” to prevent further processing of standard F4 help.
    Regards,
    Ranjit Thakur.
    <b>Please Mark The Helpful Answer.</b>
    ENDMETHOD .

  • Can we edit Gross Price field in Sales Order

    Hi experts,
    According Help document (help - under Sales A/R/Sales Order-Sales document content tab ) as follows, userwe should be able to edit gross price field in Sales order
    Enter in this field the unit price including tax. SAP Business One calculates automatically the unit price before tax and the tax amount, based on the tax code in the row. After pressing the TAB key, the Unit Price field and the Tax/Unit field are updated accordingly.
    The tax amount is calculated as follows:
    *Gross Price / (1 + Tax %) * Tax % = Tax Amount*
    But when I set up in form setting visible and active for Gross Price,  though I AM NOT ABLE TO EDIT GROSS PRICE FIELD
    Is it bug in SAP ? I
    BR
    Samir Gandhi

    Hi Samir Gandhi,
    You may check SAP Note Number: 1060666 to see if it applies to you.
    Thanks,
    Gordon

Maybe you are looking for