Error while doing Good Issue for Production Order using BAPI

Hi All,
I am facing an error like 'u2018Content of order 1011907: MDT218AJ10 transferred to interface (IMSEG): T-86410-71".
I have written the code as below. Please let me know what is missing when using the BAPI 'BAPI_GOODSMVT_CREATE'. What is the cause of this error ?
*Action in Transaction (GM_CODE)
*GM Code for Goods Issue for Production Order is 03
  gs_gmcode-gm_code = '03'.
*Header Data
*Posting date
  gs_header-pstng_date = sy-datum.
*Document date
  gs_header-doc_date   = sy-datum.
*Item Data
*Material
  gs_item-material  = zptp_s_rf_migo_261-matnr1.
*Movement Type
  gs_item-move_type = '261'.
*Movement Indicator
  gs_item-mvt_ind   = 'F'.
*Stock Type
  gs_item-stck_type = 'F'.
*Plant
  gs_item-plant     = gv_plant.
*Storage Location
  gs_item-stge_loc  = gv_str_loc.
*Quantity
  gs_item-entry_qnt = zptp_s_rf_migo_261-menge2.
*Unit
  gs_item-entry_uom = gv_uom.
*ISO code for unit of measurement
  gs_item-entry_uom_iso = gv_uom.
*Order Number
  CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING
      input  = zptp_s_rf_migo_261-aufnr
    IMPORTING
      output = gs_item-orderid.
*Reservation Number
  gs_item-reserv_no = gv_resv_num.
*Reservation Item
  gs_item-res_item = gv_resv_itm.
*Reservation Type
  gs_item-res_type = gv_resv_type.
  APPEND gs_item TO gt_item.
Calling BAPI_GOODSMVT_CREATE to create the Material Document Number
  CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
    EXPORTING
      goodsmvt_header       = gs_header
      goodsmvt_code         = gs_gmcode
    IMPORTING
      goodsmvt_headret      = gs_headret
    TABLES
      goodsmvt_item         = gt_item
      goodsmvt_serialnumber = gt_serial
      return                = gt_return.
Thanks in Advance.

hi,
did you look at message ?
System says, there are differences between the interface data and the order data. It can be anything. I think you should check
data in the interface . 
this is the long explanation of your message :
Diagnosis
When calling the function module MB_CREATE_GOODS_MOVEMENT or the BAPI GoodsMovement.CreateFromData (BAPI_GOODSMVT_CREATE) to post a goods receipt for a production order, there are differences between the interface data and the order data.
Example: The order was created for plant 0001, but plant 0002 is passed on in the interface.
The system checks this for the material and the order item.
System response
Due to this difference, the system cannot post the goods receipt.
Procedure
Check the data in the interface (IMSEG-WERKS, IMSEG-AUFNR). If necessary, correct the plant or the order number in the interface.
<< Moderator message - Point begging removed >>
Edited by: Rob Burbank on Feb 6, 2012 11:24 AM

Similar Messages

  • Error while doing Goods Receipt for Production Order

    We have created following test data in our Development System:
    Production Order:1000016
    We have processed the abv. production order thru create, release & confirm stages.However, on doing Goods Receipt of the Order thru MB31, system is giving following error:
    Msg.No.NA M7001:Check Table TFBEFU_CR entry 10 does not exist.
    Can u pl help me in analysing the same.
    With Rgds.,
    Rakesh Kumar
    09324847499

    Hi,
    Maintain the OPK9 (Valuation Variant for the Order Costing).
    It will go thorugh..
    Otherwise revert for further discussion..
    Regards,
    Siva

  • Error while doing Goods receipt for process order. Error code: "BS027"

    I am getting error while doing GR for a day whereas previous day(s) GR is already done and also 2 days post that day are also done successfully.
    Error :  ""Goods receipt for prodn. order" is not allowed (ORD XX-CEMTSAL) " (XX = First two characters of plant code)
    Error code: BS027.
    Thanks to all in advance.

    Hello,
    This issue would occur when you want to post a confirmation for a production order. The error message is generated if you wanted to post a backflush for a component and if this component was assigned to a sales order stock. The sales order itself was assigned to a work breakdown structure element which should be debited with the actual costs. However, the business transaction 'Confirm' is not permitted for a work breakdown structure.
    Please look into SAP Note 62367 and 64370
    Hope the information is helpful
    regards

  • Bins problem while creating goods receipt for production order.

    Hi All,
              I am facing a problem with selection of bins while creating goods receipt for production order in transaction MB31 and MBBE.
    The order of filling bins is with respect to storage Unit not by document no, Please suggest something.
    The scene is like that.
    The bins are not filled in the proper sequence, the system checks for the empty bins and filled those later on.
    like this,.
    Typ StorageBin  SC SS    Stock Avail.st BUn GR Date    DocumentNo Storage Unit         Time   
    SLoc Batch      Re IA PutawayS Pick qty Cert. No.                                                                               
    VN1 106A088                 0        0  CS  01/25/2010    4739297 1005721391           10:00:59
    100  0001020069            60        0                                                        
    VN1 107B076                 0        0  CS  01/25/2010    4739298 1005721392           10:01:01
    100  0001020069            60        0                                                        
    VN1 108B076                 0        0  CS  01/25/2010    4739299 1005721393           10:01:04
    100  0001020069            60        0                                                        
    VN1 109A077                 0        0  CS  01/25/2010    4739300 1005721394           10:01:06
    100  0001020069            60        0                                                        
    VN1 110B079                 0        0  CS  01/25/2010    4739301 1005721395           10:01:08
    100  0001020069            60        0                                                        
    VN1 106B088                 0        0  CS  01/25/2010    4739302 1005721403           10:01:11
    100  0001020069            60        0                                                        
    VN1 123B158                 0        0  CS  01/25/2010    4739303 1005721389           10:01:13
    100  0001020069            60        0                                                        
    VN1 124A160                 0        0  CS  01/25/2010    4739304 1005721390           10:01:15
    100  0001020069            60        0                                                        
    VN1 118A133                 0        0  CS  01/25/2010    4739305 1005721396           10:01:17
    100  0001020069            60        0                                                        
    VN1 119A128                 0        0  CS  01/25/2010    4739306 1005721397           10:01:20
    100  0001020069            60        0                                                        
    VN1 120B162                 0        0  CS  01/25/2010    4739307 1005721398           10:01:22
    100  0001020069            60        0                                                        
    VN1 121B159                 0        0  CS  01/25/2010    4739308 1005721399           10:01:24
    100  0001020069            60        0                                                        
    VN1 122B159                 0        0  CS  01/25/2010    4739309 1005721400           10:01:26
    100  0001020069            60        0                                                        
    VN1 123B159                 0        0  CS  01/25/2010    4739310 1005721401           10:01:29
    100  0001020069            60        0                                                        
    VN1 124B160                 0        0  CS  01/25/2010    4739311 1005721402           10:01:31
    100  0001020069            60        0                                                        
    Thnks you,
    Anmol.
    Edited by: anmol112 on Jan 25, 2010 10:34 PM

    no replay, clossing threat.

  • Error while adding  the issue for production (item cost not found)

    Hi all,
    The scenario is,
    when the user is trying to add the issue for production system is showing error item cost not
    found.The item which is issued is Inventory + purchase item with manual issue method.The valuation
    method for that item is FIFO.since the valuation method is FIFO,error related to item cost should
    not occur.
    Since the valuation method is FIFO.Item cost error should not occur.
    The error related to item cost must not occur at the time of issue for production.
    Regards-
    Mona.

    Hi!
    Please check these threads
    Sales Delivery Document
    Item Cost Error
    No item cost was found

  • Error while posting Goods issue for the reservation

    Hi,
    I am getting an error while trying to post the Goods Isuue for the reservation using MIGO transaction. The error is 'Level AR belongs to cash position (source symbol PSK)'.
    Please help me in solving this if anyone has any idea, let me know what am I supposed to do.
    Regards,
    Lavanya.

    Hi
    I think Cash Management (TR-CM) module implemented in your system.Please post this in Finance forum.
    Regards
    Ramakrishna

  • Goods issue in production order using BAPI_PRODORDCONF_CREATE_TT

    Hi All,
    This is regarding goods issue in a production order.We are trying to do this using BAPI_PRODORDCONF_CREATE_TT.
    We have a finished good say FK_PROD_ORD_CONV(with BOM -FKTESTOUT2).we need to do a Goods Issue for this which implies that at reporting point 0001,we need to issue x quantities of BOM FKTESTOUT2 from a particular plant and storage location, and of a particular batch. Therefore, we need to pass the following:
    Production order number
    Plant
    Material (BOM) = FKTESTOUT2
    Movement indicator (which is u2018Fu2019 for goods movement) = u2018Fu2019.
    Movement type = 261(for Goods Issue)
    Storage location of BOM
    Batch
    Operation (Routing point) = 0001
    Entry quantity
    Entry Unit of measure = PC.
    In addition, we need to maintain entries in Link_conf_goodsmov-INDEX_CONFIRM and link_conf_goodsmov-INDEX_GOODSMOV. The value for both would be u20181u2019.
    In the Test program, although I am passing all these values, Goods Issue is not happening. I am not getting any error.The message just says that the production order has been confirmed but when i check for goods Issue,no corresponding data is there.
    After this i am calling fm to commit the work as well.
    Please let me know if I have missed something.

    Good day!
    Do you see you confirmation with CO14 transaction?
    What on movements tab?
    Look at postprocess transaction COGI CO1P.
    Check LINK_CONF_GOODSMOV TABLE with 1,1 record.

  • Error while doing goods issue of finished goods

    Dear All,
            When I try to issue fineshed good to project using transaction code MIGO, I get the following error:
    "WBS element xxxx does not exist" and  the message line shows " Variant xxxxx is deleted."
    Kindly help me in solving this problem.
    Regards,
    Shynu John

    I am not sure why it has happened ?  May be some inconsistency, but if you wanted to check than change the date of project and try to reverse the GI.  The the project date is not having any direct linkage with WBS posting.
    With regards
    Nitin P.

  • Error while posting Goods Issue for an STO

    Hi All,
    I have created a Stock Transport Order for Plant A to Plan B and when I go to transaction VL10D and try to create a delivery for my STO then it gives the following error message
    ARun type  does not exist
    Message no. 8J103
    How do I overcome this.

    Please read OSS note 1287602.

  • Goods Receipt for Purchase Order Using BAPI 'BAPI_GOODSMVT_CREATE'

    MB01->....->Adopt+details->...........
    How to fill the table GOODSMVT_ITEM(TALBE of BAPI_GOODSMVT_CREATE'), and final document created  like following:
    Item Quantity          EUn Material           Plnt  SLoc PO         Item  S DCI
                           BUn Material description          Batch      R MvT S T
       1 1                 KG  CB-602             8010  WH06 4500000752 10
                                                             DDDD         101 +
       2 1.020             KG  CRB-2120           8010       4500000752 10    O
                                                             9999         543 -

    Hi
    <u>Please take a look at the links for sample coding of the function module - BAPI_GOODSMVT_CREATE.</u>
    <b>http://www.sap-img.com/abap/bapi-goodsmvt-create-to-post-goods-movement.htm
    http://www.4ap.de/abap/bapi_goodsmvt_create.php</b>
    Hope this will help.
    Please reward suitable points.
    Regards
    - Atul

  • Goods Issue on Production Order

    Dear PP Gurus,
    The requirement is,
    while doing Goods issue for Production order of X material, during operation Confirmation ' CO11 & CO12' , System should allow only BOM components of X and restrict or give warning message for goods movement of other materials.
    I tried to use available User Exit for PP Orders but none of them gives desired output.
    Can nybody guide me.
    Thnx in advance.

    In customizing materials management -
    > Inventory Management and Physical Inventory->Goods Issue / Transfer Postings make--> Set Up Dynamic Availability Check
    For 261 movement type set Dynamic Availability Check as "F"
    and then in omcq transaction M7 362 message set "E"
    This customizings prevent good ıssue more than reservation quantity

  • Error during Goods Receipt for Production Order

    Hi All,
    When using MIGO to post Goods Receipt for a Production Order, I got a customize message saying that the posting is only available between 2010.08.25 to 2010.08.27.  I have checked in Business Add-in using SE19 but there are no implementation present.  I know that in Logistic Verification MIRO there is a transaction OMRM to set messages.  I would like to ask is there anything similar for MIGO.  
    Or is there any other place in Configuration which allows me to add these Customize message.
    Thanks.
    Edited by: jamison2004 jordan2004 on Jul 9, 2010 9:09 AM

    Hello Jiaul,
    Sorry I may have mislead you.  The actual error message is "Goods Receipt for Production Order XXXX can only be made on 2010.08.25 to 2010.08.27".  These two dates are the Start Date and FInish Date for the Production Order in CO03, 
    The Basic Start Date for the current Production Order is  2010.08.25
    The Basic Finish Date for the current Production Order is 2010.08.27
    I think what it means is that you can only Post Goods Receipt for the Production Order only after the Basic Start Date of the Production Order.  Do you know where I can find the configuration for this message?
    Thanks

  • Error while doing outbound delivery against Purchase Order

    hello
    i m getting error while doing Outbound delivery for purchase order as follows
    EKPO-SOBKZ=E; EKPO-UMSOK=_; EKPO-KZBWS<>_ EKPO-KZVBR<>E (Note 305582) not supported (check your entry)
    Message no. M7146, i m not getting wht will be the reason,
    Regards
    NISHJ

    Please go through the note - 305582. It is clearly given the direction.
    Symptom
    You try to post a goods movement for a stock transport order from the unrestricted-use stock into the sales order stock or project stock.
    During the goods issue, the system displays error message M7146 with a text along the lines of "EKPO-SOBKZ=E; EKPO-KZVBR<>E; ... not supported".
    Cause and prerequisites
    In the goods issue for the stock transport order, the system may have to create a stock in transit which is deconstructed during the goods receipt. If the withdrawal takes place from the special stock, it is clear which is the receiving stock.
    However, if the withdrawal is carried out from the unrestricted-use stock ("Collective requirements", controlled by the dependent requirements indicator MARC-SBDKZ in the material master of the issuing plant), this results in the design problem that the control tables of the goods movement do not have any key field for the receiving stock. Therefore, the control for the receiving stock is controlled via the consumption indicator in the account assignment category of the purchase order. The consumption indicator therefore requires a specific default setting (you may have assumed you could change the design of these control tables, however this is not possible).
    Using an inappropriate consumption indicator then causes for the goods issue an incorrect or no stock in transit to be created so that the goods receipt fails.
    Solution
    Implement the program change in accordance with the correction instructions.
    Afterwards implement Note 413908 immediately if this is relevant for your release.

  • Good issue to Production order - Allows it in back posting date

    Dear all,
    Good issue to Production order ( 261 Movement ), allows us to post the component in back dated eventhough stock is not avaible on that date.
    Example - Component stock on date 10.02.2010 = Zero , I made it Good receipt on date 18.02.2010 and now stock is available on date 18.02.2010.
    Now GI to Production it allows the qty on current and back Posting date also , I want control on date with error message. It should not allowed the GI for back date from 18.02.2010.
    Because of this our MB5B report shows the negetive issue qty if i post in back date.
    Waiting for reply
    Thanks and Regards,
    Saurabh

    Hi SAurabh,
    PLease check whether Negative Stock is allowed for the valuation Area (plant).
    GOTO >> SPRO >> MM>> Invetnroy management and physical inventory >> Goods issue/ Transfer Posting >> Allow Negative stock.
    Untick the Negative stock allowed for your valuation area (PLant)
    Regards,
    Pravin

  • Issue while doing goods issue

    Daear All,
    while doing goods issue getting the error message : Acct. 200510 for trans./event key BSX, postable directly.
    the same in goods receipt also.
    please help me on this.
    Best Regards,
    Venkat.

    In FS00 ,Please TICK 'post automatically only' for the GL 200510.
    Regards
    jabeen

Maybe you are looking for