PM Orders whose total actaul quantity is equal to withdrawl quantity

hello all,
our requirement is we are generating an ALV  report to show PM Orders whose total actual quantity is equal to total withdrawn quantity...
i.e it should not display records like below,
RSNUM     material         BDMNG        SHKZG   ENMNG
800268591   *****             3                   H                3
800268591    ****             3                   S                0
800268591     ***             3                   H                0
800268591   *****             3                  S                 3
where as the report should show only records like below...
RSNUM     material         BDMNG        SHKZG   ENMNG
8000208770  MTE30001     50                 H           50
8000208770  MTE30001     50                 S            50
8000208770  MTO10020     20                 H            20
8000208770  MTO10020     20                 S            20.
i.e each material wise i should check this ,
my code is like below
loop at it_resb INTO wa_resb.
       if wa_resb-shkzg eq 'H'.
            lv_bdmng1 = lv_bdmng1 + wa_resb-bdmng.
            lv_enmng1 = lv_enmng1 + wa_resb-enmng.
        ELSEIF wa_resb-shkzg eq 'S'.
            lv_enmng2 = lv_enmng2 + wa_resb-enmng.
            lv_bdmng2 = lv_bdmng2 + wa_resb-bdmng.
       endif.
     endloop.
     if lv_bdmng1 eq lv_bdmng2 AND lv_enmng1 eq lv_enmng2.
         if lv_enmng1 ne 0 and lv_enmng2 ne 0.
           APPEND  LINES OF it_resb  to it_resb1.
         endif.
     endif.
   endif.
  endloop.

clear lv_bdmng1 and lv_bdmng2 in first line inside loop stat.

Similar Messages

  • GR quantity is equal to Confirmation Quantity plus tolerance

    Hello frinds,
    in my senerio my clint wants what ever confirmation quantity ,that much only the system allowed to do GR + Tolerance (Under delivery /Overdelivery)
    Ex - suppose my order quantity is -100
              Confirmed quantity is -50
    Under delivery / Overdelivery tolerance is -10%
    Then system allow me to do GR of qyt 40 & 60
    now i m creationg status in BS02 my system dont allow me to do GR  without  confirmation but atterwords confirmation  system allow me to do GR of order quantity+ Tolerance  which i dont want
    Pls Pour some light on it
    Regards,
    Girish

    Dear Girish,
    I too have the same requirement exactly as yours(Conf qty + tolerance)
    Can you give me the coding writen in that enhancement??? which will be so helpful for me
    Thanks in advance
    Anil

  • Total confirmation quantity not equal to planned confirmation quantity

    HI
    In co11. if i entered more than operation quantity
    its showing warning message
    Total confirmation quantity not equal to planned confirmation quantity
    Message no. RU117
    how can i change into error msg???
    thanks in advance

    Dear,
    Go to OPJB then select
    00000000     RU  117 Total confirmation quantity not equal to planned confirmation quantity  E- Error.
    It will work for you.
    Regards,
    R.Brahmankar

  • Order has been fully supplied and invoiced but a quantity of 76 is still sh

    Hi,
    Customer order XXXXXX line30This order has been fully supplied and invoiced but a quantity of 76 is still showing as outstanding on MD04
    Total quantity is 288 out of which 212 was deliverd and invoiced once and 76 was delivered another time and invoiced the status is compleate for both
    when you see in MD04 for same material it is showing 76 under Rec/Re coluem and it is showing purchse req under MRP colum, for rest of the line items it is showing Purchase order item under MRP coluem
    user doest want this 76 in MD04
    I have searched the note in SAP note no:Note 25444
    SDRQCR21: Recovery of sales and delivery requirements
    and run but no results. the problem is still there.
    and also please guid me wether it is a sd issue are MM or any other because as to my analysis if i run SDRQCR21 it has to delete all bad requirments but this is with purchase requisistion under MRP colum in MD04 screen with a     *  mark.
    please help me find a solution
    Thanks for the help
    Regards
    Rajendra Prasad

    Hi,
    Try and click delivery completed in sale order and check MD04.
    This will not appear.
    regards
    suresh

  • Display  Purchase order, PO Item , Order Number ,entry sheet quantity ,entry sheet price ,invoice quantity, invoice price  against each line number

    hello all,
    i have an ALV report requirement like this,
    on the initial screen i have displayed(for a given agreement number like in ME33K )
    in the selection screen i have taken agreement number as EKPO-EBELN.
    purchase document number        item number        short text        target quantity      net price
    5400000019                                  1                      xxx                  1.000                  304300.00
                                                        2                     xxxx                 1.000                  500000.00
    the above fields i have taken from EKPO table.....
    and on double clicking the  item number i have displayed
    line number          service number       short text           quantity    units    gross price   quantity released
    1                           swr10                   xxxx                 2.00          kg          500             2
    2                           swr11                    xxxx                5.00          EA         500             2
    the above fields i have taken from ESLL (esll-extrow, esll-srvpos, esll-ktext1 , esll-menge  etc......)
    this i have done by passing EBELN to ESLH and getting PACKNO and passed this PACKNO to ESLL.
    now my question is i need to display  Purchase order, PO Item , Order Number ,entry sheet quantity ,entry sheet price ,invoice quantity, invoice price
    against each line number above.....
    from which table do i need to take these fields.....
    please guide me....
    thankq....

    Thanks Andra,
    The problem is the multiple invoices is for non goods receipt item so there will be no delivery.At the time of creating a PO the GR is not checked so there will be no delivery .
    Also this setting is for invoices which are comming from Vendors.But if we are genrating the invoices manually it is not blocking those invoices.Also i there is nowhere mentioned in Incomming invoice to set tolerence for incomming invoice.Are you talking about Vendor tolerences?
    Thanks in advance
    Edited by: Metroid01 on May 14, 2009 6:52 PM

  • Picked Quantity to be made equal to Delivery Quantity in VL02n

    Hello Experts,
    Have a requirement, where upon when entering in VL02n with a delivery no, the Picked Quantity field (LIPSD-PIKMG) should be equal to Delivery Quantity (LIPS-LFIMG).
    Only the exit USER_EXIT_READ_DOCUMENT  of include MV50AFZ1 is being called when entering VL02n and in that i tried changing the value of LIPSD structure and even tried changing XVBFA-RFMNG field value, but it is not working.
    I understand that LIPSD is structure and noticed that picked quantity is getting stored in VBFA-RFMNG field...
    Please let me know if any one have come across the same requirement and resolved it technically, rather than functional approach of EK00 condition type or making the item category as non relevant for picking, we tried these options and it is not working for the business.  I got to see many previous threads on this topic, but there was no conclusion or technical solution provided.
    So looking for TECHNICAL solution based on your experience and whether it is resolved.  Its kind of urgent and would appreciate the help of experts who have resolved it earlier. thanks

    OK got it resolved.
    We have to use BADI LE_SHP_DELIVERY_PROC, methods CHANGE_FIELD_ATTRIBUTES and CHANGE_DELIVERY_ITEM. And it works.
    thanks

  • Issue in service order billing- total cost is positive but negative cost exists in different periods

    Hello Experts,
    Need you advice/solutuin on the below scenario:
    In a service order the total accumulated cost is positive, (some material positings has been reversed in some other periods, so that is displayed as negative cost in the cost overveiw): but when we try to the billing in DP90. it is asking for credit memo request also. 
    In the DIP profile configuration following characteristics are maintained for generation of dynamic items:
    Activity type, Cost element, Material, Object number, Period, Posting row, Transaction Currency, Unit of Measure,
    As per my understanding negative cost is taken into consideration because of the "Period" characteristics maintained in the ODP1 tcode. And this is causing the creation of credit memo request due to cancelled postings in different period, as a result for that period total accumulated cost is not positive.
    My analysis may not be correct, Please let me know your understanding on this and how we can handle this situation if not want to create the credit memo request (because it will require extra configuration i.e. sales area mapping etc and may lead to change in interfaces etc..)
    Regards
    Pankaj verma

    Hello Experts,
    Please give your inputs.

  • Cost of order and total standard activity times

    Hi,
    please let me know from which table i can get the following
    1.Planned total cost of a production order  &
    2.Total standard activity times of production order.
    Regards
    Ramesh

    for order cost use function module /CWM/CKCOPROD_ORD_TARGET_COST
    test the function module with your abaper if it returns the vadesired values, through table it will be vary complecated.
    for order related activity times please check AFVV, AFVC and AFRU tables .
    hope this will help
    reward if useful
    Thank you
    Anand

  • Total of percentages must equal 100

    Hello,
    SRM 7/Ext classic scenario
    When user changes one of the line items in a 10 item PO, he gets the error "Total of percentages must equal 100". System automatically creates a duplicate entry for cost distribution of 100% for one of the line items.
    Will applying note 1464163 resolve this issue? Please tell me if other notes in this note need to be implemented?
    Thanks

    Hi
    It should work.
    after implementing note in dev, are you getting this error .
    Can you replicate the issue in Development ?
    I dont know why it did not work for you.
    Let me see refer our SAP answers on my message .
    in the mean time , you raise oss message.
    Muthu

  • Creating New Sales Order with Total=$0.00

    B1 is not allowing me to save a Sales Order with a DocTotal of zero.  Is there a setting to allow this?  Something I missed in admin, maybe?

    In Sales Order, I enter a Customer.  I then select a Delivery Date.  I click 'Add' and receive a message box: "Document total is zero. Continue?"
    I click 'Yes'.
    I receive a status bar error:
    "Invalid total [[Sales Order - Document Total]] [[Message 131-44]]"
    The Sales Order does not add.

  • Confirmation - Total of percentages must equal 100

    Dear All,
    We are using SRM 7.0 EHP1 support package level 11. At the time of goods receipt , i have the error "Total of percentages must equal 100" , "Error in account assignment for item 1" .  But it is ok while creating SC, PO.
    I've searched the forums and oss notes and found some notes related this issue. But they are valid up to support package level 10, therefore not suitable for me..
    So anyone who has further advice ?  If not, i think it is better to open a message to SAP ?
    Thanks in advance...
    Best regards,

    Hi Yateesh,
    In our case, we used a custom Account assignment category in PO which was mapped to a "ERP Standard Account Assignment Category - V". (This mapping could be checked in SPRO, under Account Assignment in SRM susyem).
    However the same ERP category 'V' is also mapped to additional SRM custom Account Assignment Categories.
    When the system tries to create the confirmation for the PO, it tries to reverse map the ERP category 'V' and since there is no one-to-one mapping, the system does a dynamic
    mapping based on the account field values and determines the account
    assignment category 'CC' instead. Now, the 'CC' account category might not be authorized for the user (With which you are trying to post the confirmation) and therefore the system tries to add another accounting line which results in the invalid  error message 'Total of percentages...'.
    To rectify this behaviour, you can either:
    - implement the BADI BBP_ACCCAT_MAP_IMP and when you receive the
    ERP account category 'V', a customer specific business logic can be implemented to correctly identify 'Z_CC1' SRM account category. Similar mapping logic has to implemented for other categories as well.
    OR
    - you could add the account category 'CC' to the organization attribute 'KNT' for user 'hotline1' using transaction ppoma_bbp. The user can later on modify the account category manually in the account assignment tab.
    Let me know if you have any further questions.
    Best regards,
    Raghavendra.

  • Total lot transaction quantity does not match transaction quantity

    Hello All,
    I have a few transactions that are pending and show the error:
    "Total lot transaction quantity does not match transaction quantity".
    I see there is a patch 2538686 to fix this but I don't have access to Oracle support. And also I checked the version of inctcm.ppc. It is higher than what is mentioned in the patch readme.
    $Header: inctcm.ppc 115.56 2003/04/14 04:19:23 aalex ship $
    Is there any workaround to process these transactions?
    We are on 11.5.9 (HP Unix) and the rdbms version is 9i.
    Thank you all in advance.
    A/A

    CLOSED

  • Delivery Quantity is not equal to picked quantity.

    Hi all,
    I am having a issue related to VL02N VL01N.The issue is when we save the delivery which has materials with batch. and the batch quantity is less then the delivery quantity the system allows you to save the delivery with wrong delivery quantity that is the header quantity . and invoice is generated for the entire delivery quantity, Which is wrong.
    The delivery should be saved with sum of all the batch quantity of the materials.
    Could any one tell me how to save the delivery with the correct quantity.

    Hi ,
    Try adding the quantities of a item of the delivery and move this final quantity to the item quantity field  . Perfrom this in save_document_prepare form exit of include MV50AZ1....
    Hope this will solve your query... Award points if found useful...

  • How to restrict the delivery quantity not more than target quantity?

    Dear Gurus,
    How to restrict the delivery quantity not more than target quantity in a scheduling agreement? I think there are 2 methods.
    1. I found that setting 0 in Overdelivery Tolerance Limit in Info Record is not effective. Why?
    2. I want to set E for the message but can't find the place. The message is generated when entering and saving quantity as delivery quantity that is larger than target quantity. How can I set E to a message (067, as I remember)
    Any other effective method? Please advice. Thanks.
    Regards,
    David

    Dear all,
    It is not OK after checking everywhere you mentioned. I tested in 2 clients. In the development enviroment client, it works whatever E or W. In test enviroment, it does not work (meassge is W).
    I think there must be somewhere besides of those you menetioned.
    I notes that SAP help for the overdelivery tollerance setting of scheduling agreement: 
    Overdelivery Tolerance Limit
    Percentage (based on the order quantity) up to which an overdelivery of this item will be accepted.
    Dependencies
    If you have set the indicator in the Partial delivery/Item field to 'D' (partial delivery allowed), this takes priority. It makes no sense to define a tolerance limit for overdelivery in such case.
    Where can I see: 'the indicator in the Partial delivery/Item field to 'D' (partial delivery allowed)'? I want to check it.
    Pls help! Thanks.
    Regards,
    David

  • Service entry sheet - GR quantity is more than confirmed quantity

    We have a service based PO with Acct assignment F and Item category D.
    We have ticked Goods receipt in delievery tab.
    We have ticked 1) invoivce receipt and 2) GR-based IV. ( S-based IV is not ticked)
    There is no purchase order history.
    While making the service entry sheet and accpeting it , system is throwing an error log "GR quantity is more than confirmed quantity".
    But we have not confirmed any quantity.
    Please advise how to solve this error or what could be wrong in PO.
    Thanks,
    Manohar

    Hi,
    Go to ML81N, put the PO number and find out Is there any service entry sheet with No acceptance(Red Mark) is found there or not for that PO Line Item.
    If yes, thenclick on that...go to change and delete that SES ......
    Hope Clear U !
    Regards,
    Pardeep malik

Maybe you are looking for

  • HOw can I use Find My phone using my mac

    I have the Find My Phone on my iPhone. I also have a MAc desktip and a laptop (Mac Book). I have an iCloud account. If I lose my iPhone, How can I sue my Mac computer to find it. In other words, I can't use the phone (becasue it is lost). How can I u

  • How can I keep the same dimensions while cropping in Preview?

    I know how to crop in Preview.  What I'm trying to do is crop a specific area of a picture while keeping the pictures original 8.5 x 11 aspect ratio.  Is there a way to automatically keep this aspect ratio instead of having to maually guess?  I alway

  • Alert Proxy system or application through  RUN TIME WORKBENCH of PI

    Hi  friends, I am using PI 7.0  and at one scenarios we are communicating PI to another SAP system through  proxies.  PI 7.0 ==>  Proxies-->  SAP SYSTEM. Now we setup the alert at PI system through alert category and run time workbench. Is it possibl

  • Help converting a frame of a movie to a jpeg

    Please excuse me for being quite limited in my tech and computer knowledge.  I am wishing to take a frame from a video that was mistakenly took instead of a photo with my iPhone. I am wondering if it is possible to convert a few frames of different v

  • How to make iPod Touch screen more sensitive?

    My iPod touch screen is not very sensitive to the touch. Sometimes i have to press down with a little force to get it to press what i want. I have tried other peoples iPod's, and compared to theirs, mine is not very sensitive. PLEASE HELP!