Matrial document - scrapping- Amount field calculation

Hi,
Can any body explain how the amount in material document is arrived (consider both case - moving average price , standard price)
The scenario is,
Goods issued for scrapping - movent type 551  -  T code MB1A
How the amount in local cuurency (table MSEG , field -DMBTR ) is calculated by the system . Consider both cases - moving average price  & standard price)
Is it possible to find what unit price or from where it has taken unit price for calculating the amount
Regards
Ayyappan

Hi,
Thanks for your kind help.
We developed one report for scrapping (movement type 551). In that, we have taken the following
Price : from material master - V or S
Qty   : from material document
Amount : price * qty
there is a small difference between the amount what we have calculated as mentioned above and the amount in local currency in MSEG table field DMBTR of material document
Example :
In report :   price = 77.8 , qty = 2 ,           amount = price * amt = 155.6
But in table MSEG (material segment )    amount = 155.61
There is a differece of 0.01.
Likewise, we have differece for many material . The differce amount is in decimal points only. Client is asking to match these two amounts .
What may be the reason for this  or how to resolve it
Regards
ayyappan

Similar Messages

  • Length of amount field in New GL at the document entry

    Hi,
    1) At present I am working on ECC 6, EhP 4 with New GL Activated & Old GL "Not deactivated" (i.e deactivate update of Classic General Ledger GLT0 not done).
    2) The total table (FAGLFLEXT) & Line item table (FAGLFLEXA) field in new GL has amount field length as 23 digit.
    3) When I am trying to enter any FI Document in SAP, using transaction code F-02 or FB60 etc, the length of amount field is coming as 13 digit. I am not able to enter higher value
    Question:-
    a) Is the above issue due to "non-deactivation" of "Old GL"? As per my understanding, it is not, but wanted your opinion.
    b) Is there any configuration which needs to be done to increase the length of the amount field at transaction level?
    Thanking you in advance
    Santosh Agarwal

    a) Is the above issue due to "non-deactivation" of "Old GL"? As per my understanding, it is not, but wanted your opinion.
    No, it is not.
    b) Is there any configuration which needs to be done to increase the length of the amount field at transaction level?
    No, there isn't.  The field length that is appearing during document entry is really dictated by the data type of fields such as DMBTR, WRBTR in table BSEG; which is CURR (13,2).  Although the GL view (FAGLFLEX* tables) have longer length, the limitation in entry view (BSEG, etc.) stays as 13,2.

  • Field calculation doesn't auto update

    Hello -
    I have a complicated PDF Form that has several pages of fields that are totaled and averaged on the last page. I'm using Acrobat X on the Mac.
    Basically, on the last page there are 2 subtotal fields that are calculated based on other (direct-entry) numeric fields in the document. Those 2 SUBTOTAL fields update automatically when I change the direct-entry fields. So far so good.
    But, then I have a FINAL AVERAGE field that is supposed to average the two subtotals. But when I update one of the direct-entry values, the subtotals update but the final average does not.
    Here's where it gets screwy:
    If I try to manually enter a valid number (validation is OK from 0-3) in one of the SUBTOTALs, the subtotal does not change but this forces the FINAL AVERAGE field to update correctly.
    If I try to manually enter an invalid # (such as 5) in either of the 2 SUBTOTAL fields Acrobat won't let me enter that number, but it WILL recalculate the final average using that number and give me the wrong answer.
    I have tried locking the fields, turning validation on and off, but neither has any effect.
    I'm using the AVERAGE calculation function. I wonder if the problem is that I'm averaging a field that is itself using the Average calculation.
    There are only 2 fields being averaged. I could just add them and divide by 2, but that is not an option in the field calculation, unless I write a javascript, which I haven't learned how to do yet. So, I can't tell whether that would fix the problem. Is there a way to write a custom calculation formula other than using javascript?
    Thanks for any help you can give!

    The field calculation order is most likely not correct. You just have to set the order to whatever makes sense for your form.
    To do this in Acrobat 10, go to form editing mode (Tools > Forms > Edit) , and then select: Tasks > Other Tasks > Edit Fields > Set Field Calculation Order

  • How to roll up Amount field upto Input Criteria Posting period

    Hi All,
              I have a requirement to create a FI Budget report where the User will give the Posting Period as the input criteria, and based on the entered Posting period, 2 amount fields, "Original Budget" & "Current Month" need to get derived by looking at another amount field called “actual”, by rolling up the Amounts up to the entered Posting period.
    For example, the user gives input as Posting period = 06, which is December because Fiscal year starts from July here. And my Cube has an amount field "Actual" which displays amount for each posting period. Therefore when posting period = 06, then the "Actual" amount value for months July (PP = 01) through December (PP = 06) should be rolled up i.e added and displayed in the "Original Budget field". The “Current month” should only display the amount for the input criteria month.
    How can I do that, any suggestions please?
    Thanks!!

    Hi Sam,
             Is there any way i could do it without the SAP Exit? If yes, how? If no, can u specify in the document you sent, which code i could use as reference for my requirement?
    Thanks

  • How to deactivate withholding tax base amount field

    Dear Experts,
    My in client is using the extended withholding tax with setting Define Formulas for calculating withholding tax, my client feel that the tax base amount field is open and user may accidentally input the wrong amount there thus can anyone tell me how to deactivate this tax base amount field?
    thank you

    Dear,
    Go into Withholding tax type under SPRO>Financial Accounting Global Settings>Withholding Tax>Extended Withholding Tax>Calculation>Withholding Tax Type.
    While maintaining the Withholding Tax type you have selected "W/tax base manual" under the control data. Just don't select that option then your requirement will be met.
    There are other options also like Manual W/tax amt. which you might want to go for.
    Regards,
    Chintan Joshi.

  • BEx Query Designer - working on fields calculations

    Dear all,
    I Developed Query which will give me output for Amount of Consumption of Chemicals during selected Period and Profir Center.
    I Display Amount field using formula
    also i calculate amount of one material (CANE) using formula, now i want to calculate cane / amount and display in third colum for Example :
    Material                          |--- CANE|   Cane / Amount--
    |      Amount
    2000001     RANOCIDE M     |----
    | -
    |     587,984.30 INR
    2000002     RANOCIDE SR     |----
    | -
    |      473,880.80 INR
    2000003     SANTROSE     |-- |--
    |      270,818.20 INR
    CANE     CANE             |  2,961,039,200.47 INR  |                X        |     
    now in Cane / Amount formula field  i am not getting any value , Please can some one Provide me solution for it...
    I dont want to display material Cane in output
    my output should look as follow:
    Material                           |      Cane / Amount |      Amount
    2000001     RANOCIDE M      |       5,035.92         |     587,984.30 INR
    2000002     RANOCIDE SR      |       6,248.49         |      473,880.80 INR
    2000003     SANTROSE      |       10933.67876  |      270,818.20 INR
    and dont want to show INR every time with each currency amount
    Please help
    Regards
    Pumam
    Edited by: PPShinde on May 24, 2011 12:16 PM

    HI,
    I am calculating CANE by using formula
    in Data source MSEG and MKPF data is there
    in formula for CANE i am taking conditions
    first calculate CANE 262 formula field
    Key figure is AMOUNT
    MAterial  is CANE
    and MOvement type 262
    same way for CANE 261
    Key figure is AMOUNT
    MAterial  is CANE
    and MOvement type 261
    In CANE
    i did CANE 262 - CANE 261
    now for Amount i did same way
    first calculate AMOUNT 262 formula field
    Key figure is AMOUNT
    MAterial  is All materials having MAterial TYpe Chemicals
    and MOvement type 262
    same way for AMOUNT 261
    Key figure is AMOUNT
    MAterial  is All materials having MAterial TYpe Chemicals
    and MOvement type 261
    IN AMOUNT
    i did AMOUNT 262 - AMOUNT 261
    r u getting
    i cant able to show u output in excel ot tabulkated format
    Thanks lot
    Regards
    Punam

  • Table name for the AMOUNT field in header details of costomer invoice

    hi experts,
                    I need the table name for the field AMOUNT(wrbtr) which is in header details in fb70 tcode .I have checked many tables like bseg bsid,  there its showing the amount but at item level.

    Hi,
    the table behind structure INVFO is RBKP (Header level).
    For item level you have table RSEG.
    These tables refer to MM.
    Once the MM documents are completed and you post the corresponding invoice RBKP data goes to BKPF and RSEG data goes to  BSEG data.
    The relattion between MM(RBKP/RSEG) and FI(BKPF/BSEG) documents is in field BKPF-AWKEY. This field usually contains (RBKP-BELNRRBKP-GJAHR that is MM documentMM year).
    e.g. (BKPF-AWKEY = 51056024412009)
    Best regards.

  • Amount field in Quote Products

    Hi
    Can you change the built-in Amount field in Quote Products to add a calculation from a custom field?
    Kind Regards
    Andrea

    Chen,
    if table x is a dictionary table, you are frorced to give the currency key field for the amount fields..
    If you use WRITE for output, it is WRITE amount CURRENCY curr
    if you use ALV, you have to link the fields in the field catalog (<alv_fieldcat>-cfieldname = 'CURRENCY_FIELD')
    Regards,
    Clemens

  • Amount field change in the doc.

    Hi,
    Can we change the amount field in the document after posting?
    i want to change the group currency mount.
    any possibility.
    Swapna

    Hi
    It is not advisable to change the amount after posting.
    As it updates in different tables and shows inconsistency.
    Using the Function module : FI_DOCUMENT_CHANGE, you can change the value - but it is not advisable.
    SKS

  • Dispute case Amount Fields in Local Currency

    Is it possible to have dispute case amount fields available in local currency instead of document currency?

    You can add new fields to the Dispute case (attributes) - therefore it is possible.
    It is not there as standard - however you can add the fields to the UDMCASEATTR00 table - define how they are populated via a BAdI - and then add the new fields into you case attribute profile.

  • Amount field of VK11 isnt fetching from flatfile when im performing it'sBDC

    Dear Guru,
    Here i have encountered a typical issue.
    Im Performing BDC for VK11 (Create Condition Record) with "Key Combination" --->> "Location, Material Code (Base Price for Longs)".
    While I am running this BDC ( source code attached below) in All screen mode every datas which are of type "CHAR" like--->>
    Condition type(kschl) ,
    Plant(werks) ,
    Material No(matnr),
    Valid From date(datab),
    Valid To date(datbi),
    Rate Unit(konwa) are coming properly from flatfile except
    Rate (condition amount - KBETR)  which is are of data type "CURR".
    So guru I want to know what code i should add into my below bdc prog to fetch data properly into  RATE - Condition amount field which is of type " CURR".
    Pls Help.
    Source Code:
    REPORT z_bdc_vk11_famd
           NO STANDARD PAGE HEADING LINE-SIZE 255.
    *& DATA-DECLARATION
    TYPES: BEGIN OF t_cust,
                kschl LIKE rv13a-kschl,
                werks LIKE komg-werks,
                matnr LIKE komg-matnr,
                kbetr LIKE konp-kbetr,
    ***            konwa LIKE konp-konwa,
                datab LIKE rv13a-datab,
                datbi LIKE rv13a-datbi,
           END OF t_cust.
    TYPES: BEGIN OF t_sucrec,
             cnum TYPE komg-werks,
             cnam TYPE komg-matnr,
    END OF t_sucrec.
    TYPES: BEGIN OF t_errrec,
           lineno TYPE string,      "Line Number
          message TYPE string,      "Error Message
    END OF t_errrec.
    DATA:  v_file TYPE string,      "Variable for storing flat file
          it_cust TYPE STANDARD TABLE OF t_cust, "Internal table of Customer
          wa_cust LIKE LINE OF it_cust,  "Workarea of Internal table it_cust
        it_sucrec TYPE STANDARD TABLE OF t_sucrec,
                                          "Internal table of Success records
        wa_sucrec LIKE LINE OF it_sucrec,
                                       "Workarea of Internal table it_sucrec
        it_errrec TYPE STANDARD TABLE OF t_errrec,
                                       "Internal table of Error records
        wa_errrec LIKE LINE OF it_errrec,
                                       "Workarea of Internal table it_errrec
        it_bdctab LIKE bdcdata OCCURS 0 WITH HEADER LINE,
                                        "Internal table structure of BDCDATA
    it_messagetab LIKE bdcmsgcoll OCCURS 0 WITH HEADER LINE,
                                        "Tracing Error Messages
           v_date LIKE sy-datum,  "Controlling of session date
          v_index LIKE sy-tabix,  "Index Number
         v_totrec TYPE i,         "Total Records
         v_errrec TYPE i,         "Error Records
         v_sucrec TYPE i,         "Success Records
        v_sesschk TYPE c.         "Session maintenance
    *& SELECTION-SCREEN
    SELECTION-SCREEN: BEGIN OF BLOCK blk1 WITH FRAME TITLE text-001 NO
    INTERVALS.
    PARAMETERS: p_file    TYPE rlgrap-filename.
    "rlgrap-filename is a predefined structure
    SELECTION-SCREEN: END OF BLOCK blk1.
    SELECTION-SCREEN: BEGIN OF BLOCK blk2 WITH FRAME TITLE text-002 NO
    INTERVALS.
    PARAMETERS: p_mode    LIKE ctu_params-dismode DEFAULT 'N',
                p_update  LIKE ctu_params-updmode DEFAULT 'A'.
    SELECTION-SCREEN END OF BLOCK blk2.
    *& INITIALIZATION
    INITIALIZATION.
      v_date = sy-datum - 1.
    *& AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          program_name  = syst-cprog
          dynpro_number = syst-dynnr
          field_name    = ' '
        IMPORTING
          file_name     = p_file.
    *& START-OF-SELECTION
    START-OF-SELECTION.
      v_file = p_file.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename                = v_file
          filetype                = 'ASC'
          has_field_separator     = 'X'
        TABLES
          data_tab                = it_cust
        EXCEPTIONS
          file_open_error         = 1
          file_read_error         = 2
          no_batch                = 3
          gui_refuse_filetransfer = 4
          invalid_type            = 5
          no_authority            = 6
          unknown_error           = 7
          bad_data_format         = 8
          header_not_allowed      = 9
          separator_not_allowed   = 10
          header_too_long         = 11
          unknown_dp_error        = 12
          access_denied           = 13
          dp_out_of_memory        = 14
          disk_full               = 15
          dp_timeout              = 16
          OTHERS                  = 17.
      IF sy-subrc = 0.
    ****MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    ****         WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    *& END-OF-SELECTION
    END-OF-SELECTION.
      LOOP AT it_cust INTO wa_cust.
        v_index = sy-tabix.
        PERFORM bdc_dynpro      USING 'SAPMV13A' '0100'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'RV13A-KSCHL'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=ANTA'.
        PERFORM bdc_field       USING 'RV13A-KSCHL'
                                      wa_cust-kschl.
        PERFORM bdc_dynpro      USING 'SAPLV14A' '0100'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'RV130-SELKZ(01)'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=WEIT'.
        PERFORM bdc_dynpro      USING 'SAPMV13A' '1595'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'RV13A-DATBI(01)'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '/00'.
        PERFORM bdc_field       USING 'KOMG-WERKS'
                                      wa_cust-werks.
        PERFORM bdc_field       USING 'KOMG-MATNR(01)'
                                      wa_cust-matnr.
        PERFORM bdc_field       USING 'KONP-KBETR(01)'
                                      wa_cust-kbetr.
        PERFORM bdc_field       USING 'KONP-KONWA(01)'
                                      'INR'.
        PERFORM bdc_field       USING 'RV13A-DATAB(01)'
                                      wa_cust-datab.
        PERFORM bdc_field       USING 'RV13A-DATBI(01)'
                                      wa_cust-datbi.
        PERFORM bdc_dynpro      USING 'SAPMV13A' '1595'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'KOMG-MATNR(01)'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=SICH'.
        CALL TRANSACTION 'VK11' USING it_bdctab
                                 MODE p_mode
                               UPDATE p_update
                        MESSAGES INTO it_messagetab.
        IF sy-subrc = 0.
    *& reading success records to corresponding internal table
          READ TABLE it_messagetab WITH KEY msgtyp = 'S'.
          IF sy-subrc = 0.
    *        wa_sucrec-cnum = it_messagetab-msgv1.
            wa_sucrec-cnum = wa_cust-werks.
            wa_sucrec-cnam = wa_cust-matnr.
            APPEND wa_sucrec TO it_sucrec.
            CLEAR wa_sucrec.
          ENDIF.
        ELSE.
    *& reading error records to corresponding internal table
          READ TABLE it_messagetab WITH KEY msgtyp = 'E'.
          IF sy-subrc = 0.
            CALL FUNCTION 'FORMAT_MESSAGE'
              EXPORTING
                id  = sy-msgid
                no  = it_messagetab-msgnr
                v1  = it_messagetab-msgv1
                v2  = it_messagetab-msgv2
                v3  = it_messagetab-msgv3
                v4  = it_messagetab-msgv4
              IMPORTING
                msg = wa_errrec-message.
            wa_errrec-lineno = v_index.
            APPEND wa_errrec TO it_errrec.
            CLEAR wa_errrec.
          ENDIF.
        ENDIF.
        CLEAR : it_bdctab, it_messagetab.
        REFRESH: it_bdctab, it_messagetab.
      ENDLOOP.
      DESCRIBE TABLE it_cust LINES v_totrec.
      DESCRIBE TABLE it_errrec LINES v_errrec.
      DESCRIBE TABLE it_sucrec LINES v_sucrec.
      PERFORM disp_data.
      SKIP 2.
      IF v_sucrec > 0.
        PERFORM disp_success_data.
      ENDIF.
      SKIP 2.
      IF v_errrec > 0.
        PERFORM disp_error_data.
      ENDIF.
    *& Form bdc_dynpro
    *#  text
    *#  -->P_0104 text
    *#  -->P_0105 text
    FORM bdc_dynpro USING program dynpro.
      CLEAR it_bdctab.
      it_bdctab-program  = program.
      it_bdctab-dynpro   = dynpro.
      it_bdctab-dynbegin = 'X'.
      APPEND it_bdctab.
    ENDFORM. " bdc_dynpro
    *& Form bdc_field
    FORM bdc_field USING fnam fval.
      CLEAR it_bdctab.
      it_bdctab-fnam = fnam.
      it_bdctab-fval = fval.
      APPEND it_bdctab.
    ENDFORM. " bdc_field
    *& Form disp_data
    FORM disp_data .
      ULINE (45).
      WRITE : / sy-vline,
      4 'FAMD Price Master UPDATE SUMMARY'(004) COLOR 1,
      45 sy-vline.
      ULINE /(45).
      WRITE : / sy-vline,
      'Total Records Processed'(007),
      28 '=',
      30 v_totrec,
      45 sy-vline,
      / sy-vline,
      'Error Records'(005),
      28 '=',
      30 v_errrec,
      45 sy-vline,
      / sy-vline,
      'Successful Records'(006),
      28 '=',
      30 v_sucrec,
      45 sy-vline.
      ULINE /(45).
    ENDFORM. " disp_data
    *& Form disp_success_data
    FORM disp_success_data .
      ULINE (45).
      WRITE : / sy-vline,
      14 'Successful Records'(012) COLOR 1,
      45 sy-vline.
      ULINE /(45).
      WRITE : / sy-vline ,
      'Plant Number'(010) COLOR 2,
      17 sy-vline,
      25 'Material Number'(011) COLOR 2,
      45 sy-vline.
      ULINE /(45).
      LOOP AT it_sucrec INTO wa_sucrec.
        WRITE: / sy-vline ,
        wa_sucrec-cnum,
        17 sy-vline,
        19 wa_sucrec-cnam,
        45 sy-vline.
      ENDLOOP.
      ULINE /(45).
    ENDFORM. " disp_success_data
    *& Form disp_error_data
    FORM disp_error_data .
      ULINE (90).
      WRITE : / sy-vline,
      35 'Error Records'(013) COLOR 1,
      90 sy-vline.
      ULINE /(90).
      WRITE : / sy-vline,
      'Record Number'(008) COLOR 2,
      sy-vline,
      37 'Reason for error'(009) COLOR 2,
      90 sy-vline.
      ULINE /(90).
      LOOP AT it_errrec INTO wa_errrec.
        WRITE : / sy-vline,
        wa_errrec-lineno,
        17 sy-vline,
        wa_errrec-message,
        90 sy-vline.
      ENDLOOP.
      ULINE /(90).
    ENDFORM. " disp_error_data
    Flat file Sequence:
    Condition Type     Plant     Matrial No     Rate      Validity start date     Validity end date

    I worked out n i hav found the solution

  • Error entering amount field.

    Hi Friends,
    I am facing a strange issue while entring amount field in screen. The default setting for decimal notation is
    123.45
    While posting a document if I wrongly enter amount as
    123,45
    it is showing error message as Input should be in the form __,___,___,__~.__ which is alright. But when I correct the input value to correct format as 123.45 its still showing the same error.
    It seems some variable is not getting cleared. This issue is not specific to document posting but I am facing this issue for all transaction in SAP. What is the work around to get this issue corrected.
    Warm Regards,
    Praveen

    Hai Praveen,
                         You are right. The field to which you are entering the data, is not getting cleared. So the next time you try to enter the data, it is considering the previous data. So, consult your ABAP Consultant and the corrections done.

  • Required amount field in FB03

    Hi SAP experts,
    My client want amount field in FB03 .but i didnt get that field in fb03, is it any similar report with amount field
    Plz update me
    Have a good day
    Regards
    Surya

    Dear,
    You can get the amount filed in FB03 also.
    Enter document number , company code & fiscal year.
    Document will be displayed.
    Now click on Choose layout & select change layout.
    Add Amount filed from column set to displayed column & save it.
    Hope above will helpful.
    GOPAN.

  • Enable Amount field (KOMV-KBETR) in VA01 for Documen type DR (Debit Note)

    Hi All,
    Is it possible to enable the input of Amount field in item level at the VA01 screen?
    I can input it in item level at VA01 screen for Normal order, but not found when input the Debit note...
    The user want to input it in the main screen not want to input in Condition screen...
    Please help.
    Thanks.
    Terry

    Hi Raja,
    Thanks for your reply.
    I found that the field exist in Document type OR, when I change the Screen sequence group from GA to AU,
    the field KOMV-KBETR appear.
    But is it possible to change my own Screen sequence group, and assign usable fields in the group?
    Terry

  • Sum of amount field in the Query

    Hello folks,
    I have a amount field in the query, along with the amount field I also need to show sum of all the rows for this amount fields, can some one guide which is best way of doing it?
    Thanks,
    KK

    Thanks for the response's...Rama, Prasad and Sandesh!
    I have changed the Property of the Amount field (SAP Standard Infoobject) to Calculated Result as 'Summation' but when I tried to save the changes in Query designer I am getting following error
    runtime error '91'
    Object variable or with block variable not set
    runtime error '4XX'
    ActiveX component can't create object
    And its disconnecting from BEX Server...how can I resolve this error?
    Thanks,
    KK
    Edited by: kumar K on Aug 21, 2008 10:46 AM

Maybe you are looking for