BAPI_MOSRVAPS_SAVEMULTI3 creating planned order from Restricted Stock

Hi,
   We have a requirement where we need to programmatically replicate the Push Production functionality as in /SAPAPO/RRP3 transaction. We are using the BAPI - BAPI_MOSRVAPS_SAVEMULTI3 and it is working fine for conversion of planned orders and Process Orders to component planned/process orders and dependant demand for the parent material. The issue is when we are trying to convert a restricted stock to a planned order and dependant demand using the BAPI, we are getting a message "No valid source of supply could be found". Please let us know if anyone has a resolution to this issue or if any further details are required.
Edited by: ARKAJEET DASGUPTA on Apr 1, 2011 7:28 AM

Hi,
    Tlane is not a field name,I wanted to say Transportation Lane(T-Lane) exist or not in the system for that product-location combination.
For the SOURCE_NAME field, it is clearly mentioned in the documentation of BAPI that,
Selection of sources of supply (for example, PP/DS PPM)
ORDER_END_DATE is used as standard as the selection time for the source of supply (in-house production). If ORDER_END_DATE is empty, the value from ORDER_START_DATE is used instead.
If a different time should be used to select the source of supply, this can be set using the EXPLOSION_DATE field.
If a date field is not specified for an order change, the date of the last explosion of this order is used for source of supply selection.
The entries in the MASTER<...> fields also play a role for source determination. That is, possible sources of supply are searched for on the basis of product, location, quantity, and so on.
For the selection of sources of supply, the setting from the product master for plan explosion is used.
If several possible alternative sources of supply are found, the system chooses one source of supply as standard.
However, if you want to select a specific source of supply that has been found, you can use the fields PLAN_NUMBER + PPM_NUMBER, PROD_VERSION, or SOURCE_NAME. Note that only one combination may be used; you cannot use both PLAN_NUMBER and PROD_VERSION at the same time because both are valid for different source of supply types.
Please check with the functional consultant, in plan explosion field in product master what value they have maintained.
Because BAPI will try to get the source of supply name on basis of that field which is mentioned in the documentation.
Regards,
Saurabh

Similar Messages

  • How to create planned order from the sales order for a processing item

    In the MTO sceanrio, assembly order is created directly from the sales order. I would like to create a planned order from the sales order.
    I tried the Planning strategy group 81 in the material master but it didnt work.
    Could you please let me know how to do it? Is it Schedule line config that controls whether planned order is created?
    Thanks
    Harish

    Narayana,
    Planning strategy 82 is the best & standard way of getting production order created on sale order create.
    just assign this strategy  in MRP 3 view under strategy group.
    If not then using sale order reqt type ( KMFA- Assembly with production order) & assigning this to your sale order item category is also another way to create prodcution order without using planning strategy in material master.
    Follow steps in SPRO-->Sales & dist --> basic functions >avail check &transfer of requirements> transfer reqts-->determination of reqt type using transaction
    Here you may select the item category you in sale orders & assign KMFA to your item category. this will then give option in sale order create to change reqt type to KFMA for assebly orders.
    If you need KFMA to be default assign it to Item cat/ MRP type ( PD) combo.
    Regards
    Ritesh

  • Only create planned order if no stock

    Experts,
    I want to setup MTO environment with possible delivery from stock. If I use strategy 20 (MTO) the system always generates planned orders even if there is stock, with strategy 10 (MTS) no planned orders are created.
    Flow:
    - when sales order is created and there is no stock --> MRP generates planned order
    - when sales order is created in stock is available --> no planned order should be generated by MRP
    I tried to make a new strategy but can't find settings to make our flow possible. Has anyone experience? I guess this is a situation faced in many companies.
    Reward points if helpful answer.
    Thanks,
    jan

    Hi,
    I'm not totally sure this is the only strategy suitable for you, maybe you can examine this pdf material:
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PPMPDEM/PPMPDEM.pdf
    Have a nice day,
    Csaba

  • Create refurbishment order from planned order at MD04

    dear all,
    we are converting refurbishment order from planned order usin MD04 (stock requirement lis). when we convert it, there is a error number IW828 with message
    serial number profile is assigned to material X. serialization is obligatory for the serialization procedure considered here.
    its appear after we save it.
    but system still create the refurbish order.
    did someone know where i can put the S/N without entering refurbisment order change menu or (IW32)
    Regards
    Ayu Noorfajarryani

    Hi Girija ,
    You can contorl it by authorization (Remove Authorization of CO01 of users )
    The orders created through MRP are having referance of planed order in addational data tab
    Regards
    Girish

  • 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

  • Create Transfer Order from TR - Consignment stock

    Hi,
    I've implemented vendor consignment stock in SAP. However I cannot get it fixed that when an TO is created from an TR that a TO is created for the material which is a part of the consignment stock.
    Is it possible to make a TO automatic (with LT04) that also creates a TO with consignment stock as a source bin?
    Thanks

    Hi,
    Below is a screenshot of the Transfer requirement:
    Item 1 (1100-0002-0000) is a non-consignment material and item 2 (5800-0001-0001) is a consignment material which is stored on a consignment location.
    With Tcode LT04 (Create Transfer Order from TR) it is possible to create a TO for a TR.
    After clicking enter, the following screen appears
    When I click Generate TO Item the system automatically creates a TO for material 1100-0002-0000. However the system cannot create an TO for material 5800-0001-0001. It gives the following screen. With the notice that the system cannot find the source storage bin.
    The goal is that the TO is automatic created (just as for item 1)  for this material. Thus the material can also be picked directly.
    Hope this clarifies the issue.
    Thanks.

  • Create Planned Orders apart from maintaining PIRs in MD61/ Sales Orders ?

    Hello PP members:
    Is there any other way, where I can create planned orders(created after MRP run)
    apart from maintaining PIRs in MD61 (PIRs ---> Planned Orders , MRP run) or from sales orders (VA01)
    Please clarify

    Hello Rajesha:
    sorry about the communication gap
    Planned orders are created either from maintaining PIRs (MD61, MTS production) or from sales order (va01, MTO prod) --> through MRP run PIRs are converted into Planned orders
    But is it possible to create planned orders manually without maintaining PIRs or sales orders
    Please clarify

  • Deployment - setting for system not to create planned orders.

    hi
    I am executing deployment at the plant level.
    i have req. of 8000 on 26th and 9000 on 27th.
    i created a stock of 3000 on 25th.
    i am executing push deployment and maintained setting accordingly.
    After completion of deployment, system deploys the stock ie 3000 and creates Planned order for the remaining 5000 to meet the demand of 8000.
    What setting has to be maintained such that system only deploys 3000 or the stock only and does not create a planned order for the unful filled demand. ???
    in onther words system should deploy the stock and should not do anything more than that.
    Thanks.

    Hi Aswath,
    Can you answer these few questions for me? I will be able to answer your more appropriately.
    What is the order of planning runs in your system?
    1. DPR for demand at DC that creates distribution demand at the plant
    2. Deployment of the current stock at the plant
    3. Planning run at the plant to create planned order for any demand left out
    Is that the order? This does not make good sense for me but I don't know your scenario.
    What kind of deployment run are you suing? deployment heuristics or optimizer?
    In both the cases, you have "delete" and "reduce" option.
    The system deploys the stock at the DC based on the distribution demand ( coming from DC to Plant).
    If you use delete option, the system deploys for the amount of stock it has and deletes the remaining distribution demand.
    So, if you got distribution demand of 100 PCs, there is only 50 PCs stock at plant, the plant deploys 50 and deletes the other 50 PCs distribution demand at the plant. You need to rerun DRP at DC if you want to get back this demand.
    If you use reduce option, the system deploys for the amount of stock it has and reduces the remaining distribution demand.
    So, if you got distribution demand of 100 PCs, there is only 50 PCs stock at plant, the plant deploys 50 and reduces the distribution demand at the plant to 50 PCs.
    I think you have the second case and you are running planning run at the plant and it's creating orders. If you don't want the system to create them, use the "delete" option in deployment run.
    Please let me know if I am getting your point right.

  • Block individual planned orders from CIF

    Hello All,
    I would like to know if there is a way to exclude individual planned orders from CIF transfer from R/3 to APO?
    Thanks and Regards

    Hi Gabriella,
    It would not make sense to modify the standard way of working of SAP APO only for 2 months.
    If you use any kind of enhancements, etc, you would need to later on remove it or deactivate it.
    Best option would be to make adjustments in your forecast so that SNP could plan additionally for this temporary demand. Otherwise create dummy sales orders in R/3 which would inflate the demand. But this would be feasible, only if you DON'T automatically confirm the Sales orders for delivery in some way, or if you could think of some way in which these Sales Orders do not get processed further in some way.
    Or, as you yourself mentioned, increase the safety stock temporarily, and later on (may be after 2 months), reduce it to the normal value. But especially closer to end of 2 month period, someone would need to manually adjust planned or production orders in R/3 to have data sanity. Similarly, action would be needed in APO also to have data in sync with R/3.
    You could have created the planned orders directly in R/3 and sent them across to APO, but this would increase the receipt situation, so SNP would then start planning for lower "net demand".
    PS: In such scenarios where business needs something temporarily and which can't fit in the standard process, it is best that we  convince them to have some workarounds which might not really sound like businesswise wise (in this case creating additional forecast).
    Thanks - Pawan

  • 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

  • DBIF_RSQL_SQL_ERROR while creating planned order in ECC

    Hi ,
    Recently we have done the ECC6.0  migration. Migration in the sense
    Server A ECC6.0 Maxdb to Server B ECC6.0 Sqlserver.
    we took the database export from server A and imported to Server B.
    After completing the migration we are facing a problem.
    Using Trx code MD11 I am creating Planned order. It is giving Planned order   XXXXX will be created.But when I go MD13 and try to retrive the same planned order it says the order XXXXX doesn't exists.
    when I try to go back from MD13 it shows Express document "update was terminated" received from Author ************.
    I am seeing a dump in ST22.
    Error 22.04.2010          DBIF_RSQL_SQL_ERROR              CX_SY_OPEN_SQL_DB      
    Cann't insert NULL into column "ADCODE" Table "RESB"
    Column doesn't allow NULLS . Insert Fails.
    Any Help is Appreciated.
    Regards,
    Guru.

    Hi Srini,
    Please kindly review and evaluate note 686357 for possible solution.
    686357 able pool nametab length incorrect after Unicode
    The following pools may be affected:  ATAB, GLSP, GLTP, DVPOOLTEXT, KAPOL
    Please kindly run report RATPONTC to reset the dictionary and nametab length in the note.
    Regards,
    Mauro

  • Creating Planned orders and Requisitions for a particular MRP controller and for all the others only Requisition is to be created.

    Hi Experts,
    Currently we run Program 'RMMRP000' as a batch job to create Planned orders and requisitions.
    The client wants that Planned orders and Requisitions should be created for a particular MRP controller and for all the others only Requisition is to be created.
    I implemented Exit 'EXIT_SAPMM61X_001' in the following manner by passing MRP controller to user_key.
      IF mt61d-dispo <> user_key.
        no_planning = 'X'.
      ENDIF.
    But as you can see that this will not meet my client requirement.
    If any of you has worked on similar requirement / if any one knows that this is achievable or not,
    please share your inputs.

    Moved from SAP ERP Sales and Distribution (SAP SD) to ABAP Development
    G. Lakshmipathi

  • Update was terminated while creating purchase order from ME21N

    Hi Experts,
    We are getting this dump when try to create purchase order from ME21N;
    Our system ECC 6.0 and IS-AFS (Apparel & Footwear Solution) V600 component has installed,
    How can we prevent this error,
    Regards
    Here is the dump and sm21 log,
    Runtime Errors         LOAD_PROGRAM_NOT_FOUND
    Exception              CX_SY_PROGRAM_NOT_FOUND
    Date and Time          10.10.2008 10:22:03
    Short text
         Program "RMCMS431 " not found.
    What happened?
         There are several possibilities:
         Error in the ABAP Application Program
         The current ABAP program "SAPLMCS4" had to be terminated because it has
         come across a statement that unfortunately cannot be executed.
         or
         Error in the SAP kernel.
         The current ABAP "SAPLMCS4" program had to be terminated because the
         ABAP processor detected an internal system error.
    What can you do?
         Note down which actions and inputs caused the error.
         To process the problem further, contact you SAP system
         administrator.
        Using Transaction ST22 for ABAP Dump Analysis, you can look
        at and manage termination messages, and you can also
        keep them for a long time.
    Error analysis
        An exception occurred that is explained in detail below.
        The exception, which is assigned to class 'CX_SY_PROGRAM_NOT_FOUND', was not
         caught in
        procedure "TMC2F_FROUT_CALL" "(FORM)", nor was it propagated by a RAISING
         clause.
        Since the caller of the procedure could not have anticipated that the
        exception would occur, the current program is terminated.
        The reason for the exception is:
        On account of a branch in the program
        (CALL FUNCTION/DIALOG, external PERFORM, SUBMIT)
        or a transaction call, another ABAP/4 program
        is to be loaded, namely "RMCMS431 ".
        However, program "RMCMS431 " does not exist in the library.
        Possible reasons:
        a) Wrong program name specified in an external PERFORM or
           SUBMIT or, when defining a new transaction, a new
           dialog module or a new function module.
        b) Transport error
    How to correct the error
        Check the last transports to the R/3 System.
        Are changes currently being made to the program "SAPLMCS4"?
        Has the correct program been entered in table TSTC for Transaction "ME21N "?
        If the error occures in a non-modified SAP program, you may be able to
        find an interim solution in an SAP Note.
        If you have access to SAP Notes, carry out a search with the following
        keywords:
        "LOAD_PROGRAM_NOT_FOUND" "CX_SY_PROGRAM_NOT_FOUND"
        "SAPLMCS4" or "LMCS4F10"
        "TMC2F_FROUT_CALL"
        If you cannot solve the problem yourself and want to send an error
        notification to SAP, include the following information:
        1. The description of the current problem (short dump)
           To save the description, choose "System->List->Save->Local File
        (Unconverted)".
        2. Corresponding system log
           Display the system log by calling transaction SM21.
           Restrict the time interval to 10 minutes before and five minutes
        after the short dump. Then choose "System->List->Save->Local File
        (Unconverted)".
        3. If the problem occurs in a problem of your own or a modified SAP
        program: The source code of the program
           In the editor, choose "Utilities->More
        Utilities->Upload/Download->Download".
        4. Details about the conditions under which the error occurred or which
        actions and input led to the error.
        The exception must either be prevented, caught within proedure
        "TMC2F_FROUT_CALL" "(FORM)", or its possible occurrence must be declared in the
        RAISING clause of the procedure.
        To prevent the exception, note the following:
    sm21 log ;
    Transaction Canceled 00 671 ( LOAD_PROGRAM_NOT_FOUND 20081010102203saptest_TET_00 EYUCE 100
    Update terminated
    > Update key: F39796DD5421F1509233001E0BD601E0
    > Update module: MCE_STATISTICS_UPD_V2
    Run-time error "LOAD_PROGRAM_NOT_FOUND" occurred

    Please follow the oss note 800335
    V2 Update terminations in Purchasing transactions after upgrading or installing AFS 5.0 release.
    Other terms
    AFS, LIS, MIGO, ME22N, OLI3, S433, S431
    Reason and Prerequisites
    AFS Purchasing infostructure S431 is no longer used. S433 is the valid infostructure for the release AFS 5.0.
    Solution
    Please do the following.
    For customers upgrading to AFS 5.0 only:
    > Rebuild Infostructure S433.
    - Goto transaction: OLI3 (Statistical Set up of Infostructures)
    - Info structure to be compile: S433
    - Specify the 'Name of run'.
    - Execute.
    > Please also follow the instructions given below.
    For both Upgrade and Non-upgrade Customers:
    > Create the report 'ZDELS431'.
    - Transaction: SE38
    - Give Program name as ZDELS431.
    - Create (F5).
    - Title : 'Program to delete S431'.
    - Type  : 1 (Executable Program).
    - Status: T (Test Program).
    > Copy the program text from the note and paste in the program.
    > Save and activate the program.
    > Execute the report for all clients in Update mode.
      (Two check-boxes will appear: P_ALL_CL, P_UPDATE.
       Please check both of them).
    This report will delete all the references to infostructure S431.

  • No Account Assignment when I created Planned Order to Purchase Requisition

    Hi ,
    No Account Assignment when I created Planned Order to Purchase Requisition from Funds Management , where as If i change  ( eq : PR item qty is 10 , i just changed to 0 , enter then replace back that 10 ) any thing in the PR , Account Assingment is populated and list of accountin  documents are attached to PR.
    Please suggest me , what might be the problem .
    Thanks in adv

    Hi,
    a) When you convert the PldOrd into PurReq it disappears from table PLAF, it ceases to exist. There will be no PldOrd-reference in PurReq (you will not find such field in EBAN). (if you check field RSNUM in PLAF before converting the PldOrd and you check field RSNUM in EBAN after converting the PldOrd into PurReq, you wlll find the same number)
    b) It's not easy to say. You can check PLAF-PSTMP and PLAF-PUSER and compare these with data you get from trx STAD. But this is also not an exact methode since these field are in connection with the last date of change.
    Firming indicator cannot help also since you can remove it manually... - even though the PldOrd was changed manually, no firming indicator will be seen...
    (Of course, generally firming indicator helps if the user doesn't remove it intenionally)
    Regards,
    Csaba

  • Locating Planned order from a  purchase requisition

    Hi Gurus ,
    A purchase requisition has been created manually , by converting a planned order . Is it possible to find out the planned order , from a purchase requisition   Pls advise.

    Hi
    Once planned order converted in to Production order or Purchase requisition, we can't see any details of the planned order.Planned orders are stored dynamically in tables.once it is  coverted,Details can not be seen even in PLAF-Plan order table.
    In production order, you can see the planned order number but for PR , it is difficult to get the reference Plan order number.
    Regards
    Ramakrishna

Maybe you are looking for

  • Query parameters with the same name and different values

    According to HTTP, multiple query or post parameters with the same name and different values are permitted. They are transfered over the wire in the following format - name1=val1&name1=val2&name1=val3 The problem is that I can't see anyway of assigni

  • Closing and saving spreadsheet changes in the same document?

    Closing and saving spreadsheet changes in the same document? There are several drop-down options for saving a spreadsheet in Numbers except saving to the existing spreadsheet. Excel has a 'save' or 'save as' options what are the equivilents in Number

  • Re: I cannot change my Skype-To-Go PIN or edit my ...

    i have been overseas where i started having triuble with my skype to go number when i came back i changed my pin but Skype doesnt seem to recognise the new pin

  • Migrated from Lightroom to Aperture: TIFF's in LAB mode don't work

    I migrated from Lightroom to Aperture and I noticed many TIFF's were black, or strangely colored (reddish, greenish). I couldn't figure it out, but I think I know what is the problem. I used to work in LAB-mode in Photoshop for quite some time, and I

  • Problem Exporting as Original Size Export

    When I export a 3861 × 2574 raw file as an original size jpg, it exports to 1800x1200. If I open the file in Photoshop and save as a jpg, it saves as 3861x2574. If I export as a 50% jpg, it exports as a 1931x 1287 jpg. How can I export a 3861x2574 jp