Issue in finding  GR posting date and quanity for Purchase order item

Hi All,
I have a requirement to list all PO items with Goods receipt posting date and quantity.
So for each po item I have fetched Goods receipt posting date and quantity from table EKBE for movement type 101.
But in transaction ME23n   in PO history tab it is displaying 3 records.
2 are movement type 101 and 1 is movement type 102 GR quantity with minus sign.
How  to find out Goods receipt posting date and quantity.
what are the movement types we  have to consider.
Thanks,
Jwala

movement type 102 is for GR for PO reversal that is why the quantity is negative.

Similar Messages

  • Release date and time for Purchase order

    Hi Masters,
    Could you please let me know that in which table the release date ane time will get stored for purchase order.
    Regards,
    Panneer

    Hi,
    You can find out from CDHDR & CDPOS table.
    Select Date Time from CDHDR table & Join with CDPOS table where CDHDR-OBJECTCLAS = EINKBELEG and CDHDR-OBJECTID = PO number and CDPOS-TABNAME = 'EKKO' and CDPOS-FNAME = FRGZU and CDPOS-VALUE_NEW = 'X'.
    You will get the date time from CDHDR table.
    Regards,
    Udayasankar Rajagopalan

  • Class for Purchase order item components and Production order components

    I'm looking for a some classes.   I'm very new to objects, so I could be searching for them incorrectly.
    The first class I'm looking for is a purchase order class that contains the item components.  I've looked at CL_PO_ITEM_HANDLE_MM and CL_PO_HEADER_HANDLE_MM.  I couldn't find components as a part of either of the classes.
    The second one I'm looking for is not as critical.  It is for the components for a production order.   I have a function module: BAPI_PRODORD_GET_DETAIL that gets the components for the order.  However, to take advantage of objects - I read somewhere - that if possible I should avoid calling a function module.
    Any help that you could give would be greatly appreciated.
    Thank you!
    Michelle

    Hello Michelle
    I do not think there are already classes available on ERP 6.0 for reading production order (yet I might be wrong...). However, regarding purchase order you are already on the right track.
    *& Report  ZUS_SDN_OO_READ_PO
    *& Thread: Class for Purchase order item components and Production order components
    *& <a class="jive_macro jive_macro_thread" href="" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1206523"></a>
    "& NOTE: Coding adapted from BAPI_PO_GETDETAIL1
    REPORT  zus_sdn_oo_read_po.
    TYPE-POOLS: abap, mmpur.
    PARAMETER:
      p_ebeln   TYPE ebeln  DEFAULT '3000000045'.
    DATA: gs_document    TYPE mepo_document,
          go_po          TYPE REF TO cl_po_header_handle_mm,
          gs_header      TYPE mepoheader,
          gd_tcode       TYPE sy-tcode,
          gd_result      TYPE mmpur_bool.
    data: gt_items       type PURCHASE_ORDER_ITEMS,
          gs_itm         type PURCHASE_ORDER_ITEM,
          gs_item        type mepoitem.
    START-OF-SELECTION.
    *  prepare creation of PO instance
      gs_document-doc_type    = 'F'.
      gs_document-process     = mmpur_po_process.
      gs_document-trtyp       = 'A'.  " anz.  => display
      gs_document-doc_key(10) = p_ebeln.
    *  object creation and initialization
    **  l_ebeln = purchaseorder.
      CREATE OBJECT go_po.
      CALL METHOD go_po->po_initialize( im_document = gs_document ).
      CALL METHOD go_po->set_po_number( im_po_number = p_ebeln ).
      CALL METHOD go_po->set_state( cl_po_header_handle_mm=>c_available ).
    *  read purchase order from database
      gd_tcode = 'ME23N'.
      CALL METHOD go_po->po_read
        EXPORTING
          im_tcode     = gd_tcode
          im_trtyp     = gs_document-trtyp
          im_aktyp     = gs_document-trtyp
          im_po_number = p_ebeln
          im_document  = gs_document
        IMPORTING
          ex_result    = gd_result.
    *  there was a problem in reading the PO
      IF ( gd_result EQ mmpur_no ).
    **    l_messages = l_handler->get_list_for_bapi( ).
    **    PERFORM return TABLES l_messages return
    **                          poitem poschedule poaccount.
    **    CALL METHOD l_po->po_close( ).
      ELSE.
        gs_header = go_po->if_purchase_order_mm~get_data( ).
        WRITE: / gs_header-ebeln,
                 gs_header-bukrs,
                 gs_header-bsart,
                 gs_header-lifnr.
      ENDIF.
      gt_items = go_po->if_purchase_order_mm~get_items( ).
      LOOP AT gt_items INTO gs_itm.
        gs_item = gs_itm-item->get_data( ).
        write: / gs_item-ebelp,
                 gs_item-matnr,
                 gs_item-menge.
      ENDLOOP.
    END-OF-SELECTION.
    Regards
      Uwe

  • Updating Batch classification data from MIGO for Purchase order

    Hi,
    I need to update batch classification data (in MSC3n) from MIGO for purchase order. The logic needed for this is as below,
    1) Pass material and batch to MCH1 table to get CUOBJ_BM.
    2) Pass CUOBJ_BM to INOB table to get INOB-OBJEK.
    3) Pass INOB-OBJEK to CLAF_CLASSIFICATION_OF_OBJECTS to get class name & characteristic name.
    4) Pass INOB-OBJEK, CLASS name and characteristic name to BAPI_OBJCL_CHANGE to update batch classification data.
    I created implicit enhancement at the bottom of FM "CLVF_VB_INSERT_CLASSIFICATION". But the problem is, the return parameter of BAPI_OBJCL_CHANGE is giving the following error.
    Class type 023, object type MCH1, object RAW-6             0000001151
    Object is currently locked by user
    The assignment was not changed
    Please let me know how to do it. Is there any BADI or User Exit?

    Hi,
    As you said the break point is not triggering did you activate your exit and activated even the project to which your exit is assigned.
    I hope you missed activating your project in CMOD transaction. Please verify it once and if it is not activated then immediately activate it and try debugging again.
    Regards,
    Rafi

  • Create additional field in sales order item and copy to purchase order item

    Dear SAP Gurus,
    I am hoping that someone could help me by providing me with how to implement the following 2 requirements in the SD order and in the purchase order.
    1. I am wanting to add a custom field to the SD sales order item copying a value from the vendor customer master.
    2. I then want to add a custom field to the purchase order item and copy the value from my custom field in 1. to this new custom field..
    Can you please advise how I would go about implementing the above requirements?  I am assuming that there are exits to allow me to implement these 2 requirements.
    Many thanks
    Henry

    Hi,
    For the first requirement you can use the USEREXIT_MOVE_FIELD_TO_VBAP in report MV45AFZZ.
    For the second, as I think that you will create a RFQ you can try to use the enhancement MEREQ001.
    Regards,
    Eduardo

  • Where can we find information on date and time for rollback on Oracle 11g ?

    Like to find out which log Oracle writes to in order storing information about rollback that is performed. I have an issue wherein, I believe a rollback has occurred after external reports have been generated... hence, the report no longer has the correct information on the state of the system. However, I need to confirm that this is what happened, as I couldn't explain why transactions that were performed prior to the reports were not on the system, yet it was reported in the transaction report. Thank you.

    You should be able to find some rollback information in redo logs with LogMiner: http://download.oracle.com/docs/cd/E11882_01/server.112/e17110/dynviews_2035.htm#i1408263.

  • Fixed Date and Quantity for Sales order

    We have Requested Delivery Date in our order entry page in CRM ISA. This date is transferred fine to R/3 with the sales order.
    We want to flag the "Fixed Date and Quantity" field in schedule lines of the order in R/3 when the order is replicated to R/3.
    We also want to restrict the order specific to particular organization for which the fixed date and quantity is flagged when the
    order is replicated
    Any ideas on how to achieve this?

    thanks Rajesh..But I would like to do in a sales order without doing going to any other transaction. Can I assume that this is a gap and we need to code in user exit to trigger 413 movement type.
    points are rewarded.
    regards,

  • Issue using material document number as dynamic bin for purchase orders

    Hi...
    We are currently using the material document number as a dynamic bin at receiving because we expect to have multiple receipts of the same purchase order.  The current setup has everything going into quality inspection, and an inspection lot creates for each goods receipt.
    When QM rejects parts to return to vendor, a 122 movement is automatically generated.  When this 122 movement generates, the WM stock overview shows a negative balance using the material document number of the 122 movement as the dynamic bin.  The positive balance still shows as the material document from the 101 movement.
    Is there any configuration that can be set up to fix this issue or will SAP always take the most recent material document as the dynamic bin?
    Thanks for the help!

    I've tried the following configuration with movement type configuration:
    Quality stock in 902 storage type with material document as dynamic bin (requirement type configuration updated).  When a return to vendor is completed, there is a positive balance in 902 with the GR material doc number as the bin and a negative balance with the 122 material doc # as the bin. 
    I also tried configuring this with using GR-DOCK as a bin, and had the issue with the quant record being updated by the most recent inspection lot #. 
    I also tried using the PO as dynamic bin, and have the same error as above with the quant.
    Error:
    Error during creation of transfer orders for material document 0026001535
    Date: 05/16/2008
    Time: 10:52:23
    Post.chge not. HR1 2000000011
    No quants exist for posting changes
    So as according to the OSS note I should use material doc # as dynamic bin to avoid this...but when I set this up I get the issue with positive and negative balances in my stock overview because SAP uses the most recent material document number for each posting.

  • Determine Plant and Sloc for Purchase Order Creation

    Hi Gurus,
    I want to determine while create a Purchase Order (ME21N), I can restrict the Purchase Order only for specific Order Type , specific Plant and specific Storage Location.
    The business needs is to prevent human error while create Purchase Order with wrong Order Type, Plant and SLoc combination.
    Is there any Exit related ?
    Thx in advance.
    Tri W

    Hi ,
    This is MM question
    In MM , you could use authorzation in PFCG to limit the plant selection and document typefor a specific  user .
    This would also have effection to the ME21N .
    For the storage location ,then please to set the field as display only and then add a default value to the user in
    the personal setting.
    I hope this will help you a little bit apart from the  BADI.
    Regards
    Summer Wang

  • Extracting Down Payment and Payment for Purchasing Order to BW

    Hi Gurus,
             2LIS_02_ITM purchasing datasource brings GR, IR value, quantity and amount only base on Process Key.
            Anyone know how to extract Downpayment (Prepayment) and Payment documents to the BW of the data?
    Thanks and regards,
    Raymond

    Hi Sachin,
                Does downpayment includes on AP datasources?
               Do you know the name of the datasource for those Downpayment and payment?
                Also how can I check for the EKBE-VGABE (Transaction Type/Event) from R/3 on BW? The value of Transaction Type/Event will say if the VGABE if the amount is IR, GR, Downpayment and payment.
    Thanks and regards,
    Raymond

  • Issue in EXIT_SAPMM06E_016 for Purchase Order Items

    Hi,
    We have customer fields in PO header as well as in Items. If i update the value in PO header, the vlaues should pass to items based up on the quantity and order unit.
    We have implemented this logic in  EXIT_SAPMM06E_016, this is working fine when PO have only one item. If PO has more than one items, t we have to go every PO item manaully in screen o update the values, then only value is updating in screens.
    When i read about this exit EXIT_SAPMM06E_016, it says this is PBO module, so it will update only if we go manually on screens. Is there any other way to update with out going on screens?
    BADI ME_PROCESS_PO_CUST will work?

    Hi
    Try to use if_ex_me_process_po_cust~process_item   which will work .
    surya

  • Goods Receipt and Goods Issue - Posting Date and Document Date Problem

    Hi All,
    I was using SDK to build own add on to insert Posting Date and Document Date under Inventory> Inventory Transactions> Goods Receipt and  Inventory> Inventory Transactions> Goods Issue, but the UI Screen Posting Date and Document Date shown current date.
    My SAP Business One version was 2007A SP00 PL42 and alreadly upgrade to SP05.
    End up result still the same.
    Is there someone can help me?
    Thanks you.
    Best Regards,
    danny

    Hi there,
    I already solve it by myself.
    Actually is i call the initialization twice:
    Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInventoryGenEntry)
    Thats what make this problem happened.
    Sorry.
    Best Regards,
    danny

  • Issue In posting date and Due Date

    Hello All,
    my client is creating a GRPO and manually changing the Posting, And doc date. Then by using Copy to utility he is creating A/P Invoices
    There system automatically shows the Posting date, Document Date as of current date(That is what system behavior is ). But now he wants that system should pick all his dates from Base doc i.e GRPO
    So i want to know that is this possible through some query or FMS
    if yes then please suggest me for the same
    Regards,
    Bhushan

    Hi,
    I don't have $38.10.number in my query. Where did you get this field?
    please follow below steps:
    1. Run above query in generator. Sure it gives an error message and ignore this message.
    2. save it under query manager
    3. Assign this FMS at AP invoice posting date and set auto refresh when customer vendor refer is changed.
    Thanks & Regards,
    Nagarajan

  • Restrict goods issue if stock on posting date is zero

    Requirement:
    Current Inventory period : July 2011
    Stock of a material from 01.07.2011 to 30.07.2011 is zero(in MB5B report)
    I upload stock of material  or GRN occur on 31.07.2011. Say Quantity u2013 100
    Now stock as on 31.07.2011 is 100 in MB5B
    Still, Stock of a material from 01.07.2011 to 30.07.2011 is zero(in MB5B)
    Now, If I do goods issue of a material quantity 100 on 15.07.2011. System allows goods issue. though opening and closing stock as on 15.07.2011 is zero.
    After goods issue transaction if I check stock of material on any date between 16.07.2011 to 30.07.2011 , The opening stock and closing stock shows negative.
    I want to restrict goods issue if stock on posting date is zero or less then stock available on posting date.
    Please suggest

    Hi,
    This is not the way SAP is designed. As the previous speakers wrote (and as you noticed yourself), SAP maintains stock figures in the database per month rather than per day. MB5B makes complex calculations in order to find out how much stock you had on a specific date - as you probably noticed on the response time. Performing such calculations every time you do a GI would be unfeasibly heavy task for the system - remember there are organisations that perform hundreds of inventory movements a minute!
    An alternative solution I suppose would be to maintain the daily stock figures in the database. This would make the finding of the stock figure very quick, but on the other hand, the maintenance of such table would be unfeasible - if you post today a GI on say July 1st, you would need to calculate 36 stock figures and update 36 database records!
    Hope this explains the technical issue.
    BR
    Raf

  • Posting date and posting periods

    HI Experts,
    I am practicing IDES for SD. While using T VL02N for post good Issue I got this error:
    <b>Posting only possible in periods 2006/12 and 2006/11 in company code 1000
    Message no. M7053
    Diagnosis
    The posting date entered is not within one of the permitted posting periods (current period/previous period).
    This can be due to one of two reasons:
    The correct current period has not been set in the system.
    For the system, the first of the entered periods is the current period. At the beginning of a new period, your systems administrator must change the current period in the material master record, using the function "Shift periods". This has not yet been done.
    You have entered a wrong date in the field "Posting date".
    Procedure
    Check the posting date and correct it if necessary. If your input is correct, inform your systems administrator that the "period shifting" (period-end closing) process has not yet been completed. Copied from M8022</b>
    I don;t think there is problem with my posting date. Can someone guide me on how solving this
    Thanks
    Yael

    Go to OMSY and check the periods are current peiods or not to ur comp code?
    If it is not the current period.
    close the posting period by going to MMPV.
    let us say comp code EG, YEAR-2006  PE-6
    so you have to close the posting periods for all months till this month.
    from comp code-EG
    To comp code- EG
    period-7
    fiscal year-2006
    repeat the same but with period-8(month) 9,10,11,12,
    and do the same for 2007 too till you get the current month in OMSY T-Code.
    you need to do close the period end of every month.
    thank you
    chaitanya

Maybe you are looking for

  • Вылетает Wi Fi, Что делать???  Problem with Wi Fi...

    Дело в том, что 4 недели назад, я купил iMac 2.7 intel i5. Сразу как только я его включил, я подключил Wi Fi (FRITZ! Box o2 DCL модель 7270), все заработало я ничего не загружал, кроме обнавления ПО. И спустя минут 5 интернет пропал. Я посмотрел на с

  • Authorization based on division

    Hello, we want to restrict transaction types depending on sales org ,distributuin and division,Kindly suggest.

  • Directory proxy virtual transformation - help

    I have a web app that queries Active Directory for user authentication based on a users DN. (DN: cn=First Last,ou=. . . in my case.) It assumes a flat directory such that users are in a single user container: OU=Users,dc=ad,dc=domain,dc=com This prev

  • About Performance issue

    Hi All, I have a table which is very frequently used for transcational purposes (like Insert,Delete,Update) from Oracle apps database. I have created a view based on this table only and this view is referenced by another database very frequently usin

  • Camera raw7 not on cs6 ,where is it

    I have reloaded updates for camera raw 7.2, see it in preferences, won't show up on screen, CS6 doesn't start it, can't find it to start it.