Calculating the GR and IR quantity

Hi Experts,
     My requirement is to calculate the Goods Receipt  and Invoice Receipt quantity for single Purchase order.
for eg :  1 PO has quantity - > 25.
{ if GR < IR } it should go to block .
   consider 3 GR'S are there for single PO and 1 IR
( GR  - >  8
  GR  - >  7
  GR - >  10 )
IR - > 25.
in the first loop it has to check with ( 8 - 25)     (25- 8 = 17)
then ( 7 - 17)          (17- 7 = 10)
then (10 -10)
how to build the logic for this?

It is not just GR or IR quantities as there may be GR reversals and IR cancellations. So you need to consider net GR quantity (GR - Reversal if any) and net IR quantity (Invoice - Invoice Cancellation quantity) for each PO item.
We built similar logic in one of our project.
1. Fetch good receipts from linked PO items in EKBE where BEWTP = 'E' and VGABE = '1'
2. Fetch invoice receipts from linked PO items in EKBE where BEWTP = 'Q' and VGABE = '2'
3. Fetch any IR cancellations (RBKP-STBLG, STJAH) if any linked to the the IR
4. The goods receipts will be positive if SHKZG = S and negative (reversal) if SHKZG = H
Using the above information you can calculate total GR qty, total IR quantity and remaining GR quantity that is not invoiced.
Rob, thank you. Advise taken!

Similar Messages

  • Calculating the memory and performance of a oracle query

    Hi,
    I am now developing application in java with oracle as a back-end. In my application i require lot of queries to be executed. Hence, the system is getting is slow due to queries.
    So, i planned to develop one Stand-alone application in java, that should show the statistics like, memory and performance. for ex:- if i enter one SQL query in the text box, my standalone application should display, the processing time it requires to fetch the values and the memory is used for that query.
    Can anybody give ideas, suggestion, etc etc...
    Thanks in Advance
    Regards,
    Rajkumar

    This is now Oracle question, not JDBC question. :)
    Followings are sample for explain plan/autotrace/SQL*Trace.
    (You really need to read stuffs like Oracle SQL Tuning books...)
    SQL> create table a as select object_id, object_name from all_objects
    2 where rownum <= 100;
    Table created.
    SQL> create index a_idx on a(object_id);
    Index created.
    SQL> exec dbms_stats.gather_table_stats(user,'A');
    SQL>  explain plan for select from a where object_id = 1;*
    Explained.
    SQL> select from table(dbms_xplan.display());*
    PLAN_TABLE_OUTPUT
    Plan hash value: 3632291705
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    PLAN_TABLE_OUTPUT
    | 0 | SELECT STATEMENT | | 1 | 11 | 2 (0)| 00:00:01 |
    | 1 | TABLE ACCESS BY INDEX ROWID| A | 1 | 11 | 2 (0)| 00:00:01 |
    |* 2 | INDEX RANGE SCAN | A_IDX | 1 | | 1 (0)| 00:00:01 |
    PLAN_TABLE_OUTPUT
    Predicate Information (identified by operation id):
    2 - access("OBJECT_ID"=1)
    SQL> set autot on
    SQL> select * from a where object_id = 1;
    no rows selected
    Execution Plan
    Plan hash value: 3632291705
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 1 | 11 | 2 (0)| 00:00:01 |
    | 1 | TABLE ACCESS BY INDEX ROWID| A | 1 | 11 | 2 (0)| 00:00:01 |
    |* 2 | INDEX RANGE SCAN | A_IDX | 1 | | 1 (0)| 00:00:01 |
    Predicate Information (identified by operation id):
    2 - access("OBJECT_ID"=1)
    Statistics
    1 recursive calls
    0 db block gets
    1 consistent gets
    0 physical reads
    0 redo size
    395 bytes sent via SQL*Net to client
    481 bytes received via SQL*Net from client
    1 SQL*Net roundtrips to/from client
    0 sorts (memory)
    0 sorts (disk)
    0 rows processed
    SQL> exec dbms_monitor.session_trace_enable(null,null,true,true);
    -- SQL> alter session set events '10046 trace name context forever, level 12';
    -- SQL> alter session set sql_trace = true;
    PL/SQL procedure successfully completed.
    SQL> select * from a where object_id = 1;
    no rows selected
    * SQL> exec dbms_monitor.session_trace_disable(null, null);*
    -- SQL> alter session set events '10046 trace name context off';
    -- SQL> alter session set sql_trace = false;
    PL/SQL procedure successfully completed.
    SQL> show parameter user_dump_dest
    */home/oracle/admin/WASDB/udump*
    SQL>host
    JOSS:oracle:/home/oracle:!> cd /home/oracle/admin/WASDB/udump
    JOSS:oracle:/home/oracle/admin/WASDB/udump:!> ls -lrt
    -rw-r----- 1 oracle dba 2481 Oct 11 16:38 wasdb_ora_21745.trc
    JOSS:oracle:/home/oracle/admin/WASDB/udump:!> tkprof wasdb_ora_21745.trc trc.out
    TKPROF: Release 10.2.0.3.0 - Production on Thu Oct 11 16:40:44 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    JOSS:oracle:/home/oracle/admin/WASDB/udump:!> vi trc.out
    select *
    from
    a where object_id = 1
    call count cpu elapsed disk query current rows
    Parse 1 0.00 0.00 0 0 0 0
    Execute 1 0.00 0.00 0 0 0 0
    Fetch 1 0.00 0.00 0 1 0 0
    total 3 0.00 0.00 0 1 0 0
    Misses in library cache during parse: 0
    Optimizer mode: ALL_ROWS
    Parsing user id: 55
    Rows Row Source Operation
    0 TABLE ACCESS BY INDEX ROWID A (cr=1 pr=0 pw=0 time=45 us)
    0 INDEX RANGE SCAN A_IDX (cr=1 pr=0 pw=0 time=39 us)(object id 65441)
    Elapsed times include waiting on following events:
    Event waited on Times Max. Wait Total Waited
    ---------------------------------------- Waited ---------- ------------
    SQL*Net message to client 1 0.00 0.00
    SQL*Net message from client 1 25.01 25.01
    Hope this helps

  • Calculating GR quantiy and Invoiced quantity  in generic datasource .

    Hi experts
    Please help me out in getting this done
    EBELN        EBELP  VGABE  BWART    BUDAT             MENGE             BPMNG        DMBTR             WRBTR      WAERS     AREWR            SHKZG
    1101-00178   00001   1     101   31.12.2010           90.275            90.275    44,234,750.00    44,234,750.00  USD       0.00               S
    1101-00178   00001   1     101   12.07.2011            0.063             0.063        30,870.00        30,870.00  USD       0.00              S
    1101-00178   00001   1     102   12.07.2011            0.063             0.063        30,870.00        30,870.00  USD       0.00               H
    1101-00178   00001   1     101   20.12.2011            5.274             5.274     2,584,260.00     2,584,260.00  USD       0.00               S
    1101-00178   00001   2           31.12.2010           90.275            90.275    44,234,267.77    44,234,267.77  USD       44,234,750.00       S
    1101-00178   00001   2           20.12.2011            5.274             5.274     2,584,225.23     2,584,225.23  USD       2,584,260.00        S
    1101-00179   00001   1     101   31.12.2010           93.231            93.231       913,663.80       913,663.80  USD       0.00            S
    1101-00179   00001   1     102   31.12.2010           93.231            93.231       913,663.80       913,663.80  USD       0.00           H
    1101-00179   00001   1     101   31.12.2010           93.231            93.231       913,663.80       913,663.80  USD       0.00           S
    1101-00179   00001   2           31.12.2010           93.231            93.231       913,650.00       913,650.00  USD       913,663.80       S
    1101-00179   00001   2           31.12.2010           93.231            93.231       913,650.00       913,650.00  USD       913,663.80           S
    1101-00179   00001   2           31.12.2010           93.231            93.231       913,650.00       913,650.00  USD       913,663.80       H
    1101-00179   00002   1     101   31.12.2010           89.153            89.153       873,699.40       873,699.40  USD       0.00          S
    1101-00179   00002   1     101   29.09.2011            9.953             9.953        97,539.40        97,539.40  USD       0.00           S
    1101-00179   00002   2           31.12.2010           89.153            89.153       873,685.37       873,685.37  USD       873,699.40       S
    1101-00179   00002   2           31.12.2010           89.153            89.153       873,685.37       873,685.37  USD       873,699.40       S
    1101-00179   00002   2           31.12.2010           89.153            89.153       873,685.37       873,685.37  USD       873,699.40       H
    1101-00179   00002   2           29.09.2011            9.953             9.953        97,530.64        97,530.64  USD       97,539.40            S
    1101-00180   00001   1     101   31.12.2010           77.925            77.925     4,675,500.00     4,675,500.00  USD       0.00          S
    1101-00180   00001   1     101   30.05.2011            3.467             3.467       208,020.00       208,020.00  USD       0.00          S
    1101-00180   00001   1     101   29.12.2011            2.685             2.685       161,100.00       161,100.00  USD       0.00            S
    1101-00180   00001   2           31.12.2010           77.925            77.925     4,675,438.00     4,675,438.00  USD       4,675,500.00       S
    1101-00180   00001   2           31.05.2011            3.467             3.467       208,000.00       208,000.00  USD       208,020.00           S
    1101-00180   00001   2           29.12.2011            2.685             2.685       161,100.00       161,100.00  USD       161,100.00       S
    I want to calculate GR quantity,GR Amount and Invoiced Qty, Invoiced Amount  using the above 3 feilds (VGABE ,BWART ,SHKZG ).
    What logic should I implement in routine .Please can anyone give me the excat ABAP code to be implemented in the routine . This is urgent requirement so please experts help me. I dont have knowledge in ABAP .Any help would be greatly appreciated

    Hi,
    First of all how generic datasourceis gettig data if it is getting from Deirect tabel then following soulation will work
    You can add the needed fields in strcuture of datasource ( Assuming that generica datasoure is directly on table).
    In Exit
    c_t_data: will have all the data from the datasource before sending it to BI. So you can populate and calculate the requried fields there.
    Loop c_t_data
    do the calculations
    Endloop
    Refer :
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0eade6c-692a-2c10-ac86-80f6b2157791?QuickLink=index&overridelayout=true
    If the datasourceis populated by abap program only, you can enhace directly their.
    Regards
    Nilesh

  • Purchase Order condition isn't calculating the value of refundable tax

    Hello Experts,
                          When i am inputting tax in invoice tab at item level footer in Purchase Order, and after that when i am calculating the taxable and the total amount the condition tab isn't displaying the tax value, the condition type is NAVS of tax in condition tab. Kindly suggest me i want to calculate tax.
    Thanks
    Harmandeep

    Hi flora
    Just get through the sequence .
    see the table fields ...
    1. From EKKO table take an entry which is having pricing conditions.
    Now in the fields list check out for field EKKO-KNUMV(document condition number).
    2.Take this condition number and now goto table KONV.
    Give the document condition number in the field  KONV-KNUMV and execute .
    This will lead to a list of document condition numbers and some other fields .
    3.Now check for field KONV-KNUMH ,KONV-KAWRT(quantity) and note the value KONV-KWERT  .
    (Remember this is at header level).
    This is ur condition record number.
    **comments
    Now from document condition number we got the condition record number (KNUMH).
    4. now since u want the item level tax procedure go to table KONP and give the condition record number and execute .
    This will give u a list of details .
    Now concentrate on KONV-KAWRT (scale quantity) KONP-KBETR(rate) as this table will store “Pricing  per UNIT “ so product of these two will give u the total pricing tax, for a particular condition type say PR00  .
    For that particular condition item .
    Check the pricing procedure .
    See t-code VK13 and check the pricing procedure .
    From me23 check the same PO num select the item and check the pricing conditions applicable .
    Select a particular pricing and goto condition->analysis->analysis pricing  ,
    Better take help of a SD functional consultant in the process.
    regards,
    vijay.

  • Min and Max quantity in PK08?

    Hi,
    can anyone please explain how the Min and Max quantity would be calculated in PK08.......
    It is really urgent and any inputs would be much appreciated.
    how does the system takes lot size in to consideration while automatic kanban calculation.
    Regards
    Mittu

    Hi,
    can anyone please explain how the Min and Max quantity would be calculated in PK08.......
    It is really urgent and any inputs would be much appreciated.
    how does the system takes lot size in to consideration while automatic kanban calculation.
    Regards
    Mittu

  • Discrepency of GR and IR quantity.

    Hi,
    in the event if the GR and IR quantity is different, my users are using MR11 to "clear-off" the discrepency amount. However, understand that the posting will be made to the Inventory G/L account.
    Is there a way which the "clear-off" can be posting to another expense G/L account?
    Thanks for the advice in advance.

    Hi
    Result of MR11 will not hit Inventory accounts. it will take PRD account. Mean to say Open item in WRX will setoff at PRD account. You have 3 account modifier for PRD.
    PRF for goods receipts against production orders and
    order settlement
    PRA for goods issues and other movements
    PRU for transfer postings (price differences in the case
    of external amounts)
    Mainatin GL accounts as per your requirement in OBYC with these combination
    Regards
    Antony

  • Updating Outbound Delivery with picking and delivery quantity.

    Hi,
    I have a scenario where in an idoc will come from external system(DELVRY05) and based on the data in the idoc I have to update the picking and delivery quantity for the outbound delivery created in SAP.The idoc has the outbound delivery number and the quantity which is sent from the legacy system.
    I do not want to do googs issue,just updatation.
    How can I update the outbound delivery?
    Please help me.Its needed urgently.
    Thanks,
    Sandeep.

    YOu can make use of the FM:
    WS_DELIVERY_UPDATE_2.
    see the sample code:
    Assume that it_500o has the Delivery Header details and it_5010 has item details
      LOOP AT it_5000.
        CLEAR lx_vbkok.
        CLEAR lv_vbeln.
        REFRESH lt_vbpok.
        REFRESH lt_prott.
        lx_vbkok-vbeln_vl = it_5000-order_number.
        lx_vbkok-vbtyp_vl = 'J'.
        lv_vbeln = it_5000-order_number+0(10).
        LOOP AT it_5010 WHERE order_number = it_5000-order_number.
          lt_vbpok-vbeln_vl = it_5010-order_number.
          lt_vbpok-posnr_vl = it_5010-order_line.
          READ TABLE lt_vbfa WITH KEY vbeln = lt_vbpok-vbeln_vl
                                      posnn = lt_vbpok-posnr_vl.
          IF sy-subrc = 0.
            lt_vbpok-vbeln = lt_vbfa-vbelv.
            lt_vbpok-posnn = lt_vbfa-posnv.
           lt_vbpok-vbtyp_n = 'J'.
          ENDIF.
          lt_vbpok-pikmg = it_5010-quantity. "Picking quantity
          APPEND lt_vbpok.
          CLEAR lt_vbpok.
        ENDLOOP.
    Update the Delivery
        CALL FUNCTION 'WS_DELIVERY_UPDATE_2'
          EXPORTING
            vbkok_wa                           = lx_vbkok
      SYNCHRON                           = ' '
      NO_MESSAGES_UPDATE_1               = ' '
           commit                             = 'X'
            delivery                           = lv_vbeln
           update_picking                     = 'X'
      NICHT_SPERREN_1                    = ' '
      IF_CONFIRM_CENTRAL                 = ' '
      IF_WMPP                            = ' '
      IF_GET_DELIVERY_BUFFERED           = ' '
      IF_NO_GENERIC_SYSTEM_SERVICE       = ' '
           if_database_update_1               = '1'
      IF_NO_INIT_1                       = ' '
      IF_NO_READ_1                       = ' '
           if_error_messages_send             = 'X'
      IF_NO_BUFFER_REFRESH               = ' '
      IF_NO_MES_UPD_PACK                 = ' '
    IMPORTING
      EF_ERROR_ANY                       =
      EF_ERROR_IN_ITEM_DELETION          =
      EF_ERROR_IN_POD_UPDATE             =
      EF_ERROR_IN_INTERFACE              =
      EF_ERROR_IN_GOODS_ISSUE            =
      EF_ERROR_IN_FINAL_CHECK            =
         TABLES
           vbpok_tab                          = lt_vbpok
           prot                               = lt_prott
      VERKO_TAB                          =
      VERPO_TAB                          =
      VBSUPCON_TAB_1                     =
      IT_VERPO_SERNR                     =
      IT_PACKING                         =
      IT_PACKING_SERNR                   =
      IT_REPACK                          =
      IT_HANDLING_UNITS_1                =
      ET_CREATED_HUS                     =
      TVPOD_TAB                          =
    endloop.

  • What is the use of Alternative Calculation Type =2 and 4

    Dear Friends
    In pricing procedure in gross value, Net value for Item and Net value has Alternative calucation type is 2.
    What is the use of it?
    Without using it these value line are also fetching net value then what is the work of it. Please give me detail information with its effects in pricing condition tab page in sales document.
    Thanking You
    Arun

    Arun biswal,
    Correct Biswal. We have at varoius stages within Pricing procedure the "net value" which is calculated. Not only the alternative calculation type "2" is used if you notice carefully they are stored as subtotals at various levels.
    For Ex Gross Value  --> Subtotal =1 --> Calc type = 2
    similarly for Net value for Item --> Subtotal =2 --> Calc type = 2
    Net value 2 --> Subtotal =3 --> Calc type = 2
    See, these are used to calculate the net value at various levels in pricing. The calculation Type has got a set of routines that will facilitate us in pricing. SAP has provided certain clauclated formulas or routines to facilitate us during calculation within pricing . Here the "2" is used for calculation without tax and store it as subtotal and display it or use it for further calculations.
    We can use this "netvalue" amount for further calculations. It is used for clarity purpose when you issue a statement to customer. (like Confirmation order) at various levels like discount amt involved, Freight involved, Rebate amount invloved.....
    Even without this Calc type or using sub total u can proceed....
    Finally we have  TOTAL  --> Subtotal =A --> Calc type = 4
    In the above line we have Calc type as 4, which means when you use TAX this calc type is used .
    Routines are used to facilitate your process....
    Regards
    Sathya

  • Would Like to Get Report of Daily Emails In and Out from Members to a DL Exchange version : 2007 I am the supervisor for the group and want to quantify this information. I do not need to see the content, just quantity is it possible ?

    Would Like to Get Report of Daily Emails In and Out from Members to a DL
    Exchange version : 2007
    I am the supervisor for the group and want to quantify this information. I do not need to see the content, just quantity
    is it possible ?

    Well, distribution groups don't really have a concept of "in" or "out". They only serve to distribute messages sent to them -- unless you're asking to know who was a member of the distribution group at the time a message was sent to the DL.
    Message tracking logs hold the information you want, though. You'd have to look for EXPAND events that reference the distribution group and take the sender's e-mail address from that event. If the DL is a simple one that's not a member of any other groups
    you could also look for RECEIVE events sent to the e-mail address of the group and get the sender's name from that event.
    You can use Powershell extract the rows of data from the logs, but you'll have to write the code to get the data out of those rows and into a format you want. Perhaps LogParser could be useful in place of Powershell?
    --- Rich Matheisen MCSE&I, Exchange MVP

  • How do I create a 1d array that takes a single calculation and insert the result into the first row and then the next calculation the next time the loop passes that point and puts the results in thsecond row and so on until the loop is exited.

    The attached file is work inprogress, with some dummy data sp that I can test it out without having to connect to equipment.
    The second tab is the one that I am having the problem with. the output array from the replace element appears to be starting at the index position of 1 rather than 0 but that is ok it is still show that the new data is placed in incrementing element locations. However the main array that I am trying to build that is suppose to take each new calculation and place it in the next index(row) does not ap
    pear to be working or at least I am not getting any indication on the inidcator.
    Basically what I am attempting to do is is gather some pulses from adevice for a minute, place the results for a calculation, so that it displays then do the same again the next minute, but put these result in the next row and so on until the specifiied time has expired and the loop exits. I need to have all results displayed and keep building the array(display until, the end of the test)Eventually I will have to include a min max section that displays the min and max values calculated, but that should be easy with the min max function.Actually I thought this should have been easy but, I gues I can not see the forest through the trees. Can any one help to slear this up for me.
    Attachments:
    regulation_tester_7_loops.vi ‏244 KB

    I didn't really have time to dig in and understand your program in depth,
    but I have a few tips for you that might things a bit easier:
    - You use local variables excessively which really complicates things. Try
    not to use them and it will make your life easier.
    - If you flowchart the design (very similar to a dataflow diagram, keep in
    mind!) you want to gather data, calculate a value from that data, store the
    calculation in an array, and loop while the time is in a certain range. So
    theres really not much need for a sequence as long as you get rid of the
    local variables (sequences also complicate things)
    - You loop again if timepassed+1 is still less than some constant. Rather
    than messing with locals it seems so much easier to use a shiftregister (if
    absolutely necessary) or in this case base it upon the number of iterations
    of the loop. In this case it looks like "time passed" is the same thing as
    the number of loop iterations, but I didn't check closely. There's an i
    terminal in your whileloop to read for the number of iterations.
    - After having simplified your design by eliminating unnecessary sequence
    and local variables, you should be able to draw out the labview diagram.
    Don't try to use the "insert into array" vis since theres no need. Each
    iteration of your loop calculates a number which goes into the next position
    of the array right? Pass your result outside the loop, and enable indexing
    on the terminal so Labview automatically generates the array for you. If
    your calculation is a function of previous data, then use a shift register
    to keep previous values around.
    I wish you luck. Post again if you have any questions. Without a more
    detailed understanding of your task at hand it's kind of hard to post actual
    code suggestions for you.
    -joey
    "nelsons" wrote in message
    news:[email protected]...
    > how do I create a 1d array that takes a single calculation and insert
    > the result into the first row and then the next calculation the next
    > time the loop passes that point and puts the results in thsecond row
    > and so on until the loop is exited.
    >
    > The attached file is work inprogress, with some dummy data sp that I
    > can test it out without having to connect to equipment.
    > The second tab is the one that I am having the problem with. the
    > output array from the replace element appears to be starting at the
    > index position of 1 rather than 0 but that is ok it is still show that
    > the new data is placed in incrementing element locations. However the
    > main array that I am trying to build that is suppose to take each new
    > calculation and place it in the next index(row) does not appear to be
    > working or at least I am not getting any indication on the inidcator.
    >
    > Basically what I am attempting to do is is gather some pulses from
    > adevice for a minute, place the results for a calculation, so that it
    > displays then do the same again the next minute, but put these result
    > in the next row and so on until the specifiied time has expired and
    > the loop exits. I need to have all results displayed and keep building
    > the array(display until, the end of the test)Eventually I will have to
    > include a min max section that displays the min and max values
    > calculated, but that should be easy with the min max function.Actually
    > I thought this should have been easy but, I gues I can not see the
    > forest through the trees. Can any one help to slear this up for me.

  • There is something wrong with the volumes buttons in my macbook pro, every time i pressed the one who raises the volume, it leads me to the screen where (i do not no what its called) the background is black with the date and time and a calculator.

    There is something wrong with the volumes buttons in my macbook pro, every time i pressed the one who raises the volume, it leads me to the screen where (i do not no what its called) the background is black with the date and time and a calculator. However, when i lower it, my safari tab goes out of the screen. What do you guys think i should do? I'm getting very nervous.

    hey HAbrakian!
    You may want to try using the information in this article to adjust the behavior of your function keys to see if that resolves the behavior:
    Mac OS X: How to change the behavior of function keys
    http://support.apple.com/kb/ht3399
    Take care, and thanks for visiting the Apple Support Communities.
    -Braden

  • I would like to know how i can create a bell graph with out using sub VIs, the data that i created consists in 500 readings with values of 0 to 100, i calculated the mean value and standard diviation. I hope some one can help me

    I would like to know how i can create a bell graph with out using sub VIs, the data that i created consists in 500 readings with values of 0 to 100, i calculated the mean value and standard diviation. I hope some one can help me

    Here's a quick example I threw together that generates a sort-of-bell-curve shaped data distribution, then performs the binning and plotting.
    -Kevin P.
    Message Edited by Kevin Price on 12-01-2006 02:42 PM
    Attachments:
    Binning example.vi ‏51 KB
    Binning example.png ‏12 KB

  • What determines the price and tax calculation for consignment stock?

    Hi All,
    anyone knows how the price and tax are calculated for consignment stock? in other word, among the info record , contract or material master, what determines the price and the tax calculation for consignment stock?
    please advise, your input will be rewarded.
    thanks,

    First preceeding is taken by contract and then info records of consginment

  • Explain the term 'If a quantity of goods received is not yet calculated'

    Hi SAP Experts
    I read the note: 212286-Overview note: Valuation during goods movements.
    In the end, it reads
    "Determination of credit posting to order during the goods receipt for production order During goods receipt for the production order, the value of goods movement is determined by the credit of the production order.
    If a quantity of goods received is not yet calculated, credit posting
    to order is calculated from plan credit.
    If the quantity of goods received is already calculated, the order is credited for actual costs."
    Please help to explain the sentence, thanks you.
    If a quantity of goods received is not yet calculated, credit posting
    to order is calculated from plan credit."
    Regards
    Mike

    Thank Mukthar.
    I know the logic for the production, but i don not think the sentence' if the quantity of goods received has not yet been calculated' is apply to the logic of production.
    For example, 135103-GR for purchase order in foreign currency: Rounding, In the beginning, it also reads "The problem can occur if the quantity of goods received has not yet been calculated.".
    It not only describe the production order, but also describe the purchase order. so i think it apple to one special situation.
    Regards
    Mike

  • Problem with the fiells MEINS(PO Unit ) and MENGE(Quantity) .

    Hi experts
    I am having problem with the fiells MEINS(PO Unit ) and MENGE(Quantity) of the datasource 2lis_02_acc .
    I have created custom cube and have mapped the fiels MEINS to infoobject 0PO_UNIT and MENGE(Quantity) to infoobject 0CPQUAOU.
    Now the data is successfully loaded in the cube but the values of the above 2 fields are getting changed.
    In r3 the value for MEINS is "AU","EA" , "H" etc but this field value is getting converted to "LE" in the cube and also the field  MENGE(Quantity
    ) in r3 is for example "1"  it is getting converted to 3 in the cube. do u have any idea what is the problem.
    The rule type is direct assingment and there is no routine .
    Any clues.
    Thank you.

    holy devilz wrote:
    Hi experts
    > I am having problem with the fiells MEINS(PO Unit ) and MENGE(Quantity) of the datasource 2lis_02_acc .
    >
    > I have created custom cube and have mapped the fiels MEINS to infoobject 0PO_UNIT and MENGE(Quantity) to infoobject 0CPQUAOU.
    > Now the data is successfully loaded in the cube but the values of the above 2 fields are getting changed.
    > In r3 the value for MEINS is "AU","EA" , "H" etc but this field value is getting converted to "LE" in the cube and also the field  MENGE(Quantity
    > ) in r3 is for example "1"  it is getting converted to 3 in the cube. do u have any idea what is the problem.
    > The rule type is direct assingment and there is no routine .
    > Any clues.
    > Thank you.
    Hmm, your system should consider the alternative UOM maintain in the material master.
    Each material in SAP has its standard, base unit of measure (stored in MARA-MEINS). To allow using alternative units, those can be maintained per material in table MARM. So, assuming the Base UoM is only considered (for LE), it converts material quantity from one unit to another, most likely from alternative units to the base one. So, changing that settings must solve. http://goo.gl/JuZlm
    Alternative steps:
    1.Goto MM42 (Assuming there's no BAPI req?)
    2. change po unit from basic unit to other -> save OK
    3. change po unit from other to basic unit -> save OK
    Also, MD63 shows all data in the base unit of measure.
    If you want to explore basic steps, goto RSD1 > Additional > Alternative UoM.
    Best Regards, @{

Maybe you are looking for