Creating goods receipt with refernce to PO number using BAPI_GOODSMVT_CREAT

Hi Gurus,
I have a requirment where in, I need to create a goods receipt with reference to a PO number which has been created by BAPI_PO_CREATE1, using another BAPI BAPI_GOODSMVT_CREATE.  How can I do this? what are all the values that I need to fill in GOODSMVT Create BAPI.
Please help its very urgent... Need to submit by EOD.
Thanks,
Suma

hi
hope this code will help you,.
Reward if help.
REPORT ZRICH_0001 .
Structures for BAPI
DATA: GM_HEADER  TYPE BAPI2017_GM_HEAD_01.
DATA: GM_CODE    TYPE BAPI2017_GM_CODE.
DATA: GM_HEADRET TYPE BAPI2017_GM_HEAD_RET.
DATA: GM_ITEM    TYPE TABLE OF
                 BAPI2017_GM_ITEM_CREATE WITH HEADER LINE.
DATA: GM_RETURN  TYPE BAPIRET2 OCCURS 0 WITH HEADER LINE.
DATA: GM_RETMTD  TYPE BAPI2017_GM_HEAD_RET-MAT_DOC.
CLEAR: GM_RETURN, GM_RETMTD. REFRESH GM_RETURN.
Setup BAPI header data.
GM_HEADER-PSTNG_DATE = SY-DATUM.
GM_HEADER-DOC_DATE   = SY-DATUM.
GM_CODE-GM_CODE      = '04'.                                " MB1A
Write 971 movement to table
CLEAR GM_ITEM.
MOVE '412'                 TO GM_ITEM-MOVE_TYPE     .
MOVE 'Q'                 TO GM_ITEM-SPEC_STOCK.
MOVE '3800533484'  TO GM_ITEM-MATERIAL.
MOVE '1'     TO GM_ITEM-ENTRY_QNT.
*MOVE 'PC'    TO GM_ITEM-ENTRY_UOM.
MOVE '1060'  TO GM_ITEM-PLANT.
MOVE '0007'  TO GM_ITEM-STGE_LOC.
*MOVE '0901'   TO GM_ITEM-MOVE_REAS.
MOVE 'P203601001' TO GM_ITEM-WBS_ELEM.
MOVE 'P203601001' TO GM_ITEM-VAL_WBS_ELEM.
APPEND GM_ITEM.
Call goods movement BAPI
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
     EXPORTING
          GOODSMVT_HEADER  = GM_HEADER
          GOODSMVT_CODE    = GM_CODE
     IMPORTING
          GOODSMVT_HEADRET = GM_HEADRET
          MATERIALDOCUMENT = GM_RETMTD
     TABLES
          GOODSMVT_ITEM    = GM_ITEM
          RETURN           = GM_RETURN.
IF NOT GM_RETMTD IS INITIAL.
  COMMIT WORK AND WAIT.
  CALL FUNCTION 'DEQUEUE_ALL'.
ELSE.
  COMMIT WORK AND WAIT.
  CALL FUNCTION 'DEQUEUE_ALL'.
ENDIF.
WRITE:/ GM_RETMTD.
LOOP AT GM_RETURN.
  WRITE:/ GM_RETURN.
ENDLOOP.
check the BAPI_GOODSMVT_CREATE.
Functionality
You can use this method to create a material document for a goods movement.
You can only create one material document each time you call up the method.
You can use a simulation function before posting the goods movement to check how the data is updated in the database. The standard system is configured so that the goods movement is posted immediately without simulating beforehand.
Ensure that you transfer the data in the same way as it is run in the database, for example,
Material number 18-figure with leading zeros
Batches with uppercase letters
Note that for all transactions/events listed below, the posting date is entered in the header data of the material document. In the BAPI2017_GM_HEAD_01 interface, fill the PSTNG_DATE (import structure GOODSMVT_HEADER) field.
Notes
Authorization check check
In the MM Inventory Management component, the method does not execute any authorization checks.
Note that during a posting of a goods movement, depending on the business transaction of the system, authorization objects of other applications can also be checked.
Transfer
The following information about the material document that is to be created is transferred to the method:
a structure with header data
a structure with the code for the movement
a table with the item data
a table with the serial numbers
The posting is carried out in the SAP R/3 via the MB_CREATE_GOODS_MOVEMENT function module.
Confirmations
Messages are returned in the Return parameter. The parameter documentation shows the return codes and their meanings.
Further Information
The method can only carry out your function if no error messages were generated in the Return table. This is the case if the header data and all the items were processed successfully.
Transaction control is not implemented. The calling program therefore has to execute the Commit Work itself after this method has been successfully called (in other words, if no errors were reported in the Return parameter).
Which fields have to be filled during the various transactions/ events?
The following sample scenarios demonstrate which fields have to be filled for which business transactions/events (code).
There are the following types of transactions/events:
1. GM_Code 01: Goods receipt for purchase order
2. GM_Code 02: Goods receipt for production order
3. GM_Code 03: Goods issue
4. GM_Code 04: Transfer posting
5. GM_Code 05: Other goods receipts
6. GM_Code 06: Reversal of goods movements
7. GM_Code 07: Subsequent adjustment to a subcontract order
Entering the movement indicator
Depending on the transaction, you must enter the following in the movement indicator:
GM_Code 01 (Goods receipt for purchase order): B
GM_Code 02 (Goods receipt for production order): F
For all other transactions, you leave the field blank.
For 1: GM_Code 01: Goods receipt for purchase order
Purchase order known
The following fields have to be filled:
Purchase order
Purchase order item
Movement type
Movement indicator
Quantity in unit of entry
ISO code unit of measurement for unit of entry or
quantity proposal
The following fields may have to be filled in some cases (incomplete listing):
Shelf life expiration date (if it has been configured like this in the system)
Reason for movement (if it has been configured like this in the system)
Batch (if the material is handled in batches and batch numbers are not assigned automatically)
Storage location (if a storage location has not been specified in the purchase order item)
The following fields can be filled (incomplete listing):
Stock type
Item text
Unloading point
Delivery completed indicator
You cannot fill the following fields (incomplete listing):
Account assignment fields (account assignment is adopted from the purchase order)
Reservation
Receiving/issuing material
Receiving/issuing plant
Receiving/issuing storage location
In the case of a purchase order item with the "subcontracting" item category, only the GR item in the interface is to be transferred. The system automatically determines GI items.
Purchase order unknown: Shipping notification known
The following fields have to be filled:
Delivery
Delivery item
Movement type
Other fields, such as those under "Purchase order known". The system determines the relevant purchase order item via the delivery/delivery item.
Purchase order unknown: Purchase order should be created automatically
The following fields have to be filled:
Material number
Plant
Storage location
Vendor
Movement type
Movement indicator
Quantity in unit of entry
ISO code unit of measurement for unit of entry
The following fields may have to be filled in some cases (incomplete listing):
Shelf life expiration date (if it has been configured like this in the system)
Reason for movement (if it has been configured like this in the system)
Batch (if the material is handled in batches and batches are not assigned automatically)
The following fields can be filled (incomplete listing):
Stock type
Item text
Unloading point
You cannot fill the following fields (incomplete listing):
Account assignment fields (automatic creation of purchase order items with account assignment is not supported)
Reservation
Receiving/issuing material
Receiving/issuing plant
Receiving/issuing storage location
Purchase order unknown: A purchase order should not be created
The following fields have to be filled:
Material number
Plant
Storage location
Vendor
Movement type
Movement indicator
Quantity in unit of entry
ISO code unit of measurement for unit of entry
The following fields may have to be filled in some cases (incomplete listing):
Shelf life expiration date (if it has been configured like this)
Reason for movement (if it has been configured like this)
Batch (if the material is handled in batches and automatic assignment of batch numbers is not set)
The following fields can be filled (incomplete listing):
Special stock indicator
Item text
Unloading point
Goods recipient
The following fields cannot be filled (incomplete listing):
Account assignment fields (automatic creation of purchase order items with account assignment is not supported)
Reservation
Receiving/issuing material
Receiving/issuing plant
Receiving/issuing storage location
Receiving/issuing batch
The input combinations listed above for the GM_CODE 01 can be combined within an input table so that they can be posted in a material document. Items can also be posted for different purchase orders, provided that all the purchase orders refer to the same vendor.
Transfer of subcontracting components
During the posting of the ordered material of a subcontract order with movement type 101, for the transfer of the subcontracting components, the filled unique identification of the document line (LINE_ID) is also required.
More information on LINE_ID and PARENT_ID
The following fields have to be filled for the components:
Unique identification of the document line
Identification of the immediately superior line
Material number
Plant
Storage location
Quantity in unit of entry
The following fields can be filled for the components:
All other fields in the method that are included in this list.
The following fields cannot be filled for the components:
All fields that are not included in the list above. The movement indicator must be initial.
Additional fields in goods-receipt-based invoice verification
When you post a goods receipt to purchase order with movement type 102, an issue with reference to a previously posted goods issue, the following fields must also be transferred:
REF_DOC_IT (LFPOS): Item of a reference document
REF_DOC (LFBNR): Document number of a reference document
REF_DOC_YR (LFBJA): Fiscal year of a reference document
Only when you transfer these fields is it guaranteed that the reference to the original goods movement stay the same.
For 2 GM_Code 02: Goods receipt for production order
The following fields have to be filled:
Order
Movement type
Movement indicator
Quantity in unit of entry
ISO code unit of measurement for unit of entry or
quantity proposal
The following fields may have to be filled in some cases (incomplete listing):
Shelf life expiration date (if the system has been configured like this)
Reason for movement (if the system has been configured like this)
Batch (if the material is handled in batches and automatic batch number assignment is not set)
Storage location (if storage location has not been specified in the order)
The following fields can be filled (incomplete listing):
Order item (co-product)
Stock type
Item text
Unloading point
"Delivery completed" indicator
The following fields cannot be filled (incomplete listing):
Account assignment fields (the account assignments are adopted from the purchase order)
Reservation
Receiving/issuing material
Receiving/issuing plant
Receiving/issuing storage location
Receiving/issuing batch
For 3 GM_Code 03: Goods issue
Goods issue without reference to a reservation
The following fields have to be filled:
Material number
Plant
Storage location
Movement type
Movement indicator
Quantity in unit of entry
ISO code unit of measurement for unit of entry
The following fields may have to be filled in some cases (incomplete listing):
Special stock (e.g. sales order, project, vendor etc.)
Shelf life expiration date (if the system is configured like this)
Reason for movement (if the system has been configured like this)
Batch (if the material is handled in batches and automatic batch number assignment is not set)
Account assignment fields
The following fields can be filled (incomplete listing):
Special stock indicator
Item text
Unloading point
Goods recipient
The following fields cannot be filled (incomplete listing):
Reservation
Receiving/issuing material
Receiving/issuing plant
Receiving/issuing storage location
Receiving/issuing batch
Goods issue with reference to a reservation
The following fields have to be filled:
Reservation number
Reservation item
Record type of the reservation
Movement indicator
Quantity in unit of entry
ISO code unit of measurement for unit of entry
The following fields may have to be filled in some cases (incomplete listing):
Shelf life expiration date (if this has been configured in the system)
Reason for movement (if this has been configured in the system)
Batch (if the material is handled in batches and automatic batch number assignment is not set)
Storage location (if not planned in the reservation)
The following fields can be filled (incomplete listing):
Special stock indicator
Item text
Unloading point
Goods recipient
The following fields cannot be filled (incomplete listing):
Movement type
Material
Plant
Account assignment fields
For 4 GM_Code 04: Transfer posting
Transfer posting without reference to a reservation
The following fields have to be filled:
Material number
Plant
Storage location
Movement type
Movement indicator
Quantity in unit of entry
ISO code unit of measurement for unit of entry
The following fields may have to be filled in some cases (incomplete listing):
Receiving material
Receiving plant
Receiving storage location
Receiving batch (if material is handled in batches and you want to change batches)
Receiving/issuing special stock (e.g. sales order, project, vendor etc.)
Shelf life expiration date (if this has been configured in the system)
Reason for movement (if this has been configured in the system)
Batch (if the material is handled in batches and automatic batch number assignment is not set)
The following fields can be filled (incomplete listing):
Special stock indicator
Item text
Account assignment fields (for automatic posting lines: Expense/income from stock transfer)
The following fields cannot be filled (incomplete listing):
Reservation
Transfer posting with reference to a reservation
See goods issue with reference to a reservation
For 5 GM_Code 05: Other goods receipts
Other goods receipt without reference to a reservation
See goods issue without reference to a reservation
Other goods receipt with reference to a reservation
See goods issue with reference to a reservation
For 6 GM_Code 06: Reversal of goods movements
You can use the Cancel method to reverse goods movements. But you may also want to cancel a goods movement without referring to a material document (see the Cancel method).
If you want to work without referring to the document, you have to fill the field BAPI_GM_ITEM_CREATE-XSTOB in the interface (import table GOODSMVT_ITEM). In this case, the system converts the movement type assigned in the interface to the reversal movement type. Alternatively, you can set the reversal movement type in the interface. In this case, the BAPI_GM_ITEM_CREATE_XSTOB field must be transferred blank.
If you want to cancel a goods movement with reference to a reservation (without using the Cancel method) you can only transfer the field BAPI_GM_ITEM_CREATE_XSTOB if it is filled. Movement types are not transferred when you post with reference to a reservation, as the movement type is contained in the reservation item.
For 7. GM_Code 07: Subsequent adjustment to a subcontract order
Ordered material of subcontract order
The following fields have to be filled:
Unique identification of document line (can be assigned to anything)
Posting date in document header
Document number of purchasing document
Item number of purchasing document
Material number check
Plant check
Movement type (select movement type 121)
Movement indicator (must be O)
Further entries are not allowed. The entry quantity for the ordered material of a subcontract order must be zero.
Components
The following fields have to be filled:
Unique identification of document line (can be assigned to anything)
Identification of the immediately superior line
Plant
Material number check
Quantity in unit of entry; can also be negative
The following fields can be filled:
Storage location
All other fields in the method that are included in this list.
The following fields may not be filled:
All fields that are not in the list above. The movement indicator must be blank.
More information on LINE_ID and PARENT_ID
Additional fields in goods-receipt-based invoice verification
When you post a subsequent adjustment, the following fields must also be transferred:
REF_DOC_IT (LFPOS): Item of a reference document
REF_DOC (LFBNR): Document number of a reference document
REF_DOC_YR (LFBJA): Fiscal year of a reference document
Only when you transfer these fields is it guaranteed that the reference to the original goods movement stays the same.

Similar Messages

  • Create Goods Receipt with an Inbound Delivery

    Hi,
    Can you anybody help me, how to create a Goods Receipt with correspond to Inbound Delivery.
    Which FM or BAPI avaliable for this. Anybody did it before please pass to me with details?
    Thanks in Advance
    Cino C B
    Edited by: Cili on Feb 11, 2008 8:19 PM

    Check BAPI_GOODSMVT_CREATE
    Look at the documentation if you want to make a goods issue or a good receipt for purchase order or production order, etc.
    Inbound delivery only means is going to enter the plant (ie. mvt 101)

  • Create Goods Receipt with Powl

    Hello,
    Is it possible to create a goods receipt in the portal with POWL. Because when I look at the SAP Help of BP for buyer i only find display goods receipt.
    [http://help.sap.com/saphelp_erp2005/helpdata/en/b4/05874018c0ce62e10000000a155106/frameset.htm]
    Anyone has an idea if this is possible or not?
    Because i find very little information about how to use BP for buyer.
    Thanks in advance,
    With kind regards,
    Robin

    Hi Robin,
    If you are still struggling with this heres are some more details.
    knowing that each POWL is associated with a feeder class. Goto transaction se80, enter the feeder class, go to method IF_POWL_FEEDER~GET_FIELD_CATALOG
    and implement the logic to add a button. Using eventing options for a button, you can call a portal iView by specifying it's PCD path.
    More details can be found below
    https://help.sap.com/saphelp_erp2005/helpdata/en/42/dcb7608d23162fe10000000a1553f7/frameset.htm
    Re: How to Modify a POWL

  • DTW : How to Create goods receipt with quantity exceeding purchase order ?

    Hello DTW Experts,
    is there any way to deliver or receive an quantity exceeding the quantiy of the purchase order using DTW, or the only way is to create additional order (create a goods receipt is based on a purchase order).
    When i try the system gives me these 2 different messages :
    1 - One of the base documents has already been closed  PDN1.BaseEntry[line: 1]Erreur définie par l'application ou par ...
    2 - One of the base documents has already been closed Erreur définie par l'application ou par l'objetoPurchaseDeliveryNotes
    Thanks,
    Hafid

    The best way is to draw the purchse order through then add an additional line to the Goods Receipt for the additional quantity. This will close the PO properly, but record the additional quantity

  • No goods receipt possible for purchase order Number and Item number.

    Hello experts,
    When I create a Goods Reciept with reference to Purchase Order using BAPI_GOODSMVT_CREATE, the following error message appears.
    No goods receipt possible for purchase order <PO number> <line item number>.
    But the GR is getting created manually using Transaction MIGO for the same PO number.
    I found some blogs to check for deletion indicator and Movement type and quantity, when I searched SDN for the same Issue.
    In my case 
    1.deletion indicator is not set for the Purchase order line items
    2.And Movement type is 101
    3.And gm_code is 01.
    Could anyone please suggest me, what else could be the reason for this error?

    Here is the code what i have written.
      f_gmvt_header-pstng_date = sy-datum.
      f_gmvt_header-doc_date   = sy-datum.
      f_gmvt_header-pr_uname   = sy-uname.
      f_gmvt_header-ref_doc_no = p_ebeln.
      f_goodsmvt_code_tmp        = '01'.
    * Looping the PO details.
      CLEAR: gf_item,f_gmvt_item.
      LOOP AT gt_item INTO gf_item.
    * fill the bapi item structure details
        f_gmvt_item-material   = gf_item-material.
        f_gmvt_item-plant      = gf_sbms-werks.
        f_gmvt_item-stge_loc   = '0001'.
        f_gmvt_item-move_type  = '101'.
        f_gmvt_item-po_number  = p_ebeln.
        f_gmvt_item-po_item    = gf_item-po_item.
        f_gmvt_item-entry_qnt  = gf_item-quantity.
        f_gmvt_item-entry_uom  = 'PC'.
        f_gmvt_item-entry_uom_iso = 'PCE'.
        f_gmvt_item-po_pr_qnt = gf_item-quantity.
        f_gmvt_item-orderpr_un = 'PC'.
        f_gmvt_item-orderpr_un_iso = 'PCE'.
        f_gmvt_item-no_more_gr = 'X'.
        f_gmvt_item-ref_doc    = p_ebeln.
        f_gmvt_item-prod_date  = sy-datum.
        f_gmvt_item-mvt_ind    = 'B'.
        f_gmvt_item-move_reas  = '101'.
        f_gmvt_item-vendor      = gf_lfm1-lifnr.
        APPEND f_gmvt_item TO t_gmvt_item.
        CLEAR f_gmvt_item.
      ENDLOOP.
    * cALL THE bapi fm FOR gr POSTING
      CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
        EXPORTING
          goodsmvt_header               = f_gmvt_header
          goodsmvt_code                 = f_goodsmvt_code_tmp
    *     TESTRUN                       = ' '
    *     GOODSMVT_REF_EWM              =
       IMPORTING
         goodsmvt_headret              = f_gmvt_headret
    *     MATERIALDOCUMENT              =
    *     MATDOCUMENTYEAR               =
        TABLES
          goodsmvt_item                 = t_gmvt_item
    *     GOODSMVT_SERIALNUMBER         =
          return                        = t_return
    *     GOODSMVT_SERV_PART_DATA       =
    *     EXTENSIONIN                   =
      IF sy-subrc = 0.
    * For commit the changes use BAPI_TRANSACTION_COMMIT FM.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
          EXPORTING
            wait = 'X'.
    *      MOVE: f_GMVT_HEADRET-MAT_DOC   TO WA_DET-MBLNR,
    *            f_GMVT_HEADRET-DOC_YEAR  TO WA_DET-MJAHR,
    *            f_GMVT_HEADER-REF_DOC_NO TO WA_DET-EBELN.
    *      APPEND WA_DET TO IT_DET.
    *      CLEAR WA_DET.
      ENDIF.

  • Good receipt with reference to outbound delivery document

    Hello Gurus,
    Could someone please help with the following scenario?
    Article 1234 has base unit of measure pc, altenative measure box, 1 box = 12 PC
    In the purchase order (stock transfer order from one site to another site) 4 box of article 1234 is ordered. Outbound delivery created with reference to the above purchase order (stock transfer order) has quantity of 4 boxes (this is copied from PO). And then an transfer order is created with reference to the above outbound delivery and quantity requested is 4 boxes (copied from outbound delivery), but in the transfer order confirmation the confirmed quantity is 14 pcs (this is now confirmed with base unit of measure). And now if we check the outbound delivery doc, the confirm quantity is 14 pcs (1,167 box )
    But when creating good receipt with reference to the outbound delivery document, the quantity confirmed is now 14.004 pcs (this is calculated with unit of measure conversion table, i guess). But actually good receipt quantity should be 14 pcs instead of 14,004 Pcs!
    What can we do in order to have 14 pc in good receipt?
    Thanks in advance for your great help.
    Br, Ailleen

    Hi,
    Thanks a lot for both of your answers. But if is there a way to receive 14 pcs instead of 14.004 pc although the system did the right calculation according to the conversion rules!
    But in this case the supplying plant has issued 14 pcs but receiving plant has received 14,004 pcs and now there is discrepancy! Is there some enhancement or user exit could fix the situation or do I have to change the coding in order to solve this problem!
    Thanks again for you helpful advice!
    Br, Ailleen

  • PO Goods Receipt with Serial / Batch number with DI API

    I am creating PO Goods Receipt with DI API. This works fine. But when i have items with serial numbers and batch numbers in the same PO, then i am getting either of the following errors:
    1. [OITM]Item has no serial number management
    2. [OIBT] Invalid Item Code.
    I debugged the code and the values i set seems to be correct. I am using VB.Net and SAP 2004 with Patch 23.
    Thanks
    Anand

    Anand,
    When you are working with a Serialized item in the first scenario, have you tested working with the item in the Business One application itself?  Have you tried to have the system assign a serial number for the item when issuing a Goods Receipt?  Do you get the same issue through the Business One interface.  With respect to working with Batches, have you setup the Batches for inventory items through the Business One interface yet?  If you have not setup Batches, this would be why you would not have any data in the OIBT table.
    HTH,
    Eddy

  • Batch needs to be created 1st then post goods receipt with inbound delivery

    Hi,
    We are having split valuated materials with batch managed, we need to post goods receipt with inbound delivery.
    When we create inbound delivery with PO batch is blank which is correct.
    Now when we try to post GR with IBD in VL32N we need to put batch, but we are getting error message as batch is not available in receiving plant.
    In this case we have to create batch 1st with MSC1N and then we can put batch number in Vl32N and can post GR.
    If material is not split valuated we can put batch manualy(Without creation in MSC1N) in VL32N and it is allowing to post GR with batch.
    Can you please let me know this behaviour, is there any SAP note available about this behaviour.
    Thanks
    Sudhir

    Hi Uwe,
    Can an inbound WHSCON IDoc used for doing both the goods receipt in the PO and the update of the message flow in the delivery?
    The binary answer would be no. You should use WMMBXY or MBGMCR instead.
    But if we are doing goods receipt against Inbound delivery then answer is YES with additionally E1EDL18-QUALF = 'PIC' populated. But please remember no partial receipt is possible against Inbound Delivery.
    We should populate E1EDL20-VBELN with our Inbound delivery number and line item info should go to E1EDL24.
    I have done a similar interface recently where we are doing receipt against Inbound delivery. But our case was a bit complex because we had to support against Inbound delivery. So we had to go for a custom solution on top of IDOC_INPUT_DELVRY.
    Hope this helps. Let me know if you have more questions.
    Regards,
    Rudra

  • DIAPI - Create Goods Receipt for Serial Number - on Release Only

    Hi Experts,
    I need your advise to create Goods Receipt by using DIAPI, where the item is managed by Serial Number - on Release Only.
    The option that I'm exploring is to use ‘Automatic Serial Number Creation on Receipt’ turned on.
    In standard SAP function with the above setting, we can create a Goods Receipt without entering any Serial Number, and SAP will automatically creates empty Serial Number. I'm trying to do the same thing by using DIAPI with the below code.
    oTargetDocument.Lines.ItemCode = 'abc'
    oTargetDocument.Lines.WarehouseCode = 'whs'
    oTargetDocument.Lines.UnitPrice = 100
    oTargetDocument.Lines.BinAllocations.BinAbsEntry = 1
    oTargetDocument.Lines.BinAllocations.Quantity = 1
    oTargetDocument.Lines.Quantity = 1
    '--       I skipped the below code, expecting SAP will create the empty Serial Number automatically
    '     oTargetDocument.Lines.SerialNumbers.SetCurrentLine(0)
    '     oTargetDocument.Lines.SerialNumbers.InternalSerialNumber = 2
    '     oTargetDocument.Lines.SerialNumbers.Add()
    '     oTargetDocument.Lines.BinAllocations.SerialAndBatchNumbersBaseLine = 0
    oTargetDocument.Add
    But, it returns 1470000838 - Invalid "SerialAndBatchNumbersBaseLine"; specify a valid "SerialAndBatchNumbersBaseLine"
    Can anyone please advise how we should achieve this?
    Any example or reference is very much appreciated.
    Thank you and kind regards,
    Krisma

    Hi Krisma,
    I was trying to simulate the issue here, but I couldn't post a good receipt PO even from the SAP itself with the setting you mentioned.
    I have set the management method as 'On Release' and ticked the Automatic serial number creation flag as well under general settings of inventory. Is that the setting you mentioned or something else?
    Best Regards,
    J S L Geeganage

  • Find a bapi for Creates a Goods Receipt with correspond to Inbound Delivery

    hi expert!
    exist a bapi for tcode:MIGO_GR ( Goods Receipt with correspond to Inbound Delivery)
    i know one bapI  BAPI_GOODSMVT_CREATE can Creates a Goods Receipt,
      but i can't know to use it to Creates a Goods Receipt with correspond to Inbound Delivery.
    or other bapi exist for MIGO_GR?
    Best Regard!

    Hi Vatcan,
    Chek the Inbound Delivery 1st weather you refer the right PO in it
    You can also chek in  PO i
    1 Me23n Go to confirmation tab here you can see the  Inbound delivery  quantity
    2 Chek  which reference document you recived the goods,  (i.e You recived the goods with reference to PO or  Inbound delivery)
    2 Coz if you refer the inbound delivery then syestem will deafult show the inbound quanity
    And yes the actual quanity will update in inbound delivery if you refer the inbound deivery while reciveing the goods

  • Goods receipts with GTIN barcode thru RF

    Hello Experts,
    In order to perform Goods receipts with a custom RF transaction, we need to scan the material number and PO number on the pallet that is sent by vendors.these barcodes are external barcodes from the vendor. Our vendors are using GTIN codes on the pallets, is it possible to scan these barcodes with RF solution ? is that involved some custom code in the RF development, where these barcode type is supported by SAP system?
    Thanks in Advance

    Hello,
    Based on my understanding below are my answers.
    Your question: is it possible to scan these barcodes with RF solution ?
    Asnwer: Yes. Through RF Gun you can scan and get the details
    Your Question: is that involved some custom code in the RF development,
    Answer: Yes. Because this GR is based on the GTIN scan number.
    You Question: where these barcode type is supported by SAP system?
    Answer: You can see in SPRO: LE: Mobile Data Entry: BarCode. where you can give the Bar code type.. Generally now a days Most Gtin numbers are UPC/EAN128 type.
    Coming to the process What my understanding is.... you need to have custom RF Z TCode (Program) required to sacn and process based on material and PO number.
    You can do GR directly by using functional module for VL01n/MiGO if WM is required then use functional module to create TO and confirm module to confirm....
    All i can say is anything you can so through costume program that can be assigned to RF menu management screen.
    hope i answer your questions based on my understanding.....
    thanks.
    tkreddy

  • Can we create inbound delivery with refernce to outbound delivery?

    Dear all,
    can we create inbound delivery with refernce to outbound delivery?
    Regards
    ahmad

    Dear Ahamed
    I beleive it is a stock movement between 2 different plants
    If so then the receiving plant will have to do GR against the outbound delivery only
    The outbound delivery of the supplying plant
    The  outbound delivery of the supplying plant will not become the inbound delivery of the receiving plant in SAP
    But logically yes
    Your second post talks about outbound delivery only and that is correct
    My point is your proces doesnot involve inbound delivery at all
    In STO there is no inbound delivery at all
    Inbound delivery in SAP means shipping notification that means the confirmation from the vendor about the despatches
    That will not have  muck material details and it is just a confirmation
    Meaning of inbound delivery from SCM 601 logistics execution
    The goods receipt process using inbound deliveries realistically maps standard
    processes in many companies. If the vendor announces the goods receipt with a
    shipping notification, the inbound delivery can be created either manually or
    automatically on the basis of the shipping notification. It contains information
    transmitted by the vendor concerning the expected delivery times and quantities,
    as well as any information about packaging. It is also the reference document for
    the subsequent putaway using a transfer order. If you also use the transportation
    function as part of Logistics Execution, you can summarize inbound deliveries
    into inbound shipments.
    Regards
    Raja

  • Create Goods Receipt PO from  AP Reserve Invoice (bug?)

    Via the user interface of sap2005 pl7 you can create "Goods Receipt PO" from an "AP Reserve Invoice".
    In the "base type" field of goods receipt the value "18" is displayed. This seems not to be a "valid value" and it is as a consequence not possible to read the contents of this field with the UI-API, because <i>base type</i> is a combo box and only valid values can be returned.
    Is there a workaround to get a none valid value from a combobox?

    Hi Jurgen,
    It looks like it is a bug and that the same bug exists on the sales side of the DI API. Herewith a post that you can read about it.
    /thread/48329 [original link is broken]
    Hope it helps,
    Adele

  • Cancellation of Goods Receipt with Credit Memo Transaction Issue

    Dear SAP Expert and Guru,
    Normally cancellation of goods receipt cannot be done when invoice has been issued. Cancellation of Goods receipt can only be done when there is the credit memo being issued in MIRO.
    The problem now is that is there any table that can tracked the linkage between Credit Memo and the Cancellation of Goods receipt?
    The goods receipt with the invoice linkage can be found in both table EKBE and BKPF. But not the credit memo and cancellation of Goods receipt.
    Thank you
    Regards
    Leonard Tan

    Dear Jeya and SAP expert and Gurus,
    You are correct, but with the document number, how am I going to get the Cancellation of GR document?
    In table BKPF and EKBE. With the invoice number (34*******) then pass it to table BKPF to get the invoice number (52*******),
    Then get the invoice number (52*******) pass it to table EKBE to get the Goods Receipt document (61*******).
    However, this only can track the transaction goods receipt and Invoice but not the credit memo with cancellation of goods receipt.
    Kindly asvise on that.
    Thank you
    Regards
    Leonard Tan
    Note : Do not quote previous reply every time,simply reply for member you want to respond.
    Edited by: Jeyakanthan A on Jul 8, 2011 3:23 PM

  • Goods Receipt with respect to Handling Unit (Transaction u0096 MIGO)

    Hi All,
    A delivery is created for stock transport order for goods movement from Plant XXXX (Storage Location – YYYY) to Plant XXXX (Storage Location – ZZZZ).
    Handling Units are packed on delivery and delivery is post goods issued from Plant XXXX (Storage Location – ZZZZ).
    While posting goods receipt (Transaction – MIGO) without selecting “Via Handling Units” system populates the “packaging material” line item whereas when “Via Handling Units” is selected (in other words – when tried to post Goods Receipt with respect to Handling Units) system doesn’t populate the associated “packaging material”.
    Requirement is to populate “packaging material” line item while posting Goods Receipt with respect to Handling Unit.
    Plz guide me.
    Satish

    Hi Vatcan,
    Chek the Inbound Delivery 1st weather you refer the right PO in it
    You can also chek in  PO i
    1 Me23n Go to confirmation tab here you can see the  Inbound delivery  quantity
    2 Chek  which reference document you recived the goods,  (i.e You recived the goods with reference to PO or  Inbound delivery)
    2 Coz if you refer the inbound delivery then syestem will deafult show the inbound quanity
    And yes the actual quanity will update in inbound delivery if you refer the inbound deivery while reciveing the goods

Maybe you are looking for

  • Help! my ipod touch  2nd gen wont turn on

    wont turn on it keep saying chrage it when i chrage it for hrs and only keep loading the apple logo! idk what to do help!? and it keeps repeating it and also theres no water damage or anything but i havent use it in only a month and thats all!

  • MS Word OLE integration i new UI??

    Hi Folks We are in the middle of an upgrade from CRM 3.1 to CRM2007.  And the new WEB UI. In our old SAP gui, we have developped a ABAP Report program that collects a lot of data, and then via OLE integrated to a Word document. We didn't use the DOI,

  • Tape drive Configuration

    Hi, I am unable to take archivelog backup from DB13. From OS level we are able to take backup. Please give me an idea to set any parameters for tape drive in SAP level. Thanks, Nagesh

  • Can't read my container

    hi everybody, i am working with the teststand API und C#, and i have following problem: i wrote a programm that automatically create a sequence , and insert a container as Parameter in this sequence. The problem is that i can't access the elements of

  • Cisco Video Book

    Does anyone know if there is a, or plans for a, Cisco Press Video / IPVC / MCU book? I think it’s a big enough portion of the AVVID solution that a book is well overdue and needed. Thanks, Jesse