Posting a goods receipt

Hello,
     I need to post a goods receipt on receipt of warehouse stock transfer receipt advice.Can I use BAPI_GOODSMVT_CREATE to do that?or is there any other way.And after posting the goods receipt i need to call a QA11 and change the status of the goods received from QI to UR.Can any one outline the steps?I have planned to use SHPCON/DELVRY03.
Thanks,
Larry

Hi,
Try
BAPI_ACC_GOODS_MOVEMENT_POST OR
SD_SHIPMENT_POST_GOODS_ISSUE OR
MB_POST_GOODS_MOVEMENT       OR
to post a goods receipt.
To change the status use the FM STATUS_CHANGE_EXTERN.
Hope this helps...
Lokesh
Pls. reward appropriate points

Similar Messages

  • Error while posting the Goods Receipt

    Hi Friends,
    I am having an issue while posting the Goods Receipt.
    I am getting the error "Balance not zero: 1.000,00- debit: 0,00 credit: 1.000,00". I am using the Purchase Order with Account Assignment category P and K. When ever I used the account assignment category, I am getting this type of error. I have checked the configuration and every thing is OK. System is not able to debit the G/L account which is mentioned in the Purchase Order, hence the problem. However, I think system is able to get the G/L account (to Credit the amount) from Automatic Account determination.
    Would like to know if any one come across similar type of problem and resolved it.
    We have recently upgraded the system from 4.7 to ECC 6.0.
    Apprciate the help.
    Thank you,
    Prakash

    Hi
    Thank you for the reply.
    I have checked what you have mentioned. While creating PO it is determining the G/L account automatically through the assignments in OBYC. Even then I am getting the error while doing the Goods Receipt.
    Any one is having any idea?
    Thank you,
    Prakash
    Edited by: Prakash KM on Dec 17, 2010 6:26 PM

  • Changing the G/L Account while Posting the Goods Receipts in MIGO

    Hi All,
    I have requirement in which G/L Account needs to be changed based on some validation while Posting the Goods Receipt in MIGO.
    I have created exit in OBBH by copying the standard SAP Program RGGBS800 in view V_T80D.
    I changed following entry in view V_T80D:
    GBLS     ZGGBS800     Val/sub:Exits for substitution
    Now Inside program ZGGBS800, I have written the logic to change the BSEG-HKONT value with the new G/L Account which gets called inside the standard function module G_VSR_SUBSTITUTION_CALL.
    FORM U999.
       DATA : V_HKONT TYPE BSEG-HKONT.
       clear : V_HKONT.
       SELECT SINGLE SAKNR FROM ZMASH1 INTO V_HKONT WHERE MATNR = BSEG-MATNR AND WERKS = BSEG-WERKS.
         IF SY-SUBRC EQ 0.
           BSEG-HKONT = V_HKONT.
         ENDIF.
    ENDFORM.
    After the execution of the above code the value of BSEG-HKONT changes with new value of V_HKONT but after this when I go further in Standard SAP code of function module G_VSR_SUBSTITUTION_CALL, there is one subroutine FORM EXP_TAB_009_BSEG  being called which changes the value of BSEG-HKONT to initial value of HKONT also while moving the data from BSEG to TEMP_STRUCT it doesn't passes the HKONT value, which I want it be passed as I want the changed value to be passed finally to OUT_RESULT. Please look at the code below.
    Following is the SAP standard code of subroutione FORM EXP_TAB_009_BSEG :
    FORM EXP_TAB_009_BSEG
             USING
               IN_ORIG STRUCTURE        BSEG
            CHANGING
               OUT_RESULT STRUCTURE     BSEG
               B_RESULT.
      DATA:  ORIG LIKE BSEG.
      DATA:  BEGIN OF TEMP_STRUCT,
             ABPER                          LIKE   BSEG-ABPER,
             AUGGJ                          LIKE   BSEG-AUGGJ,
             DOCLN                          LIKE   BSEG-DOCLN,
             FIPOS                          LIKE   BSEG-FIPOS,
             FISTL                          LIKE   BSEG-FISTL,
             FKBER                          LIKE   BSEG-FKBER,
             FKBER_LONG                     LIKE   BSEG-FKBER_LONG,
             GEBER                          LIKE   BSEG-GEBER,
             GMVKZ                          LIKE   BSEG-GMVKZ,
             GRANT_NBR                      LIKE   BSEG-GRANT_NBR,
             HKTID                          LIKE   BSEG-HKTID,
             HZUON                          LIKE   BSEG-HZUON,
             INTRENO                        LIKE   BSEG-INTRENO,
             MEASURE                        LIKE   BSEG-MEASURE,
             PARGB                          LIKE   BSEG-PARGB,
             PPA_EX_IND                     LIKE   BSEG-PPA_EX_IND,
             PPRCT                          LIKE   BSEG-PPRCT,
             PRCTR                          LIKE   BSEG-PRCTR,
             PRODPER                        LIKE   BSEG-PRODPER,
             PRZNR                          LIKE   BSEG-PRZNR,
             PSEGMENT                       LIKE   BSEG-PSEGMENT,
             SAMNR                          LIKE   BSEG-SAMNR,
             SCTAX                          LIKE   BSEG-SCTAX,
             SEGMENT                        LIKE   BSEG-SEGMENT,
             SGTXT                          LIKE   BSEG-SGTXT,
             SRTYPE                         LIKE   BSEG-SRTYPE,
             UZAWE                          LIKE   BSEG-UZAWE,
             XREF1                          LIKE   BSEG-XREF1,
             XREF2                          LIKE   BSEG-XREF2,
             XREF3                          LIKE   BSEG-XREF3,
             ZUONR                          LIKE   BSEG-ZUONR,
             ZZBUSPARTN                     LIKE   BSEG-ZZBUSPARTN,
             ZZCHAN                         LIKE   BSEG-ZZCHAN,
             ZZLOB                          LIKE   BSEG-ZZLOB,
             ZZLOCA                         LIKE   BSEG-ZZLOCA,
             ZZPRODUCT                      LIKE   BSEG-ZZPRODUCT,
             ZZREGION                       LIKE   BSEG-ZZREGION,
             ZZSPREG                        LIKE   BSEG-ZZSPREG,
             ZZSTATE                        LIKE   BSEG-ZZSTATE,
             ZZUSERFLD1                     LIKE   BSEG-ZZUSERFLD1,
             ZZUSERFLD2                     LIKE   BSEG-ZZUSERFLD2,
             ZZUSERFLD3                     LIKE   BSEG-ZZUSERFLD3,
             END OF TEMP_STRUCT.
      IF IN_ORIG = BSEG .
        B_RESULT = B_FALSE.
        OUT_RESULT = IN_ORIG.
        EXIT.
      ENDIF.
      MOVE-CORRESPONDING BSEG TO TEMP_STRUCT.
      OUT_RESULT = IN_ORIG.
      MOVE-CORRESPONDING TEMP_STRUCT TO OUT_RESULT.
      IF IN_ORIG = OUT_RESULT .
        B_RESULT = B_FALSE.
      ELSE.
        B_RESULT = B_TRUE.
      ENDIF.
      BSEG = OUT_RESULT.
    ENDFORM.                               " EXP_TAB_009_BSEG
    I need the value of BSEG-HKONT should be passed to OUT_RESULT-HKONT.
    I am not able to find any userexit or BADI for this.
    Please guide me on this.
    Thanks,
    Chandravadan
    Edited by: Chandravadan Jaiswal on May 8, 2009 2:18 PM
    Edited by: Chandravadan Jaiswal on May 8, 2009 3:45 PM

    Hi
    I also need to change hkont while posting MIGO and MIRO transaction..
    Any suggestion for this?
    Here's my problem.. Substitution of account(HKONT) when posting in MIGO/MIRO

  • Components were not consumed while posting the goods receipt through VL32N

    Hi Experts,
    We are into technical upgrade. We are upgrading from 4.7 to ECC 6.0. We are facing one issue. The issue is while posting the goods receipt for the subcontracting shceduling agreement through VL32N (Inbound Delivery) component materials were not consumed. While displaying the material document for the GR, could not find any compponent materials consumed with movement type 543, where as if I use the MIGO transaction code for the same inbound delivery, I could see the component materials were consumed with movement type 543.
    Could anybody tell us how to fix this issue if they come across.
    Appreciate your reply.
    Regards
    Bala

    Hi,
    Try checking below SAP notes
    Note 645119 - Problems with subcontracting using delivery
    338119 - Goods receipt in inbound delivery for SC order
    Hope this helps
    Reg
    Dheeraj

  • Posting a goods Receipts by using 'BAPI_GOODSMVT_CREATE'

    Hi experts,
    For a Handling Unit number, im Posting a goods Receipts by using 'BAPI_GOODSMVT_CREATE'
    Im passing the below values to the BAPI, to create a Material document and transfer order.
    GOODSMVT_HEADER- PSTNG_DATE (System Date)
    GOODSMVT_HEADER - DOC_DATE (System date)
    GOODSMVT_HEADER- PR_UNAME (SY-NAME)
    GOODSMVT_CODE- GM_CODE ( 01)
    GOODSMVT_ITEM-MOVE_TYPE (Movement type): movement type '101'
    GOODSMVT_ITEM- DELIV_NUMB_TO_SEARCH (Delivery)
    GOODSMVT_ITEM-DELIV_ITEM_TO_SEARCH (Delivery item)
    GOODSMVT_ITEM-PLANT (Plant) VEPO- WERKS
    GOODSMVT_ITEM-STGE_LOC (Storage location) VEPO- LGORT
    GOODSMVT_ITEM-ENTRY_QNT (Quantity)
    GOODSMVT_ITEM-ENTRY_UOM (Unit of measure)
    GOODSMVT_ITEM-PO_NUMBER (Purchase order)
    GOODSMVT_ITEM-PO_ITEM (Purch. order item)
    GOODSMVT_ITEM-UNLOAD_PT ( HU number)
    GOODSMVT_ITEM-MVT_IND (Movement indicator) = 'B'
    I dont know what values has to be passed to the following fields in BAPI
    *GOODSMVT_ITEM-SU_PL_STCK_1*
    *GOODSMVT_ITEM-SU_PL_STCK_2*
    *GOODSMVT_ITEM-ST_UN_QTYY_1*
    *GOODSMVT_ITEM-ST_UN_QTYY_2*
    *GOODSMVT_ITEM-UNITTYPE_1*
    *GOODSMVT_ITEM-UNITTYPE_2*
    All those values has to be updated in the Material document.
    Please help me on this.
    Thanks & regards,
    Leo
    Edited by: Thomas Zloch on Nov 17, 2011 10:11 AM

    I konw that I'm digging an old thread but let's have a look. I have the same problrm (filling the DMBTR field from the BAPI). I have not tried yet but checking the code of the BAdI I found that the EXTENSIONIN_TO_MATDOC method of the MB_BAPI_GOODSMVT_CREATE BAdI is called before creating the material posting and it has the IMSEG table as changing parameter. I will give it a try soon. Hope that it will work.
    Has anyone experience with it by any chance?
    Adam

  • Can't able to post the Goods Receipt in MB31

    I had create plant - 7177, Warehouse-I - 717 (For finished material) & Warehouse-II - 718 (For Semi finished material). While creation of finished material in MM01, i was entered the wherehouse no as 718. With this parameter, i cant able to post the goods receipt in MB31- For Finished Material. An error message appeared as "material not exit in the WH-717 in plant 7177". What is the procedure to solve this problem?

    Hi,
    In order header, go to goods receipt tab, check the storage location maintained. I think this storage location / plant combination is not linked to warehouse 717.
    Hope this answers your query.
    If helpful award points
    Regards,
    Vivek

  • Need RFC which can post the Goods Receipt

    Hi,
    My scenario is to post the Goods receipt, by using file and after posting the Goods Receipt i want the acknowledgement whether it is successful or unsuccessful. There is an idoc MBGMCR02 which can post the Goods Receipt but application acknowledgement is not possible in file to idoc scenario, so now i am searching for a RFC so that i can handle this situation using BPM synchronous process. Kindly suggest any RFC or BAPI which can post the Goods Receipt.
    Thanks & Regards,
    Venkat

    Hi Venkat,
    As per my understanding this is a "File To (Inbound) Proxy" scenario, in which you can use the BAPI "SD_SHIPMENT_POST_GOODS_ISSUE" to do the PGI into R/3 system.
    To perform this, you can go-ahead with the steps as mentioned below:
    Source (XI) System:
    1. Create the source & target data type in XI.
    2. Do required mapping in XI.
    3. In configuration directory, use the adapter type "XI" on the receiver communication channel.
    Target (R/3) System:
    1. Call transaction "SPROXY".
    2. Create the interface class (double click on Inbound message Interface, inside your namespace in R/3).
    3. Inside the class (proxy), create an internal table to keep all the records which will be coming from XI after your mapping.
    4. Pass all the data to above create internal table.
    5. Now, call function module "SD_SHIPMENT_POST_GOODS_ISSUE" and pass all required data from ur internal table to this FM (BAPI).
    Note: Kindly read about this FM (BAPI) first in SE37 under "Function Module Documentation".
    6. Do commit work after calling the FM (BAPI).
    I hope this will help you to resolve all your queries.
    Regards,
    Sarvesh Singh

  • IDOC_INPUT_DESADV for IDOC input deliveries can post also good receipt?

    Hello all:
    Does any body can help me  to know if idoc with Process code DESA that call function module IDOC_INPUT_DESADV besides creates an input delivery (like vl31n) can ALSO POST THE GOOD RECEIPT if the confirmation control key at item level is configure to auto post the GOOD RECEIPT?
    Currently my idoc entry creates the delivery nevertheless the Good receipt is not posted. If manually on VL31N a delivery is created the Good receipt is posted automatically.
    Thanks in advance!

    Hi,
    As long as you set the indicator of automatic GR process (select 2--Register and receive automatically), this applies both to the manual creation of inbound deliveries and to their creation via IDoc. If you still get the problem, you can check the assigned status in the inbound delivery on the tab page status overview, I think you can find some hint
    Good luck
    Z.T

  • Using MBGMC Message Type To Post Auto Goods Receipt in ECC

    We are using Basic Idoc Type :MBGMCR02 to Post Auto Goods Receipt in ECC.
    This happens when external system ( 3rd Party System) sends this message which in turn posts the GR in ECC.
    Thru Goods Movement BAPI
    My Question is CAN WE POST auto goods receipt thru MBGMCR02 with Inbound delivery as reference document - Instead use ASN ( Advanced shipping notification ) which is Reference document in inbound delivery to Post Goods receipt in ECC.
    This is required for our integration peice with 3rd party system.
    And also pl let me if we can use Basic types MBGMCR01 or MBGMCR03   to post auto goods receipt in ECC with reference to PO which has confirmation control key set and instead of passing inbound delivery number can we pass ASN number which is external delivery ( Reference ) number and post goods receipt successfully in ECC.
    Would appreciate your immediate help in this regard.
    Regards,
    Mahesh

    We have used Message type : WMMBXY with an enhancement to user exit to mark status of inbound delivery to complete after entire quantity of Inbound delivery has been received.
    Thanks,
    Mahesh

  • Error when posting the goods receipt

    Hi we have recently successfuly updated 4.6 B to ECC 6.0.But when i am doing captive consumption by 949 Mvt. through process message system gives an error that
    Error when posting the goods receipt
    Message no. CB345
    Diagnosis
    With the selected process message, a goods receipt for the order was reported to the warehouse (destination ZPI1).  However, an error occurred when the goods receipt was posted.
    Please do needful.
    Regards,
    PP

    Hi Daniel,
    This is the first time i am coming across an issue like this.
    neverthless from a logical front,
    1. Remove Cost center as a valid receiver in Settlement Profile.
    2. Your OKB9 setting are pretty much good. No need to worry about it.  Becasue, OKB9 only will work if the system doesn't identify any other cost object. In this case Production Order is an automatic cost object which system should have taken.
    3. Check the Settlement rule when you have created Production Order. It should have been MAT.
    4. I hope you are creating Production Order with Material (using CO01 and not CO07)
    5. Make sure in OPL8, the default rule in controlling tab is PP1.
    Once all these are fine, i do not see any reason why you will get your probelm.
    Please check and revert back to me if the problem still persists.
    Best Regards
    Surya

  • Is it possible to post a good issue movement before post the good receipt m

    Is it possible to post a good issue movement before post the good receipt  movement for the same material, into the same period?
    We try to explain better, today we've done a test:
    Step 1 :   We have created a material, wich material type is HAWA, with price control V, and 1 euro for 1 ST.
    Step 2 :   We have post a good receipt movement, 561 of this material  with 1000 ST of stock, and on posting date: 05.05.2011.
    Step 3 :   Then, we have post a good issue movement, 562 of the same material, with 500 ST of stock,  on posting date: 01.05.2011 ( so that, the posting date of the 562 is before from the posting date of 561).
    And it has worked, so that on trx "mb51" for this material we saw:
    PLANT1-----STO1---- 562-----  Mat. Doc.101.05.2011--
    500-   ST
    PLANT1-----STO1---561Mat. Doc.205.05.2011--
    1000  ST
    And with "fbl3n" for this G/L account , the same situation:
    G/LAccount1--DocumentNo101.05.2011--99--
    500-  EUR
    G/LAccount1--DocumentNo205.05.2011--89--
    1000  EUR
    We don't like this fact, someone knows how is it possible? The negative stocks aren't flagged!!!!
    Edited by: Ariana Serrano Aguila on May 5, 2011 5:50 PM

    Hi,
    Though sap allows like this ,, the document created will be with the date of the actual posting system date. If you look into the MSEG table you will get to know this.
    In theory .. this kind of practice should not be allowed .
    since this is a 562 which is a individual  entry may be system would have allowed.you try a 102 .
    Regards,

  • Is it possible to post a good issue movement before post the good receipt

    Is it possible to post a good issue movement before post the good receipt  movement for the same material, into the same period?
    We try to explain better, today we've done a test:
    Step 1 :   We have created a material, wich material type is HAWA, with price control V, and 1 euro for 1 ST.
    Step 2 :   We have post a good receipt movement, 561 of this material  with 1000 ST of stock, and on posting date: 05.05.2011.
    Step 3 :   Then, we have post a good issue movement, 562 of the same material, with 500 ST of stock,  on posting date: 01.05.2011 ( so that, the posting date of the 562 is before from the posting date of 561).
    And it has worked, so that on trx "mb51" for this material we saw:
    PLANT1           STO1         562           Mat. Doc.1           01.05.2011            500-  ST
    PLANT1           STO1         561           Mat. Doc.2           05.05.2011           1000  ST
    And with "fbl3n" for this G/L account , the same situation:
    G/LAccount1            DocumentNo1            01.05.2011        99            500-  EUR
    G/LAccount1            DocumentNo2            05.05.2011        89            1000  EUR
    We don't like this fact, someone knows how is it possible? The negative stocks aren't flagged!!!!
    Edited by: Ariana Serrano Aguila on May 5, 2011 5:50 PM

    SAP only checks if there is enough quantity in the period (month), it does not check if there is enough stock at date level.
    there is no stock stored in any table for a given date. SAP would need to run the logic of MB5B to calculate the stock at a certain date, this would cause tremendous performance issues.
    you either have to do this calculation yourself in a user exit, or you better train your users.

  • Wrong shipment costs posting during good receipt

    We are having a problem when we post a good receipt for an inbound delivery in the transaction MIGO. We have created some account keys in order to classify and post shipment costs -specified in a shipment cost document- on specific balance accounts. The balance accounts determined by the OBYC transaction are right but posted values during good receipt do not match to registered values in the shipment cost document.
    The documents flow for this process is as follow:
    1. It is created a purchase order (ME21N).
    2. It is created an inbound delivery based on the purchase order (VL31N).
    3. It is created a shipment document based on the inbound delivery (VT01N).
    4. It is created a shipment costs document (VI01) for the shipment document where shipment costs are specified in its calculation schema
    5. It is created a good receipt for the inbound delivery of the step 2. The balance accounts are determined correctly but values do not match to registered values in the shipment cost document.
    Best Regards
    Guillermo

    Hi,
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/93/74413b546011d1a7020000e829fd11/frameset.htm
    Kapil

  • Restrict Posting of Goods Receipt by Purchase Order Type

    Does anyone know of a way to prevent posting goods receipt for a specific purchasing document type? We need to prevent users from posting PO's that were system generated through an outside interface. They are brought back into ECC as the system of record. Since authorizations are only based on movement type, plant, and storage location with MIGO, without creating a new movement type, is there any way to achieve this?
    Thank you in advance for your help!

    Hi,
    Normally it would be the other way around, where the continued process for Open Purchase Orders will be done in SAP ERP, and no longer continued in the legacy system.
    So in your case, to avoid performing double posting (e.g. goods receipt in legacy and in SAP which causes duplicate inventory in books compared to physical) you would need to stop the Open POs in SAP ERP from being processed further.
    Just to be sure, there are a few types of Open POs
    1) Open PO where Goods Receipt have not been done.
    For this type, normally we would be doing the future receipts in SAP ERP
    2) Open PO where Goods Receipt done, but pending Invoice
    For this type, we could ignore the PO all together and create a FI Invoice when the invoice comes. (The quantity is entered in SAP ERP via 561 initial stock balance movement type)
    For type 1, if you perform goods receipt in legacy system, how are the quantities being captured in SAP ERP? How about payment, will this be done in legacy as well? How do you plan to reflect it in SAP?
    For type 2, will you be performing invoice receipt and payment in legacy? How will it be reflected in SAP without being a duplicate with the legacy payment?
    If you could answer these questions, then you could lock the SAP PO numbers by highlighting each line item, and click on the lock button. This will prevent future receipts in SAP.

  • Invoices posted without good receipt initial posting - please help

    Hi Gurus,
    I would like to ask you if you have and answer / solution for this situation.
    I have a release order with 6 invoices + goods receipt. The problem here is that all the invoices were posted, but not the initial goods receipt. a Financial account had already been posted as well, so i dont know how i will solve this situation !!
    Can u please help me ?
    If u need more information please ask me.
    Thanks in advance,
    Mário.

    Hi
    If you see these invoices in the vendor line items, all would have got payment block in it. Unless GR is done for these PO's, it will not get released automatically. If GR is not required for these invoices, then you will be able to make payment. But if GR based IV is ticked in PO, unless you do GR, you will not be able to make payment to the vendor.
    You can still post GR through MIGO for the same PO. System will allow you to post GR for these invoices.
    Award points if found useful.
    Regards,
    K Lakshmanan

Maybe you are looking for

  • Java.lang.nullpointerexception in Guided Procedure

    Hello Guru's, We have integrated a WD4J application in Guided Procedure. And within this application there is a Submit Button, on clicking it we are getting Java.lang.NullPointerException. The same application works fine for other users, only 1 user

  • I want read PDF file from SAP directory and create a spool request or print

    Hi all, I want read PDF file from SAP directory and create a spool request or print the pdf through SAP. Can any body  help me in this. Also please write to me if its possible to open PDF from SAP directory to adobe pdf reader. Thanks in advance, Sun

  • BAdi or User exit to use in MB26 to avoid posting before saving of mat doc?

    Hello Experts, Can anyone tell me which BAdi or User exit to use in MB26 to avoid posting before saving of material document? I have requirement to stop posting incase of negative invetory in issuing storag location. Thanks

  • GR after production order confirmation

    Hi pp guru... kindly suggest me how i will check GR after conformation.....GR should be after confirmation. kindly suggest me how i will do regards aqueel

  • Can iTunes read Two Libraries at once?

    Hi, I have a HP N40L MicroServer (I remote access from my iMac) that I want to use to serve media via iTunes to my Apple TV's. The unit has 4 HDD's. What I wanted to do was have Movies & Music on one drive, TV Shows on another and then allow back up