RFC Sales order create production order create

Hi all,
I use BAPI_SALESORDER_CREATEFROMDAT2 to create sales order with
- schedule lines
- configurable items.
Before, I call BAPI_SALESORDER_SIMULATE in order to anticipate material availability and fill scheduling accordingly.
The problem is that the system is configured so that a sales order creation causes a production order.
With manuel creation in VA01 (corresponding to my BAPI call), many popups appear warning us about capacity production problems and I'm prompted to validate calculated possible production dates.
In BAPI call mode, no messages appear and if production capacity is not sufficient for my production request, production order is created but with the MCAP status (Missing capacity)
Is a solution exist to anticipate these problems of production capacity before sales order creation to integrate it in BAPI schedule parameters ?
Thanks a lot.

Hi,
It sounds like you may want to first call BAPI_SALESORDER_SIMULATE.  The documentation for this BAPI (in 4.6C) states:
<i>"This method has the same interface definition as the BAPI_SALESORDER_CREATEFROMDAT1 function but differs from it in that here the sales order is not updated.  Here you can determine availability and pricing. This data is displayed in the ORDER_ITEMS_OUT table.
For 46A, the following enhancements have been made:
New output tables:
ORDER_SCHEDULE_IN Schedule line data input
ORDER_CCARD_EX Credit card data output
ORDER_SCHEDULE_EX Schedule line data output
ORDER_CONDITION_EX Conditions output
MESSAGETABLE Warning table (XVBFS)
Sales area determination
Order entry with ship-to party
</i>
This may give you an idea of the errors you might need to anticipate prior to calling BAPI_SALESORDER_CREATEFROMDAT2.
Best Regards,
James Gaddis

Similar Messages

  • Spliting the sales order qty when iam creating production order

    HI
    I have sales order haveing qty 100 ,then iam creating the production order with respect to salesorder number and item by co08.
    i want to split the order qty while iam creating production order .and after complitiung the sales order qty sysytem should not allow to create production order .
    how can i do this

    Hi,
    1. I dont think in standard it is possible.
    2. You need to find a control mechanism using the user exit only.
    reg
    dsk

  • Create production order from sales orders

    Hello,
    I am looking for some detailed documentation in order to make customizing in sales module. The aim is to create production orders from sales orders..
    Thanks  for your help

    See the following link from SAP help online:
    > http://help.sap.com/saphelp_47x200/helpdata/en/70/a7853478616434e10000009b38f83b/frameset.htm
    It contains lots of useful information on Make-To-Order Production.
    I hope this helps.
    Gerard

  • 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.

  • Error message while creating production order with KMAT material strategy25

    Hi PP Gurus I am running variant configuration cycle...Strategy 25, Custermer Req KEK (KMAT Matrl)
    Sales order & MRP Picked the components correctly as per the dependencies
    written. So Planned order generated against sale order.
    When I tried to convert planned order to Production order...I am getting the
    below error message..
    Error Message:
    You cannot make an assignment to make-to-order stock Message no. CO684
    Diagnosis The component cannot be allocated to an individual stock because
    make-to-order production and engineer-to-order production cannot be executed
    with this order.
    A possible cause is that you are trying to create an order with reference to a
    sales-order/project, where an account assignment to a sales order/project is not
    allowed in the settlement profile that is assigned to the chosen order type.
    This is inconsistant.
    System response The following responses are possible:
    Order processing is cancelled.
    The system resets the special stock indicator back to the original value.
    Procedure Choose another order type.
    I used order type with SD1 as settelement profile.
    OVZG: default 046, settlement profile = SD1
    OPJH: Settlement profile = SD1
    Plz through some light on this if u have worked on Variant Configuration/MTO
    settlements.
    Question:
    1) Is creation of production order with KMAT material supported by SAP?
    2) If yes, why the above error occurs?
    Waiting for Ur reply
    With Best Regards

    Dear R.Brahmankar,
    I have check on the note, but it is not relevant to ecc6. The current system default setting is :
    Standrad setting for reqt class 046
    Special Stock E
    Acct Assgt Cat. M
    Valuation M
    Settlmt Profile SD1
    However if I change the Acct Assgt Cat. from M to E. It resolve the problem. I would like to know is this the right solution?
    Config in Acct Assgt M
    Consumption Posting = E
    Config in Acct Assgt E
    Consumption Posting = '  '
    In F1 key of Consumption Posting field it shown following:
    To flag the sales order item as cost- and revenue-carrying, enter an "E" (settlement via sales order).
    If you do not wish to flag the sales order item as cost- and revenue-carrying, do not enter anything.
    Dependencies
    If you are working with nonvaluated sales order stock, always flag the sales order item as cost- and revenue-carrying.
    If you are working with valuated sales order stock:
      In the case of complex make-to-order production, flag the sales order item as cost- and revenue-carrying
      In the case of sales-order-related mass production, do not flag the sales order item as cost- and revenue-carrying
    Should we change to E?
    Regards,
    Ong

  • Usage of rounding profile in manual created production order

    Hi,
    We are making usage of various static rounding profiles.
    For each of the materials produced, the rounding qty can be different, depending on the workcenters used to produce the materials (but for one material, there is only 1 rounding profile possible)
    This works fine as long as we create planned orders via MRP runs (rounds up according the values set)
    However, this rounding value is not taken into account (proposal, warning, error,..) when a user creates a planned order manually via MD11 or a production order via CO01.
    Furthermore there is no warning message or whatever at the moment a user is converting a planned order (with a correct calculated rounded value) into a production order and manuaaly adapts the order qty.
    As were are talking about a few 1000 different materials, the production planner cannot know all by heart and the rounding proposal would be excellent.
    Anybody an idea how to implement this ?
    Thanks and regards?

    Hello again,
    thanks for you prompt answer.
    This would certainly solve our problem in case we would have always one and the same quantity to produce for a given material; but this is not always te case.
    Perhaps it was not clearly explained in my first mail, but we would like to work with one (1) ROUNDING PROFILE per material.
    Example, material A can be produced in multiples of 14; as such it should be possible for the production planner to create production orders for 14, 28, 42 , 56,..... pieces. When entering a order for eg. 25 pieces (= example the qty needed for a certain sales order), the system shpuld round to 28.
    Other materials (having another rounding profile) are produced in multiples 3, im mulitples of 5,...
    For this particular plant we have about 50 different rounding profiles in place.
    So it somewhat logic that a production planner does not know all these by heart.
    If you have a solution for this as well, please let me know.
    Anyway already my thanks for feedback.
    Regards.
    Danny

  • Creating Production Order Through DI API Throws Error

    Hi Experts,
    I am trying to create Production orders automatically (using DI API)for Items from a Sales Order Thorough an Intermediate transaction.
    But it throws an error on the line in which I am setting value to the Business partner code of the Production order object.
    The error message shown first is  'Exception from HRESULT: 0xFFFFFFFF'
    and then                         'Object reference is not set to an instance of an object'
    The Code is Given below
    objPrdOrdr = B1Connections.diCompany.GetBusinessObject(BoObjectTypes.oProductionOrders)
                objProdTree = B1Connections.diCompany.GetBusinessObject(BoObjectTypes.oProductTrees)
                With objForm.DataSources.DBDataSources.Item("HeadTab")
                    intRowCount = .Size
                    For intLoopCount = 0 To intRowCount - 1
                        If objForm.DataSources.DBDataSources.Item("LineTab").GetValue("U_POYN", intLoopCount) = "Y" Then
                       *objPrdOrdr.CustomerCode = objForm.DataSources.DBDataSources.Item("HeadTab").GetValue("U_BPCod", 0).ToString*
                            objPrdOrdr.DueDate = objForm.DataSources.DBDataSources.Item("LineTab").GetValue("U_DueDate", 0)
                            objPrdOrdr.ItemNo = objForm.DataSources.DBDataSources.Item("LineTab").GetValue("U_Product", intLoopCount)
                            objPrdOrdr.PlannedQuantity = objForm.DataSources.DBDataSources.Item("LineTab").GetValue("U_QTY", intLoopCount)
                            objPrdOrdr.PostingDate = .GetValue("U_DocDat", 0)
                            objPrdOrdr.ProductionOrderOrigin = BoProductionOrderOriginEnum.bopooSalesOrder
                            objPrdOrdr.ProductionOrderOriginEntry = .GetValue("U_SlOrd", 0)
                            objPrdOrdr.ProductionOrderStatus = BoProductionOrderStatusEnum.boposPlanned
                            objPrdOrdr.ProductionOrderType = BoProductionOrderTypeEnum.bopotSpecial
                            intPrdEnt = objPrdOrdr.Add()
                            If intPrdEnt > 0 Then
                                objPrdOrdr.GetByKey(intPrdEnt)
                                objForm.DataSources.DBDataSources.Item("LineTab").SetValue("U_PrdEnt", intLoopCount, intPrdEnt)
                                objForm.DataSources.DBDataSources.Item("LineTab").SetValue("U_PrdOrd", intLoopCount, objPrdOrdr.DocumentNumber)
                            Else
                                B1Connections.theAppl.SetStatusBarMessage("Production Order Creation Failed", SAPbouiCOM.BoMessageTime.bmt_Short, True)
                                oForm.ActiveItem = "txtBPCod"
                                Return False
                            End If
                            intLoopCount += 1
                        End If
                    Next
                End With
    Please Help... We are using SAP b1 2007B SP00 PL13
    Thanks and Regards
    Ajith G
    Edited by: Ajith G on Mar 12, 2010 10:57 AM - Sorry, Tried to format text properly but failed

    Rectified

  • CO08 can not create Production Order!!!

    Dear Experts
    We are running an MTO(make to order) scenario!
    First we create an contract in the system!Then we create sales order
    with reference to this contract!
    And when the sales order is sent to the planning department! They use
    TCODE:CO08 create production order with reference to the sales order!
    But we get an error message as follows:
    Account assignment cannot be carried out because of different origin no.
    Message no. V1134
    Diagnosis
    The sales document to which you want to refer is based on sales document 41033737 and item 000010.
    Therefore, the settlement and possibly inventory management are carried out using the number of the
    preceding document.
    ut when I entered the the contract in Co08 and then I am able to create
    the production order.
    And when I back to see the detail in the sales order ,I find there is no
    value in the account assignment to the profitability segment!!
    Why the sales order have no profitability segment??*
    Why we can not create production order with reference to sales order??
    It seems there are one problem!
    Thanks for any reply!!

    Fei Liu,
    The current situation that you have described is pretty standard functionality for most MTO requirements classes.  Account assignment is normally to the reference doc, not the 'Release' Sales doc.  This includes quotations as well as contracts.
    If your business requirement is to instead use the Sales Doc number, and not the Contract number, you can change this by setting OVZG "Account Assignment Consumption" to 'blank'.
    http://service.sap.com/sap/support/notes/459734
    http://service.sap.com/sap/support/notes/729381
    Rgds,
    DB49

  • Update error while creating production order (TCODE CO01)

    Hello,
    We have created new plant into development server for testing. We have created production Order few days back at that time we have not faced any problem. But from last two days , when we create new production Order , system gives following error:
    ORA-00947: not enough values
    DBIF_RSQL_SQL_ERROR" "CX_SY_OPEN_SQL_DB
    SAPLCOVB" or "LCOVBF10"
    HEADER_POST"
    and
    Update was terminated
    System ID....   DEV
    Client.......   500
    User.....   HPLSU
    Transaction..   CO01
    Update key...   4B6E4F48C08D027FE1008000C0A802F3
    Generated....   08.02.2010, 10:35:48
    Completed....   08.02.2010, 10:35:49
    Error Info...   00 671: ABAP/4 processor: DBIF_RSQL_SQL_ERROR
    Our work is held up.
    Please also note that If we increase the QTY in the existing Order ( already created few days back) , System accept the same and Order is saved.
    We are looking for the solution for the above.
    Early reply will be highly appreciated.
    thanks
    harish

    Hi Rishi,
    You better check with your BASIS team.
    Check this link also
    Supervisor Error ADM0015
    Regards,
    Satyajit Kumar
    Edited by: Satyajit Kumar on Feb 8, 2010 7:47 AM

  • Error while creating Production order without BOM

    Hi Guys,
    While creating production order without a BOM i am getting the following error in the error log.
    Error: BOM for material xxxxxx does not contain any valid items
    Message no. CO636
    Kindly help.
    Regards,
    Sid

    Dear customer,
    could you check in the master data screen of the order if one BOM has been selected?
    please coudl you check your customizing the following transactions:
    OPJM
    OPJI
    what do you have in 'BOM slection field' MRP4 view of the header material?
    Please check if with this info you can find the missing data to explode the BOM
    regards
    Maria

  • Error when creating Production Order

    Dear All,
    When i was trying to create Production Order using CO01, there was an error message that says "error when calculating cost, see log, log is deleted when saving"
    what is the problem from that error message? how can i solve this problem?
    best regard,
    MARUFAT

    Cost consist of material cost which are the direct cost, it is calculated from the component and the material itself for which the order is created. If the material is semifinished or finished check whether the accounting view for these material contains value. These material could be costed as per the method mentioned by our friend or you may enter value through MR21 (if the material is not costed atall since it is created). It is recommended to update cost through costing run and by CO member. Now if the material is Raw material you need to maintain PIR.
    The second part could be the activity cost. These follows from the routing/receipe. Mostly the costing error is due to the inappropriate defination of either cost center or activity types. You need to confirm whether activity price are define for the period.
    Appriciating you for taking a concern on the costing error and not overriding.

  • Error in creating Production order

    When I create production order thorugh planned order Iam getting error message "No objects selected inside production order."

    Hello,
    The planned order that you may have use has been deleted already.  It is most probably deleted during an MPS/MRP run.  The planned order number is deleted and recreated with a different number.  Please try to check in MD04 and check the planned orders there and you can convert it from there.
    Thanks,
    Ernesto

  • Can i create production order using process material ?

    Dear All.
    Please help me.
    I want to create production order using process material (material type is PROC).
    For may knowledge, process order is standard for the process material, but my customer want to use the PP module for the process material.
    But I cant convert the planned order of precess material to production order in MD05.
    The system message is "System does not support planned orders for process materials."
    The followings are my test steps.
      1. Master Creation
          - Material Master, BOM, ROUTING
    In standard, process material (Material Type : PROC) need creation of master recipe. But due to my clients need (Using production order
               for the process material), I create the work center and ROUTING
      2. DM Creation
          - In MD61, I create the planned independent requirement (Type : LSF)
      3. Planned order creation for the process material using MRP
          - In MD01, I run the total MRP, the the planned order is created.
            It's order type is "LA"
      4. Converting the planned order to Production Order
          - In this step, the system give the error "System does not support planned orders for process materials."
             and can not do anything.
    I want to know that the above case is possible, and how.
    Please Help meu2026..

    Hi
    First of if yur want to create production order or process order why do you go for material type :PROC.
    you can create the same material as FERT & go ahead.
    I do not understand the logic to select the material type as PROC.
    Pl. go through SAP library where PROC is used.
    Regards
    YMREDDY

  • Allocation error when I create production order

    Hi guys:
       I met allocation error when I created production order with CO01.could you help me out?urgent!

    hi
    What is the excatly the error so that we can tell u the reason
    regards
    ramakant

  • FM to Create Production Orders

    Hi All,
    My requirement is to create Production Orders with positions ( Components, Operations, and Documents ).
    BAPI_PRODORD_CREATE creates Procduction Orders with header data and explodes the Material if it has a valid BOM.
    In my requirement Material will not have any valid BOM. So the BAPI is not suitable for me.
    I have also tried the FM CO_ZF_PRODUCTIONORDER_CREATE but no luck.
    Does any one know other FMs to create Production Orders with positions?
    Thanks
    Bhasker.

    Bhaskar,
    Try Using one of the following BAPIs:
    BAPI_PRODORD_CREATE_CAP_REQ BAPI: Create Capacity Requirements for Production Orders
    BAPI_PRODORD_CREATE_FROM_PLORD BAPI: Convert Planned Order into Production Order
    BAPI_PRODORD_CREATE_FROM_REF BAPI: Create Production Order with Reference Order
    Do't forget to reward if useful

  • Procurement Key 'F' - System will allow to create production order

    Dear All,
    Pls help solve below issue
    Sub-assembly (HALB) material type with Procurement Key is 'F' - but System will allow to create production order, our management don't want to allow this. how to activate the error messges
    I checked the system messages CO 046, 047, 048 - it will not help for these messages
    Any way to control this (except user exit, badi)
    Regards,
    Sankaran

    Hi Sankaran,
       What I infer from your statement is that user is able to convert planned order into Production Order (MD04 or CO040). You want to issue a warning message during this converion.
      You can configure warning messages through OPJB.
       Whether this material with procurement type F was setup initially with a different setup? Please check whether any routing details exist for this material and also check whether there is any special procurement indicator. One more check is with your MRP Group settings.
    Hope this helps.
    With Best Regards,
    Srinivas

Maybe you are looking for

  • ASA 5505 Site to Site VPN Route

    Hello Everyone, I ask for help to run VPN between two sites already configured and operational ... but the problem is that the traffic between the two networks do not pass ... virtually every office should go on the internet with their own line, but

  • BizTalk Stored Proce-passing XML as one of the Input parameter and String as another parameter

    I have a requirement in BizTalk that - I will receive XML from Source and i need to submit this XML data and two other string parameters in  SQL storeprocedure  as a parameters and submit data Ex: My_SP(myID Integer INPUT,myXML xml Input,mystring OUT

  • Error running applications

    Hi, I receive this error every time I run an application: ORA-06502: PL/SQL: numeric or value error: Bulk bind: Error in define (WWV-11230) (Oracle Portal 3.0.9 on NT Server SP1, with italian language support) some idea? Thanks in advance A. null

  • LiveType will not open or load

    I just installed LiveType 1.2. I was so excited at the prospect of using it. big let down..... when i try to open it all i get is the screen that says live type and my little beach ball spins and spins and spins and the program never opens. what coul

  • How Can I Make Smooth Moves of Still Images?

    I'm doing a lot of moving stills in a current project, but I can't figure out how to add acceleration curves to the moves. I know the pen tool has a "smooth point" to add curves to keyframes, but I don't know where to apply them. I can apply them in