Error when creating planned orders with BAPI_POSRVAPS_SAVEMULTI3

Hello,
I am working on a program which duplicates planned orders from one planning version to another. To do this, I am using the BAPI BAPI_POSRVAPS_SAVEMULTI3.
When I run the program, I get this error messae from the BAPI: A different planning version is being used.
The flow of my program is the following:
- Reading target planning version
- Deleting orders with the same selection criteria than the orders to be duplicated
- Reading source planning version
- Creating read orders to target planning version (where it goes wrong)
I worked before on another program which does the same but with manufacturing orders, and I did not encounter such a problem.
Can someone help ?
Thanks in advance.

Hello Babu,
I am facing the same error in BAPI_PIRSRVAPS_DELMULTI. Could you revert with the solution if you have got one.
Thanks,
Ankit

Similar Messages

  • Problem when creating planned order with MRP run

    Hello,
    I create a material with a fix reorder point, MRP type VB. When I run MRP with MD03 on this material I have several problems :
    - planned order is created with an opening date in the past, so I have error 'Opening date in the past' in MD04. How can I generate a planned order with opening date not in the past
    - when changing manually opening date, after running again MD03, I have error 'No BOM selected'. Material is configurable, has a text BOM, a routing and a configuration profile. What is the problem? When modifying planned order, I have message :
    Material requires configuration
    Message no. 61259
    Diagnosis
    Orders and requirements for a configurable material must have characteristic values.
    Usually, you should create a variation for configurable materials managed in inventory management which has the default variant configuration.
    System Response
    MRP: Requirements without characteristic values for a material cannot be planned in MRP.
    Procedure
    Check requirements or orders.
    Create a configuration evaluation for the material in the material master record if necessary.
    Thanks in advance.

    Hi
    I am facing the problem. Could you please tell me if you have resolved the above problem? If yes, Could you please provide me as how you resolved? Thanks in advance.
    Thanks
    Nagesh.

  • Issue with create deployment order with BAPI_POSRVAPS_SAVEMULTI3

    Hi Experts,
      We are trying to create deployment orders with BAPI_POSRVAPS_SAVEMULTI3. The following are the input:
    LOGICAL_SYSTEM                  RR1CLNT010
    ORDER_TYPE                      2
    EXT_NUMBER_ASSIGNMENT
    COMMIT_CONTROL                  E
    PLNG_VERSION                    000
    NO_CREATE
    PLANNING_MODE_USAGE             0
    EVENT_CONTROL                   1
    And for receipts and requirement, we put ATP category as EG and EF.
    But it return error 'Events are supported only for Purchase Requisitions'. For u2018EGu2019 and 'EF', I can see it is category typ '2'.
    Does this BAPI able to create deployment STR or it can only create SNP STR?
    Thanks.
    best regards,
    Wenyan

    Hi Wenyan,
    In the BAPI, the following code should be responsible for the error message:
    * -> check: event_control is only available for purchase requisition
      if event_control = gc_apo_bapi_create_event and order_type <> gc_requisition.
    *   -> error message
        _apo_bapi_message_add_itab0 gc_error gc_apo_bapi_msgclass '342'
        return.
        lv_error = gc_true.
      endif.
    The relevant constants are:
    * -> constants for event control
    CONSTANTS:
      gc_apo_bapi_no_event TYPE bapi10503eventcontrol VALUE space,   "collect but no direct sending
      gc_apo_bapi_create_event TYPE bapi10503eventcontrol VALUE '1',     "collect + send event
      gc_apo_bapi_no_event_collect TYPE bapi10503eventcontrol VALUE '2'. " no collect and no sending
    *--> External Order types
    CONSTANTS:
    *  Bestand
    gc_stock              TYPE /sapapo/r3obj VALUE '0',
    *  Bestellanforderung
    gc_requisition        TYPE /sapapo/r3obj VALUE '1',
    *  Bestellung
    gc_purchase_order     TYPE /sapapo/r3obj VALUE '2',
    As you can see, if you want to create an order other than SNP purchase requistion, you cannot set the control_event as '1'.
    Best Regards,
    Ada

  • Creating planned orders with BAPI_MOSRVAPS_SAVEMULTI3

    Dear all,
    I have to create planned orders in our APO-system ... This works fine with function BAPI_MOSRVAPS_SAVEMULTI3, until I try to create a planned order with a configurable material ... I added values to the following tables: cfg_headers, cfg_instances and cfg_values but still I am not able to create a planned order ... Maybe I don't fill the correct fields in the mentioned tables ? Can anyone tell me which fields they fill to create planned orders with configurable materials ? I used the fields that are required according to the SAP-help, but it seems that my values are possibly wrong ... Maybe an example can help me too ?
    Thanks in advance !!!
    Greetz,
    Kurt.

    Hello Babu,
    I am facing the same error in BAPI_PIRSRVAPS_DELMULTI. Could you revert with the solution if you have got one.
    Thanks,
    Ankit

  • Error while creating planned order in product view

    I am getting following error when I try to create planned order for a product in a Location  manually in product view using /SAPAPO/RRP5.
    Error occurred while creating order
    Message no. /SAPAPO/RRP251
    I checked the product and resource. Everything looks good.
    Block is available in the resource WMP1_2041_001 for characteristics specified in planned order.
    Product master and PDS look good.
    In the planning log, I see the following error message.
    Plan explosion failed for product LBRA1050-661 in location 2041
    Message no. /SAPAPO/RRP718
    I have not found SAP notes for above error.
    Can you pl let me know what this is due to?
    Thanks,
    Srini

    Srini,
    The message was created as a result of several notes, such as 1582997.  There are others.
    The implication is that you have an invalid source somewhere in your BOM.  Maybe a bad component part, maybe a bad transportation lane, maybe an invalid BOM, or maybe a bad PPM/PDS.
    If you can't find the problem using logical troubleshooting steps, have one of your programmers debug.  Have him put breakpoints in FM  /SAPAPO/RRP_PLORD_CREATE .  If you are particularly lucky, you will find a developer that understands German, because all the internal comments in this FM are in German.
    Best regards,
    DB49

  • Error while creating Planned order in SAP PP

    Hi ,
    I am creating planned order for finished material and system has given below error - Please specify the order deadlines in ascending order.
    SAP Message Error- Message no. 61009  Please specify the order deadlines in ascending order
    Very first planned order get saved and we declare the production and business completed
    Now creating second planned order , while saving system giving above error.
    I am Taking Planned Order Profile LA -Stock order
    Any solution  ...?
    Thanks in advance !!!
    Deepak.

    Hello Deepak,
    Please adjust the order dates in the scheduling of the planned order. In normal production scenario operation completed end of the night shift and order finish date is possibly moved one day in the future for this reason we need to set the operation timing in 24:00:00 format
    In your issue change date like this
    End date : 30.06.2014
    Start : 31.05.2014
    Opening date : 31.05.2104
    Check with this date, it’s work for you 
    Regards
    Umesh Mali

  • Error while creating purchase order with account assignment category "A"

    Dear All,
                      At the time of creating purchase order with account assignment category A - Asset its throwing error as " GL Account 123400 can not be used"
    how to resolve this  issue"
    Edited by: Matt on Sep 16, 2010 10:09 AM - removed bold tags

    HI,
    Assign all assets GL to Asset Class
    spro --> financial accounting new -->assets accounting --> assets accounting (lean Implementation) --> organization structures --> Assign GL
    Hope Help U !
    Regards,
    Pardeep Malik

  • Error while creating sales order with ref using SD_SALESDOCUMENT_CREATE

    Hi
    I am creating sales order with reference using function module SD_SALESDOCUMENT_CREATE , while creating i am getting error
    Document doesn't have document category even thougth i am passing document category in header as well as item lavel.
    In VBUK table there is no value for VGTYP.
    Can you please help me how to resolve it.
    Thanks & regards
    kiran

    Problem resolved by passing   REFDOC_CAT in the FM along with  SD_DOC_CAT.
    Thanks

  • Issue when creating sales order with Sold-to/Ship-to Party's state

    Hi All,
    we have issue while creating Sales Order with picking up of State tax
    for Ship-to-party & Sold-to-party.
    <b>When we create a sales order, for the sold to party 140052732 and
    ship to party 140052733 it is picking state tax. Which should not
    suppose to pick? Because the partner is marked as tax exemption</b>.
    Can any body tell me how can we solve this issue!
    Why this is happening!
    How to make not to pick tax when it is marked for tax exemtion.
    As i am not Functional guy i am not aware what is happening here!
    Can anybody solve this issue!
    Thanks in advance.
    Thanks,
    Deep.

    Hi Deep
    What do you mean by "It is picking up state tax"? Does it mean that in the pricing procedure it is picking up a condition type which is meant for state tax?
    If so go and check the condition record meant for it. Follow the following steps
    1) Go to Sales order
    2) Select the line item for which the state tax is being picked.
    3) In the condition tab select analysis.
    4) In Analysis you shall find the condition type meant for state tax.
    5) See which condition record has been found.
    6) Go to VK12, enter the state tax condition type and check the condition record for that state tax.
    7) If wrong correct it.
    8) If anything else come back to the post and inform the details
    Thanks
    Regards
    Sunil

  • Issue when creating sales order with Sold-to/Ship-to Party's state tax

    Hi All,
    we have issue while creating Sales Order with picking up of State tax
    for Ship-to-party & Sold-to-party.
    <b>When we create a sales order, for the sold to party 140052732 and
    ship to party 140052733 it is picking state tax. Which should not
    suppose to pick? Because the partner is marked as tax exemption</b>.
    Can any body tell me how can we solve this issue!
    Why this is happening!
    How to make not to pick tax when it is marked for tax exemtion.
    As i am not Functional guy i am not aware what is happening here!
    Can anybody solve this issue!
    Thanks in advance.
    Thanks,
    Deep.

    Hi Deep
    What do you mean by "It is picking up state tax"? Does it mean that in the pricing procedure it is picking up a condition type which is meant for state tax?
    If so go and check the condition record meant for it. Follow the following steps
    1) Go to Sales order
    2) Select the line item for which the state tax is being picked.
    3) In the condition tab select analysis.
    4) In Analysis you shall find the condition type meant for state tax.
    5) See which condition record has been found.
    6) Go to VK12, enter the state tax condition type and check the condition record for that state tax.
    7) If wrong correct it.
    8) If anything else come back to the post and inform the details
    Thanks
    Regards
    Sunil

  • Error when create purchase order

    Hi all,
    I have a strange error when create po. it is display : Please enter item number greater than 0.that only a vendor and a material.I check the vendor and the material is same as other vendor and materials.if i first input the vendor and input the material then display message : Please enter item number greater than 0,but i can't input the item number. if i first input material and enter,then input vendor the system is ok. I check configer is ok. and other vendor , material also ok.
    thanks to reply.
    james

    Hi,
    Go to SPRO-Materials Management-Purchasing-Purchase Order-Define Document Types..
    Select your doc type which you are selcting at the time of PO creation..
    Say for e.g. NB.
    Now you have to maintain " Item Number Interval" as 10 in front of your doc type.
    This option is just after "Document Type Description".
    Now save and check.
    Cheers...
    Utsav..

  • Where/ how do I set SNP to create Planned orders with multiple line items?

    Hi
    Currently our SNP is generating planned orders on a daily basis, it creates a single order with a single line item per location.
    Where/ how do set SNP to create planned orders on a daily basis to generate a single order with multiple line items per location, so therefore one planned order with multiple line items for a single location.
    Thanx
    Keegan

    Hi Keegan,
                   In SNP (APO) it is not possible to create order with multiple line items.
    But you can do some settings so that while planning system can do aggregation and disaggregation.
    But your requirment should be set on Aggregation/Dis-aggregation logic.
    Please follow the follwing links:
    http://help.sap.com/saphelp_scm2007/helpdata/en/2c/c557e9e330cc46b8e440fb3999ca51/content.htm
    Aggregation:
    http://help.sap.com/saphelp_scm2007/helpdata/en/42/f731d078e73ee4e10000000a1553f6/content.htm
    Disaggregation:
    http://help.sap.com/saphelp_scm2007/helpdata/en/a6/ebefaf32e22e468355da304cc59387/content.htm
    Please be sure that the setting of this logic will be at planning area level.
    You can't change aggregation/disaggregation logic further.
    Regards,
    Santosh

  • Getting error when creat sales order and Stock Posting

    Hi
    I have created enterprise structure, xd01, mm01, ovkk but I count't post stock.
    When create sales order getting error is that
    1.This material is not defined for sales area 1000, 10, 00.
    And if i use this T.Code MB1C,
    2. Parameters for plant 1000 not maintained in Inventory Mgt.,
    *3. Unit *** is not created in language EN.*
    Thanks in advance

    Dear selvi sankaran
    1)  Compare the sales organization, distribution channel and division of customer and material.  In your case, either of that should have been created differently.  Maintain the same sales area and retry
    2)  Go to omi8 and maintain the required parameters to your plant
    3)  Go to Material Master, select "Additional data" and click on "Descriptions".  There maintain "EN" under language.
    thanks
    G. Lakshmipathi

  • Error when creating Production Orders: -5002 Invalid Code  [OWOR.Status]

    When creating Production Orders, I receive the error: -5002 Invalid Code  [OWOR.Status] on certain of the entries. Typically 200 orders are created at once.
    What could be causing the error?

    You may check this thread to have a reference:
    Setting the repByIns to Null
    Thanks,
    Gordon

  • Error while creating sales order with ref to contract

    while creating sales order, with refernce to contract system is giving a message
    Configuration not possible for material : Reason 3 --> Help
    Message no. V1360
    and the message is as follwed can any one explain
    Diagnosis
    This may have been caused by one of the following:
    1. The configuration profile for the material allows or requires the bill of materials to be exploded during order processing. However, a plant has not been specified in the item.
    2. The configuration profile of the material allows or requires the bill of materials to be exploded during order processing, but the order quantity in the item must be greater than 0.
    3. A configuration profile has not been maintained
    or
    A configuration is not permitted for the material
    or
    4. The configuration profile of the material allows or requires the bill ofmaterials to be exploded during order processing. However, the system could not determine a date because important data is missing from the item (see incompletion log).

    Hi
    I think you have both Variant configuration and BOM.
    Pls ensure the following.
    1. BOM masterdata is maintained for the variants
    2. Variant configuration is configured correctly
    Configuration profile is created for the material
    Knowledge base object and run time version are available
    3. Maintain materials as not relevant for delivery or dont give delivery quantity as 0
    Once you are sure that these are in proper shape, you can start creating order. The problem wont come.
    Reward points if it helps you.

Maybe you are looking for

  • FB 4.7 app won't compile

    I recently overlayed the AIR 4.0 SDK on FB 4.7 and updated the playerglobal.swc file tp the 12.0 version.  I did not uninstall/reinstall the AIR runtime (don't think that makes a difference).  I also updated the ns on my -app.xml file to 4.0 When I t

  • Performance issue in customized program

    Hi, We have a performance issue in customized program. In this program he used do-enddo twice. I mean nested do-endo. How can we increase the performance. And when we did the code inspector it displays 9 errors 'Char. strings w/o text elements will n

  • Making a Mobile app in Muse

    Hello, ive being using muse for a couple of months now, ive manged to create my first few websites! Recently i have been looking at some of the new services adobe is bringing in to CC, one that sttod out for me is phonegap. This allows html code to b

  • How to uninstall MySQL 5?

    I have absolutely no idea of how to install MySQL 5! I've looked around all over but all I see are some few suggestions that I should just simply delete the folder user/local/mysql - which I can't find! Can someone please help me here?

  • Oradm

    while I am creating dataguard on solaris 10 by oracle 11g I need to create standby database manually. but I face problem that I could not create Oracle Instance by oradim. so can anybody tell me how to create the instance on solaris. thank you