Custom program to insert and firm new planned order supply

Hello,
Can anyone point me to the Oracle package/procedure that is used in ASCP workbench to insert and firm a new planned order supply? Would like to call this proceudre from a custom program.
Cheers!

There is no api to insert data into a given plan but Oracle allows you to use the "Legacy Collections" to import/create various data elements (such as Reqs, PO, Planned orders etc.)
See "Legacy Collections" sections in http://download.oracle.com/docs/cd/E18727_01/doc.121/e13358/T309464T309470.htm#T309821
Keep in mind that this takes time to setup. So make ensure that this is the right solution before proposing it.
Sandeep Gandhi

Similar Messages

  • After firming planned order, new planned order is generating in MRP run

    Hi Experts,
    I am using SAP AFS. Planning strategy is 21- MTO with Project settlement. MRP type is PD. Lte size is EX. Procurement type is X.
    We are using the production versions. Individual / collective reqmts is 1. Planning time fence is not maintained.
    In sap AFS T.Code for MRP run is /n/afs/md02. After receiving the Sales order, MD04 screen gets updated accordingly and I am running the MRP.Planned orders are generated accordingly. I am firming the planned order manually through MD04. The satr mark is also appearing.
    My problem starts now. If I am running  the MRP again for the same requirements another planned order of the same qty. is getting generated. That means after the second MRP run, I am having two planned orders (one firmed plnd order) and second is the new planned order. My requirement is that MRP should not generate any new Plnd. order / PR's if there is no new Sales order.
    The parameters for MRP run are "1" for "Create PR's", '1" for "Plng Mode" and '"1" for "scheduling ".
    I have tried in all the possible ways, but of no use. Still new plnd order is generated after firming the 1st plnd. order in MRP run.

    Thanks all for your feedback..
    @ Vishal
    1. Yes, Both Old firmed planned order and newly generated planned order have the same grid value
    2. For both the planned orders :
    Special Stock is E u2013 Orders on hand,
    Consumption is V,
    Sales order is the same (As we are using MTO , Strategy 21) and same WBS element.
    3. First planned order is not in the assigned tab of MD04. This means that has been allocated to some object. u2013 I didu2019nt got this point. Can u please elaborate?
    @ Nikhil
    1. Quantity of sales order is not reducing after firming the sales order
    2. Account assignment category for both the planned orders is u201CZu201D - Indiv.cust./project
    I have made some more observations and found the following differences between the two planned orders
    From  MD04 , keep the cursor on corresponding planned order
    & click on upward arrow ( available on bottom side of the report).
    It will show what will be the originating requirements i e. for which requirements this planned order generated.
    For Firmed planned order it is taking me to screen u201CPegged Requirements
    u201D*And the following data is present:
    Planned dates: 04.07.2010
    MRP element No. 3100001185 (Sales Order No.)
    MRP element item 100
    Scheduling No. is 1
    MRP element indicator - VC u2013 Order
    MRP element data- 3100001185/000100/0001
    Plng segment u2013 3100001185000100000
    P.O / Order Type u2013 ZX
    Rec/reqd Quantity 10
    MRP element u2013 Order
    For new planned order generated, I am going to Screen *u201CProcurement without Requirementsu201D
    *The following data is present
    Planned date 03.07.2010
    MRP element No. 0000123522 (Planned order No. of the newly generated after MRP Run)
    MRP element Ind. u2013 PA
    MRP element data 0000123522/SO
    MRP element item 1
    Scheduling No. 1
    MRP segment 20
    Plng segment u2013 3100001185000100000
    Rec/reqd Quantity 10
    P.O/Order type- KD
    MRP element u2013 Plnd Order

  • Define New Planned Order Type

    Hi All,
    I would like to ask where in SPRO can I define a new Planned Order Type (not the Planned Order Profile). 
    For example, the existing Order Types are :
    NB - Standard Purchase Order
    LA - Stock Order
    RS - Reservation
    KD - Individual Customer Order
    KB - Consignment Order
    OE - Run Schedule Quantity
    VP - Planned Independent Requirement
    I would like to add a new Planned Order Type Z1 and change the scheduling type from Forward to Forward Time. 
    Thanks in advance.

    Dear
    In SAP Standrad , there is nothing called Planned Order Type .Basically , it is the planned order profile which decides  all the realted category like accounting assingment  , special procurement , prcurement type etc .
    So you need to fgo SPRO-MRP-Procurement proposal -Define planned Order profile -New entries .At the saem time  assing the accouting assingment categoery in OME9 and define scheduling parameters in OPU3 ( Scheduling Type , Adjust scheduling , Logs ,Automatica scheudling , CRP  etc )
    Hope this helps
    Regards
    JH

  • Difference between snp planned order and pp/ds planned order

    Hi to all,
    can any one please explain the difference between snp planned order and pp/ds planned order. I am relatively new to this area

    The primary differences are as below.
    1. The master data for SNP Planned Order is SNP PPM/PDS where the minimum duration for an operation is a day. So it is used for rough cut capacity planning.
    The master data for PPDS Planned Order is a PPDS PPM/PDS where operations are down to minute and second level. Moreover sequence dependent operation planning is possible in PPDS Planned Orders. It is for detailed capacity planning.
    2. SNP Planned Orders are created in SNP while PPDS Planned Orders are created in PPDS or when transferred from ERP to APO.
    3. SNP Planned Order need to be converted to a PPDS Planned Order before it can be used in the Execution System (ERP) for further processing - like conversion to Production Order. Moreover the category types of the orders are different in APO (EE for SNP and AI for PPDS).
    Hope this helps.
    Somnath

  • Urgent How to Code Custom program to get_data and Set_data

    Hi,
    I am using BADI to enhance the vendor master screen.
    The Badi were implemented as  per OSS 580266.
    Subscreen is appering, new buttion is working fine.
    But how to communicate between my custom program's  PBO , PAI to  Badi's GET_DATA
    and SET_DATA.
    Is any one got any sample code?
    Thanks for the help
    Rgd.

    Hiii John Wu,
    Thanks for your reply,
    And i have a little bit confuse. I mean, now my project available in SAP Netweaver Developer Studio. I have 2 DCs the first DC for User Interface and the second for EJB. where do i have implement servlet in each others or i need to create and implement at another DC. How to implement it? sorry for somethings write above so I am a new comer for SAP development.
    Thank you!

  • Labview program to unistall and install new/updated software programatically

    Hi,
     I want to create a labview program to install and uninstall teststand deployment programatically.
    Query : I have teststand deployment made and ready,wanted to deploy in 5 test PC's and for very first time it did work good. Now when I made updates in the modules, i made a new deployment with version increment. Now this time, i first uninstalled the previous deployment and reinstalled a new one. This time it took time to uninstall and install all 5 test PC's.
    I wanted to automate this process through labview. I wanted to create a labview exe or installer which continusouly running on the client PC's looking for a perticular folder for new/updated deployment. If it finds, uninstall the older version if present and install a newer version of deployment.
    I wanted to know what things i need to consider while making this type of labview program which uninstalls the older version and installs a newer one? I think i need to even reboot after uninstallation, before installing newer deployment. How make the program running even after reboot and continue the process?

    I have the MS-6968 device and i want to use driver 1.4.x or 3.0.x. I found the driver 1.4.2.10 but i cannot find any WIDCOMMSecurity code.
    So, can anyone give me a link for BTWPatcher.exe???
    It cannot be found here (Jon's Bluetooth ) anymore.
    Thanks

  • Left over of Sales Order creates new planned order of whole batch

    Hi Gurus,
    We are using planning without Assembly strategy (52) and Sales order is created in our sales plant and Purchase order from sales plant creates STO on manufacturing plant which than produces material using process order.
    Now sales order says 5000 EA but actual production is if 4985 EA in Manufacturing plant which is transported into Sales plant and sales plant receives 4985 EA which keeps sales order of 5EA in the system
    When MRP runs overnight creates planned order for left over quantity and it is of whole batch 5000 EA. This confuse our planner.
    Can anyone provide me the solution please?
    Regards,
    SAPPPPI

    Hi,
    For strategy 52 FX never works so we have lot sixe "EX".
    We have set up tolerance limit of +/- 10% but when less quantity is received (4985 instead of 5000)  from manufacturing plant system thinks there is an open sales sales order of 15 and creates a new planed order.
    If we have materials 4980 in stock and we create  a sales order for 5000, tolerance will be considered for this and there won't be any open sales order but in our case Sales order allows us to procure and when GR quantity is less than sales order it is treated as left over and create planned order.
    Please help me by replying if any one knows.
    Regards
    SAPPPPI

  • Min/max MRP and double star planned order

    Hi,
        What does setting up materials for min/max mean ? Is it just some concept r does it involve some specific settings in the material master ? I know there are minimum and maximum lot sizing procedures available. Are these to be taken into account to set materials up for min/max ?
    What does a planned order with two stars in the MD04 screen mean?
    Thanks

    Dear,
    Single *** means order is Firmed and **** means Capacity planning has been done for the  planned order.
    There is "storage location" MRP with min max levels.
    Have a look at the fields on the MRP screens in the material master and you will see the settings you can choose from.
    There should be no need for any config as long as your basic MRP config is there.
    The normal MRP run will then try to maintain the correct stock level in that storage location and you use the special procurement keys on the material master to determine where the stock should come from to replenish that storage location.
    Go to TcodeOMIA  here you will find min max for your plant.
    Regards,
    R.Brahmankar

  • Firming of planned orders

    Is it possible to firm  planned orders automatically  after Mrp run.
    Does MRP give Trigger to firm planned orders.
    I dont want to firm Planned orders when I do MRP first time.

    Hello ,
    1.It is possible to firm procurement proposal like planned order , purchase reqs to be firmed automatically and also re-schedule them with in planning time fence if you use the Firming type 1 or 2 in your Check MRP Type configuration in SPRO .Basically you need to choose the following MRP type
    1.Automatic Firming and order proposal rescheduled out : P1 with Firming Type : 1
    2.Automatic Firming with out Order Proposal : P2 with Firming Type : 2
    At the same time you have to maintain the Planning time Fence at MRP1 view along with this MRP Type P1 or P2.
    If you do not want Firmed planned orders during frist time MRP run , Use MRP Type : P0 with Firming Type : 0
    Hope this will solve your problem
    Regards
    Jia

  • Firming of planned order

    what is the application of firming planned order with out making any changing in the planning time fence in material master
    John.

    Dear John,
    Firmed procurement proposals are no longer changed by the planning run(MRP run). They can only be changed manually.
    You can firm all types of procurement proposals:
    planned orders
    purchase requisitions
    Delivery schedules (schedule lines).
    The system flags firmed procurement proposals with a star in the stock/requirements list and the MRP list.
    Features
    Firming by Manual Changes
    Procurement proposals that have been created or changed manually are given a firming indicator automatically by the system. You can cancel the firming by deleting the firming indicator at any time. You can also set the firming indicator manually, without changing the procurement proposal.
    Firming with the Planning Time Fence
    Order proposals that lie within a defined planning time fence are firmed for the planning run if they are set to an MRP type with the appropriate firming type. The firming indicator is not set and they are only firm as long as they lie within the planning time fence.
    For schedule lines in the planning time fence, you can firm only the quantities that have already been transferred and not the current quantities. Transferred schedule lines are schedule lines that have been sent to the vendor by telecommunications and have been confirmed.
    Firming with the Manual Firming Date
    The manual firming date lengthens, if necessary, the planning time fence up to the date entered. This has the advantage over the planning time fence that you can firm procurement proposals for materials with an MRP type that contains no firming type.
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/f4/7d2ca444af11d182b40000e829fbfe/content.htm
    Regards
    Mangalraj.S

  • Creation of new planned order

    Iam having MTS scenario and when I do MRP run for For header material (Planned independent requirement quantity 10 ), it creates  depedent requirement planned order for child (quanity 10*2= 20)
    I have 10 numbers in stock for child item, then also planned order of 20 is created, it has not taken stock quantity in account while creating planned order for child.

    Hi,
    Are you getting any message in the MD04 screen for that material?
    And also check the below  setting .
    SPRO->Production->MRP->planning->Define Storage Location MRP per Plant.
    If there is any entry for your storage location here, then it will not consider the storage location for the MRP Run.
    Regards

  • What derives creation of PR and what for planned order???

    experts i have a situation-pls help
    I created a PM work order (IW31 ) with the
    start date 01/31/2011
    fin date 01/31/2011
    then i offset it for -14 days (order start/ requirement date -> 01/17/2011)
    i added 3 components in it with the following
    RLT - 8 days
    MRP type- PD
    lot size- EX
    after the MRP run- it created PR for all of them with creation date 12/17/2010 and release date 01/09/2011-> which is ok!
    now the user added other component in the same WO with the same details on 12/22/2010-> but this time it created the planned order!!!!!
    my quesiton is what is deriving it to create PR and what to create planned order???? (my requirement is to hav the planned order for the material so that i can convert the PO -> PR by nxt month close to the release date of the PR of the components- i _unnecessary dnt wants to have the PR created now!!!!!)_

    Dear
    A merial with Procurement Type F and having requirement  (PIR , Sales Order ) , will generate PR in MRP run if you choose Create PR indicator as 1/2.But priorty should be Procurement Type in MPR2 view .Even you keep Creat Purchase Req indicator as 3 (Planned Order ) -It will generate Planned order and u can convert them to PR  from MD04.
    Where as a Material with Procurement Type-E will create Planned Order  based on the requirement in MD02 .Here you should keep the Create PR indicator as 3.Even , if you choose Create PR indicator as 1 or 2 ,  you will recieve Planned Order Only which can be converted to Production Order , PR, Sub-Contracted PR  etc .
    Basically Procurement Type drives the Planned order  and PR but Create PR indicator in MD02/MD03  gives th result based on the selection .
    Test  the same with a sample material  with Procurement Type-E /F and play around with MD02/MD02
    Regards
    JH

  • How to create a new Plan order type or make changes in current stock type?

    Hi
    I need to do following for my client.
    After the planned order is created either manually or automatically a planned order profile
    is allocated and data is processed. The data would include: material, plant, order quantity
    and basic order dates. The system will check component and capacity availability and if needed, capacity leveling
    can be carried out. Saving the planned order creates a purchase requisition, planned load,
    creates dependent requirements and allows the processing of the planned order.
    NUMBER RANGES FOR PLANNED ORDERS: - 1000 to 9999

    Animesh,
    Could not fully understand what is your requirement, please rephrase and explain again. In the statement given by you everything happens expect while saving the planned order, PR getting created.
    Regards,
    Prasobh

  • Automatic changing of activity start date and time of planned orders in SAP

    Hello experts,
    I have a requirement that in the transaction /SAPAPO/SEQ1 for the list of planned orders what ever we get in the sap we have to swap the activity start date and time for two planned orders which we select automatically. For this I have found the BADI "/SAPAPO/SEQ_VISUAL01".
    Now i am able to identify the two selected planned orders inside the BADI method SEQGRID_TOOLBAR_OKCODE_HANDLE.
    Now my requirement is i have to swap the start date and time for these two planned orders automatically i.e. through BAPI or any FM.
    Any idea of any BAPI or FM to change the details of the planned order.
    Thanks,
    Sanath.

    Hi Sanath,
    Please check this BAPI BAPI_MOSRVAPS_SAVEMULTI3.  This Bapi has the provision of chaning Planned Order & Production Order Data. Also, you can explore more info on available bapis in the T-code 'BAPI'.
    Thank you,
    Santosh KB.

  • Mass Firming of planned order

    Dear gurus,
    I am looking for any tool by which i can make firming of collective planned order.
    Thanks,
    Das

    Hi Das,
    In SAPAPO itself, there are standard t-codes to carry out these options.
    1) /SAPAPO/RRP_SNP2PPDS - Conversion of Supply Network Planning -> Production Planning
    2) /SAPAPO/SNP2PPDS - Conversion of Supply Network Planning -> Production Planning in Background
    3) /SAPAPO/CDPSB0 - Production Planning Run  - To convert planned orders to production/process orders
    4) /SAPAPO/CDPSB1 - Production Planning Run in the Background - To convert planned orders to production/process orders in background.
    Regards
    R. Senthil Mareeswaran.

Maybe you are looking for

  • Error in  using The Standard PF-STATUS .

    Hi    i want standard futures in my zalvreport I HAD USED THE CODING AS MENTIONED BELOW .. PROBLEM I AM NOT GETTING THIS FUTURES IN MY ZREPORT please tel me wat is the problem I_CALLBACK_PF_STATUS_SET          = 'ZPM_MOTOR_HISTORY' *                

  • Vector  or Array List better usage

    Hi form For storage of large Object's Which is a better management API Vector OR ArrayList Please some one Enlightern me with regards Karthik

  • Drill down error in disc. Viewer

    Hi there, I'm getting the following error while trying to drill down in Disco. Viewer. Error applying Drill.Press your browser's Back button to undo the last action or click Run Query to start again.<< It works fine in Plus and Desktop. Any idea? Tha

  • SCCM 2012 Sp1 - Collation

    Hi, I want few clarifications on the collation i have configured, For site database it is SQL_Latin1_General_CP1_CI_AS For SCCM reporting services - Standalone SQL server i have configured Latin1_General_CI_AS. Will this work Regards, Pratap

  • FTPS with Oracle XML DB

    Hi all , I am thinking of using Jakarta Common net to implement FTP over SSL . Is that possible to do that ? Someone did it before ?