Post GM with reference to Production Order using BAPI_GOODSMVT_CREATE

Hi Experts,
We need to post Goods Movement with reference to Production order. In brief, we have to get the functionality of MB1A done. I'm trying to use BAPI_GOODSMVT_CREATE, but its not reflecting the Documented Goods Movements in the Production Order.
Here is the data i'm using:
goodsmvt_header : posting date, document date
goodsmvt_code : 03
goodsmvt_item:
material
plant
storage loc
batch
mov typ : 261
ENTRY_QNT
ENTRY_UOM
ENTRY_UOM_ISO
order id
Sometimes it generates material doc and year in exporting parameter, and sometimes it gives message "Content of order zzzzzzz : yyyyyyy transferred to interface (IMSEG): xxxxxxx".
But despite of this I cannot see the Documented Goods Movements reflecting in the Production Order.
Can anyone help on this. Is there anything else to be passed or I'm missing any process ?

Experts,
I could get the postings done with BAPI_GOODSMVT_CREATE. I was executing BAPI_GOODSMVT_CREATE and then BAPI_TRANSACTION_COMMIT separately, thus the generated Material doc number was not getting posted. When I used the Test Sequence option from SE37 menu, it worked.

Similar Messages

  • Payment Posting with Reference to Purchase Order

    Dear Experts,
    I've created a Purchase Order with reference to a purchase requisition. Now I want to post MIRO with reference to this Purchase Order Number to give payment to Vendor mentioned in Purchase order. But when I going to post miro amount not coming which I mentioned in Purchase Order!!
    How can I post MIRO with reference to Purchase Order Number? Is it possible?
    Best Regards.
    Ripon

    >
    riponkp wrote:
    > Dear Experts,
    >
    > I've created a Purchase Order with reference to a purchase requisition. Now I want to post MIRO with reference to this Purchase Order Number to give payment to Vendor mentioned in Purchase order. But when I going to post miro amount not coming which I mentioned in Purchase Order!!
    >
    > How can I post MIRO with reference to Purchase Order Number? Is it possible?
    >
    > Best Regards.
    > Ripon
    Seems like you are doing MIRO before GR. If GR is done, it will pick the amounts, if GR is not done, the amounts are not picked. You enter the amounts manually with reference to PO.

  • MIRO posting with reference to Purchase Order

    Dear Experts,
    I've created a Purchase Order with reference to a purchase requisition. Now I want to post MIRO with reference to this Purchase Order Number to give payment to Vendor mentioned in Purchase order. But when I going to post miro amount not coming which I mentioned in Purchase Order!!
    How can I post MIRO with reference to Purchase Order Number? Is it possible?
    Best Regards.
    Ripon

    As above it sounds like a GR gasn't been posted but you can still process invoice.  Just manually enter the quantity and value as per invoice.
    Note the invoice will block for payment pending the GR.
    See transaction MRBR if you want to release the invoice for payment immediately.
    Regards,
    Nick

  • Sales order with reference to sales order

    Hi,
       I need to create a sales order with reference another sales order using bapi CreateFromDat2.  Please note, Sales Ord. Dist. channel, Div, sold-to to of the new order are different from original order.   I gave reference order in field order_header_in-REFDOCTYPE .  I am getting following error when I perform single test " FB Call: insufficient parameters.  Can any of you tell me how to overcome this issue.  And is it possible to create an order refering to another Saler order with different Sales Ord, Dist. channel, Division, sold-to ?
    <b><REMOVED BY MODERATOR></b>
    Cheers
    Sudhaker
    Message was edited by:
            Alvaro Tejada Galindo

    There is an OSS note <a href="https://service.sap.com/sap/support/notes/370988">Note 370988 - BAPIs in SD: Creation with reference</a>
    <i><b>Symptom</b>
    This note describes the problems of the 'Create with reference' function when using BAPIs to create sales documents.
    If you are working online, you can use this function module to create a sales document with reference to an existing sales document or a billing document (for example, a debit or credit memo request) according to fixed rules. The rules for transferring information from the source document to the target document are defined in the copying control on header and item level. The creation with reference permits an item selection.
    When you use BAPIs in SD, a function of this type is not fully available. A reference is only possible for a quantity contract, so that the target quantity of the contract can be reduced by the order quantity of the sales document. Furthermore, the document flow is also updated.
    As an alternative to 'Create with reference' in Transaction VA01, two variants are provided for solving the 'Create with reference' problem in the BAPI.
          1. Create a '1:1 ' - that is, a document copy of a sales document (customer quotation, order) with 'BAPI_SALESDOCUMENT_COPY'. At this point, you cannot create the 1:1 copy of either a billing document or a delivery.
          2. Create a sales document that refers to an existing document with 'BAPISDORDER_GETDETAILEDLIST' and 'BAPI_SALESORDER_CREATEFROMDAT2'.
    <b>Other terms</b>
    BAPI_SALESDOCUMENT_COPY, BAPI_SALESORDER_CHANGE, BAPI_CUSTOMERINQUIRY_CHANGE, BAPI_CUSTOMERQUOTATION_CHANGE, BAPI_SALESORDER_CREATEFROMDAT1, BAPI_SALESORDER_CREATEFROMDAT2, BAPI_SALESORDER_CREATEFROMDATA, BAPISDORDER_GETDETAILEDLIST
    <b>Reason and Prerequisites</b>
    As of yet, no method exists for creating a sales document that refers to an existing document.
    Solution
    For solution No. 1
          1. Create the documents using the BAPI_SALESDOCUMENT_COPY function module. However, this only permits a 1:1 copy without factoring out individual items.
          2. After you have created the document copy, you can use a change BAPI to edit this copy.
    For solution No. 2
          1. Collect the data for the reference document (for example a customer quotation) with the 'BAPISDORDER_GETDETAILEDLIST' function module. In the example code, focus exclusively on the partners, items, schedule lines and conditions.
          2. Prepare the Data. Execute the 'copying control' manually. This way, you decide which values are to be transferred.
          3. Create the sales document using the 'BAPI_SALESORDER_CREATEFROMDAT2' function module by transferring the prepared data.
          4. Finally, you must remove a COMMIT WORK so that the sales document can be written into the database.
    An example of solution 2 is attached as a text file. You are allowed to select items and quantities for example, if you use input parameters. If there are no entries, then transfer 1:1 from the reference document. When you enter the 'condition type' parameter, you can determine whether conditions are copied or recalculated ('G' for transferring from the preceding document; 'B' or ' ' for re-determining, and 'C' for re-determining with transfer of the manual elements).</i>
    Sample : <a href="https://websmp108.sap-ag.de/~sapidb/012003146900000486112004E/BAPI_COPY_WITH_REF.txt">ZZ_MS_BAPI_COPY</a>
    Regards

  • Creation of production order with reference to sales order

    dear all guru's,
                       i m having a requirement of creating production order with ref to sales order but without changing my old strategy of make to stock.
    regards
    ujwal

    Hi,
    For the purpose of creation of production order with reference to sales order while maintaing MTS strategy you need to maintain Make to stock strategy 40 in strategy group in MRP-3 View of Material Master.
    This is the only Make-to-Stock Strategy which enables you create Production Order against both Sales order as well as Demand / PIR.
    So if your strategy group is already 40 then you need not change it.
    However if you are using any other Make-to - Stock strategy like 10, 11 etc. then it is not possible to create Production Order against Sales Order since they dont consider Sales Order in planning.So you need to change them and set strategy group as 40.
    Hope this helps.
    Revert if you have any doubt.
    Regards,
    Tejas
    Edited by: Tejas  Pujara on Sep 27, 2008 8:50 AM

  • Creation of IBase with reference to sales order for Configurable product.

    Hi Experts,
            Can any one tell me How to create Ibase with reference to sales order for Configurable Products. I know we can create this using IB63, but what i need to do in this Transaction code and what settings i need to do in SPRO.
    pls send ur replies to [email protected]
    Thank you..

    Hi
      You can create IBase using T-Code-IB53 and in there you can give Parent and child products.
    A)Define Installed Base Category and Installation Rules-CRM
    B)Define Object Families
    C)Define default settings for equipment replication
    D)Define Serial Number Profiles-ECC
    E)Txn BF31-ECC
    F)Set up attributes for individual objects
    G)Set up set types
    H)Set up category
    I)Set up views
    J)Allow reference product for IO
    I hope it helps
    If you require further help let me know.
    Cheers
    Raj

  • How to transfer posting with reference to Subcontracting Order?

    Hi, Experts,
    Regarding to the SAP SCM510 handbook, in the section of subcontracting,it mentions 3 ways to post the provision of components from own company to stock for vendor:
    1.) Transfer posting with reference to subcontracting order
    2.) Monitoring of Subcontracting stock(using t-code ME2O)
    3.) Transfer posting without reference to PO(using movement tyep 541 + O)
    For the items 2 and 3, I can understand the processes but for item 1, I don't know how I can perform Transfer posting with reference to subcontracting order?  Anyone can explain me on the processes?
    Thanks in advance.
    Fanghua

    Shetty,
    Thank you for your help. I am really a new SAP learner. I wasn't aware of the transaction code MB1A, MB1B and MB1C etc. But I tried the way you mentioned, it works.
    My initial conern on this is really from the Enjoy transaction - MIGO. I tried to select the tranaction - Transfer Posting but it doesn't have Purchase Order(or subcontracting Order) as reference.
    How can I transfer posting with reference to subcontracting order in the transaction - MIGO?
    Thanks.
    Fanghua

  • Create Sales Order With Reference to Billing Document Using BAPI_SALESORDER

    Hi,
    How can i create a sales order With Reference to Billing Document Using BAPI_SALESORDER_CREATEFROMDAT2?
    Thanks in advance,
    Alejandro.

    I have to create sales order with reference to existing billing document. I have tried to following bapis.
    1. BAPI_SALESORDER_CREATEed
    I have successfully created document with following details.
    -->ORDER_HEADER_IN:
    DOC_TYPE =                  ZRK
    SALES_ORG =              3000
    DISTR_CHAN   =            00
    DIVISION =                    00
    ORD_REASON =            100
    SD_DOC_CAT   =          L
    CURRENCY       =         EUR
    REF_DOC          =         100000028
    REF_DOC_CA    =         M
    -->ORDER_ITEMS_IN:
    ITM_NUMBER    =           000010
    MATERIAL          =          701791
    TARGET_QTY     =          0000000001000
    CURRENCY        =          EUR
    REF_DOC           =          100000028
    REF_DOC_CA     =          M
    -->ORDER_PARTNERS:
    PARTN_ROLE      =          SP
    PARTN_NUMB      =         W12001
    COUNTRY             =         NL
    by providing this input i am able to create the document but it is not picking up the net value. so i have passed some extra paramters in  ORDER_ITEMS_IN
    COND_TYPE          =        PNET
    COND_VALUE        =        14,56
    COND_D_UNT        =         PC.
    folowing error is occured: Condition PNET is missing in pricing procedure A V Z0000.
    is it something related to configuration problem?
    2.BAPI_SALESORDER_CREATEFROMDAT1 or BAPI_SALESORDER_CREATEFROMDAT2
    I have used same test data that is used for BAPI_SALESORDER_CREATEFROMDATA (where in i coudl succefully create doc). but here i encounterd following error.
    Unpermitted combination of business object BUS2032 and sales doc. category L.

  • "Posting with reference to pur. order only possible for integrated whse"

    When I try posting GR with mvmt type 101 wrt PO  I am receiving the error “Posting with reference to pur. order only possible for integrated whse”
    The scenario is  storage lcation is maintained  with the external warehouse management .
    Is there anything i need to maintain warehouse as decentralised one or should i need to maintain any moment types or is there anything else i should maintain in the customisation.
    Kindly guide me regarding this as I am new to WM ,Thanks in advance.

    Hi ,
    In my case i have not maintained as decentralised one.
    also the thing is  there is no warehouse house  data managed over here .the requirement is when connected to extended warehouse  the system has to create inspection lot after the GR has done ,
    whereas in normal scenario everything is normal,
    can you please suggest what should be done in this case.
    Also if possible can you please tell me what from the scratch so that it will be helpful to come through .

  • Posting with reference to pur. order only possible for integrated whse Message no. L9510

    Hi,
    I´m trying to setup a reversal for movement type 102 trough our Decentralized warehouse but without any luck.
    I have check some of the entries in customizing from the path down below, and also check some of links here on the community but still not getting anywhere
    Logistics Execution→Decentralized WMS Integration→Central Processing→Application→Define Interface to Inventory Management and Delivery-Relevant Data.
    Assign WM movement type references to IM movement types
    Delivery-Relevant Parameters for Reference Movement Type
    I could see from my our own reversal without WMS this setup is by delivery type DOG to pick the part wiht movement type:102 reference to WM.
    However I still getting the error for WMS every time I try from MIGO with reference to Phurchase order, Indbound delivery, or material document.
    Could anyone share me with some knowledge on that area.
    Looking forward to hear from you.
    Added file "picture"
    Regards
    Claus

    I sent you a solution in you topic Albert.
    Claus, again, no luck, sorry, you should always get informed about the functionalities of decentralized WM before implementing it, if you want to do a return to your vendor here's the process.
    Decentralized isn't the same thing as standard WM, there are a LOT of limitations.
    Here's the process by which you can achieve the required:
    (return delivery to vendor)
    *ERP* Set return delivery type => e.g. RL for doc.type/plant combination here:
    IMG => MM => Purchasing => Purchase Order => Returns Order
    *ERP* XK02 - In account control data, maintain customer in vendor master record for your vendor you are returning the goods to
    *ERP* XK02 - check "Return Vendor" checkbox (purchase view - control data) field is: LFM1-KZRET
    *ERP* Finally you can create the delivery using VL10B based on your PO number
    *WMS* In decentralized WMS, you will get a replica of the OB delivery, process it as usual and you are done.
    Hope it helps,
    Mihailo.

  • STO returns with EWM Error "Posting with reference to pur. order only possi

    Hi Experts,
    We are trying to STO returns GR (161 Movement) with transaction MIGO for a EWM managed plant.
    Plant A is a EWM managed plant and Plant B is IM managed plant.
    We created a stock transfer order with "B" as supplying plant for plant "A" but with "Returns" tick in the item. (Document type UB)
    In the first step, when we try to post 161 movement with MIGO transaction, we are getting the below error
    "Posting with reference to pur. order only possible for integrated whse"
    Message no. L9510
    But the same scenario works between two IM managed plants.
    Can you please help me in resolving the issue
    Gobinathan  G

    Hi All,
    I am interested in the tail end of this process. I have activated DWM. We have received an Idoc confirming the Inbound Delivery for a Purchase Order Receipt.
    The Goods Movement Status of the Inbound delivery has changed to C but there is only a Confirmation of Service in the document flow and the Purchase Order is not receipted.
    I am unable to MIGO the PO manually.
    I guess the Inbound delivery should have posted a receipt on the PO but not sure what is missing?
    Any ideas?
    Thanks
    Lee

  • BAPI-To create production orders with reference to sales order & item

    Hi,
    Can anyone tell me which is the best method to create open production orders?
    Is there any BAPI available for creating production orders with reference to sales order & item.
    I tried this BAPI "BAPI_PRODORD_CREATE".
    I am getting pop up to enter serial number while executing the custom program.
    Which table contains the serial number(effectivity parameters)?.

    I have custom screen fields on notification service!
    i think a bdc is better.

  • Transfer Stock to subcontractor with reference of Sales order

    Hi,
    Scenario:
    MTO strategy
    We have one operation is subcontracting. When we take MRP run all PurReq. & PLOrd are reference to sales order. But  when we want to transfer material to subcontractor through TCode MB1B Mvt type 541 that time system issue the following message.
    Deficit of SL Unrestricted-use 3,150 KG : 119 1002 RM
    Then we have to transfer stock reserved against sale order to unrestricted.
    Requirement:
    Can we transfer stock to subcontractor with reference to sales order.
    Pl tell me how I resolved this issue.
    Thanks & Regards
    Dhamane

    Hello....
    You can not transfer material from Sales order Stock by movement type 541 as both stocks are Special stocks &  has not recommend to transfer between two special stocks.
    For this Solution ,  Transfer posting to transfer the provided components to a new storage location (for example, 9999) by using movement type 311. This enables you to obtain an overview of those stocks that are physically located at the subcontractor. This information is particularly important when you carry out a physical inventory of the sales order stocks.
    Rajiv

  • Batch classification during GR against production order using txn MIGO

    Hello All
           I am usng batch classification during for movement type 101, when am doing the GR against production order using txn MB31 the system automatically navigates to classification screen wherein i need to enter the characterstic value & it all goes well, I can also view the stock with batch no and the classifcation value when the GR is being done with txn MB1.
          But when am dong the same thing i.e. GR against production order using txn MIGO system doesnt navigates to classification screen for characterstic value entry and am able to do the posting. I want that system must navigate to classification screen automatically if i do the GR using MIGO also as it doen in the case of txn MB31.
           Please suggest what settings are to be done for the same, I am unable to figure out why the system is behaving in this manner. Kindly provide your inputs to sort out this issue. Waiting for your valuable inputs.
    Regards,
    J K Tharwani

    Dear,
    did u refer SAP Note 519303 ?
    After keeping Batch Classification as 4 in OMCV, in MIGO, it will start showing the Batch Classification button under "Batch" Tab, it will not show the Batch Classification Pop-up automatically as it shows in case of MB31.
    If you wan users to enter the characteristics values mandatorily in the Batch Classification then in CT04 for these characteristics activate Entry required indicator in "Basic Data" Tab
    SAP Note 519303
    Please refer this also,
    [MIGO|Re: How can I get the MRP history?]
    Regards,
    R.Brahmankar

  • Goods reciept through MB31 against production order using serial number

    Dear ALL,
    We are using MB31 for goods receipt against production order using serial number.
    First we do confrmation by tcode co11 and then recieve the material by mb31 against the order.
    I want that sysstem should not allow good reciept by mb31 more than the confirmation done in co11.
    Please suggest.
    regards,
    Pradeep

    Hi,
    There are two ways to control this problem; 1) User Exit    2) BADI
    1) User-Exit
    Enhancement: MBCF0002
    Function module: EXIT_SAPMM07M_001
    Code for your copy pasting in the source code of ZXMBCU02.
    Remember to activate the program. In SMOD enter the enhancement, press F8 and then click on activate button.
    *& Include ZXMBCU02
    data it_afvv like afvv occurs 0 with header line.
    tables: afvv, afko, afpo.
    data tot_gr like mseg-menge.
    If i_mseg-bwart = '101' and i_mseg-aufnr is not initial.
    select single * from afko where aufnr = i_mseg-aufnr.
    select * from afvv into table it_afvv where aufpl = afko-aufnr.
    sort it_afvv by aplzl descending.
    read table it_afvv index 1.
    select single lmnga from afvv into afvv-lmnga where aufpl = afko-aufnr and aplzl = it_afvv-aplzl.
    select single * from afpo where aufnr = i_mseg-aufnr.
    tot_gr = afpo-wemng + i_mseg-menge.
    if tot_gr > afvv-lmnga.
           MESSAGE 'GR Qty greater than Confirmation Qty of the last operation' TYPE 'E'.
    Endif.
    endif.
    2) BADI
    Implement the BADI for WORKORDER_GOODSMVT in this there is method
    MANUAL_GOODS_RECEIPT under that
    write you code here
    if_ex_workorder_goodsmvt~manual_goods_receipt.
    endmethod.
    Technical Logic
    Check the confirmation qty in AFVV table with production order get the last operation confirmation qty and subtract the Delivered qty. If this is Greater than or equal to the GR Qty entered in the screen allow the posting or through Error.
    Tables: S022, AFPO, AFKO, AFRU, AFVV
    Regards,
    Sankaran

Maybe you are looking for

  • How do i install my scanner without a disc

    I purchased a new computer without a cd element. How do I install my scanner from my HP printer?

  • HTTP error: 401 Unauthorized while uploading photo in hr master data

    Hi All, Transaction code OAAD while uploading a photo  iam faceing a problem i am getting error massage *HTTP error: 401 Unauthorized" i have done modifications in the transaction codes OANR ,OAC2,TABLE: V_T5850,OAC0,OAOH,OAAD, IN OAAD Transaction co

  • Aperture 3 - When I merge projects......

    My images are referenced......... When I merge projects inside Aperture 3, how do I get them to be merged on my external drive? Do I go in and do it manually, or is there a command in A3 that I should use to execute this action? I looked inside the m

  • Allow or Disallow use of the Offline Files feature

    Hi all! I am having an issue with Offline files on some new Windows 8.1 clients we have deployed. We wish to have Offline Files disabled for these machines, but using the GPO Setting "Computer config>Policies>Administrative Templates>Network>Offline

  • Dr.Dobbs DVD coupon code

    The Member Discounts page on OTN lists a coupon code for $10 off the Dr.Dobb's DVD. (http://www.oracle.com/technetwork/community/join/member-discounts/index.html) When I tried to use coupon code-OTNDDJ6 at store.drdobbs.com, I got this error message: