Creation of a planned order on a specific resource
How can I manually (or with an ABAP program)
create an order on a certain resource with a specific mode.
When you create an order, the system chooses the first mode according to the priority. But I want to choose.
( In the planning board you can create first and later you can drag and drop,
but I don't want it)
How can I do that?
Thanks
Thank you Andrew I have implemented but there is a problem.I have internal tables inside the BADI method.
CT_MODES
CT_CAP_REQS
I have changed the sequence of the tables accordingly but the system again chose the mode priority which is higher rather than my sequence.
For example;
Line 1 : Mode 1 Priority B
Line 2: Mode 2 Priority C
Line 3: Mode 3 Priority A
It is not important how the sequence is, it looks at the priority, if all the priorities are equal, then it looks at the Mode Number ( 1 or 2 or 3)
How can I solve and how can I modify the BADI?
Thanks..
Similar Messages
-
Factors influencing creation of a planned order
Hi,
What are the factors that lead to creation of a planned order during a Heuristic run?
When does a system decides to create a planned order? at what stock level? and how is the planned order qty. decided?
I have a material in a location that has planned orders generated.
I am trying to understand why the system created this order?
There is no safety stock, safety days supply or target days supply or rounding profile defined in Product master in Lot size tab.
Lot sizing procedure is by period (Days) - number of periods = 1
Lot size strategy blank
When I look at the product view,
the requirements pileup with category SNP:DepDmd and after some days, a planned order is generated for some qty.
I am trying to understand when the system determines to create a planned orders? What is the upper limit of the demand when the system generates a Planned order?
In the system, some times the planned order is generated when the stock is at 2,484.567 PCs some times 13.645 PCs.Planned Order creation is based on a MRP calculations (net requirements planning) and ofcourse APO takes into account various factors such as min or max lotsizes, time-phasing requirements, calendars or safety stock requirements etc.
Keeping aside the safety stock complexity in your situation, some of the reasons why a planned order could be created even with lots of stock in hand could be:
1. Check projected stock on hand may be going down under 0 if the planned order were not created on time
2. There would be a window of time for planned order creation due to production and other calendars that if lost would force projected stock in hand below 0
3. the stock in hand is blocked stock not useful for planning
4. Issues with SNP planning book configuration where key figures are not mapped correctly to ATP categories. Makes sense to double check in Product View
5. Due to min lot size being high, it might appear that system is over planning production. -
Creation of SNP planned order based on PDS
Hi,
I'm a APO developer and I have the following problem:
I would like to create a SNP planned order based on a PDS (like e. g. in the planning book when you input a number into a cell in the "Production (Planned)" line).
Up to now I've only managed to create such an order without using the PDS.
Can you name me a function module which allowes me to do that?
Thanks in advance.Hi,
I've now managed to create this kind of order.
I set a breakpoint at the function module /SAPAPO/DM_PROD_ORDER_CHANGE and checked how it was filled in the planning book.
For those who want to know:
INCLUDE /sapapo/constants_om.
CONSTANTS:
lc_order_type_1f TYPE /sapapo/om_order_type VALUE '1F'.
DATA:
ls_prod TYPE /sapapo/msnp_prod,
lt_prod TYPE /sapapo/msnp_prod_tab,
ls_sources TYPE /sapapo/sources,
lt_sources TYPE /sapapo/sources_tab,
lv_matid TYPE /sapapo/matid,
lv_locid TYPE /sapapo/locid,
lv_vrsioid TYPE /sapapo/vrsioid,
lv_tstfr TYPE /sapapo/timestamp,
lv_tstto TYPE /sapapo/timestamp,
lv_simsession TYPE /sapapo/om_simsession.
lv_vrsioid = '000'.
* Create SimSession
CALL FUNCTION '/SAPAPO/TSIM_SIMULATION_CONTRL'
EXPORTING
iv_simversion = lv_vrsioid
iv_simsession = lv_simsession
iv_simsession_method = 'N'
iv_perform_commit = space
EXCEPTIONS
lc_connect_failed = 1
lc_com_error = 2
lc_appl_error = 3
multi_tasim_registration = 4.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
* Get PDS
CALL FUNCTION '/SAPAPO/MSDP_SNP_PPM_VALIDITY'
EXPORTING
iv_vrsioid = lv_vrsioid
iv_matid = lv_matid
iv_locid = lv_locid
iv_tstfr = lv_tstfr
iv_tstto = lv_tstto
iv_planstart = lv_tstfr
iv_planend = lv_tstto
CHANGING
ct_sources = lt_sources
EXCEPTIONS
wrong_interface = 1
error_occured = 2
OTHERS = 3.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
READ TABLE lt_sources INTO ls_sources INDEX 1.
ls_prod-version = lv_vrsioid.
ls_prod-matid = lv_matid.
ls_prod-locid = lv_locid.
ls_prod-plobid = '9AMALO'.
ls_prod-tstmp = lv_tstfr.
ls_prod-catgr = 'PP1'.
ls_prod-categ = 'EE'.
ls_prod-categ_prku = 'EE'.
ls_prod-categ_prse = 'EL'.
ls_prod-kz_prod = '9APPROD'.
ls_prod-kz_prku = '9APPROD'.
ls_prod-kz_prse = '9ADMDSE'.
ls_prod-produ = '1000'.
ls_prod-proid = ls_sources-trpid.
ls_prod-mosta = gc_new.
ls_prod-order_type = lc_order_type_1f.
ls_prod-is_fixed = 'X'.
ls_prod-snp_is_header = 'X'.
APPEND ls_prod TO lt_prod.
CALL FUNCTION '/SAPAPO/DM_PROD_ORDER_CHANGE'
EXPORTING
ic_database = 'LC'
ic_application = '4'
iv_simsession = lv_simsession
it_prod = lt_prod
iv_netch = 'X'
EXCEPTIONS
material_not_supplied = 1
location_not_supplied = 2
OTHERS = 3.
* Merge simulation version (to commit order changes)
CALL FUNCTION '/SAPAPO/TSIM_SIMULATION_CONTRL'
EXPORTING
iv_simversion = lv_vrsioid
iv_simsession = lv_simsession
iv_simsession_method = 'M'
EXCEPTIONS
lc_connect_failed = 1
lc_com_error = 2
lc_appl_error = 3
multi_tasim_registration = 4
target_deleted_saveas_failed = 5
OTHERS = 6.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF. -
MD03 / MD04 creation of separate planned orders per requirement
Hello,
I hope you can help me.
Situation:
- MD04: separate sales orders
- MD03: Run MRP > based on requirements for sales orders >1 PR is created
Material master:
Lot size: EX / Availability check: 02 / Individual/coll.: 1
How do I set the system in such a way that for each sales order, a separate PR (and later on a planned order) is created by running MD03?
Current behaviour: 1 PR for all sales orders.
PS: sales order stock is not possible due to situation and version (3.1i).
BR,
DionHi,
MD03 - single item single level planning. So if you run by MD03, below only one level will be planned.
MD02 - Single item multi level. If u run by this , it will plan upto the bottom level.
Your requirement is separate PR for each sales order. What u have mention in the material master is correct, but in mrp 3 view use strategy 20.
In this also if u are creating more than one sales order in the same date for the same material, system will create as a single PR only.
MD50 - Multi level sales order.It plans only sales order item selected across the bom.
Reward your points if it is useful.
Regards,
Dharma -
Creation of SNP Planned Orders using Optimizer
Dear Experts .....
I am facing some problems while creating SNP Planned orders using Optmizer ( Discret Optimization).....
For eg.
I am using 3 months horizon ... the first two months is daily buckets with 12 hours capacity each one and the last month is weekly buckets.
The product minimun lot size exceed the daily capacity .... this way planned order have been created in the weekly buckets at the end of the horizon.
I need the system to create orders in the correct date avoiding use of safety stock .....
Regards
MauricioThose other 2 settings was already done .....
It is still not working .... iI am receiving the following message ...
Production process model/PDS 00000000000001011301001 S: Cannot be executed
Message no. /SAPAPO/SNPOPT159
Diagnosis
Production process model 00000000000001011301001 S at location 0100 is intended for cross-period lot size planning. It can be started in bucket 20110404->20110404. However, it does not then end in the same bucket.
Thanks for your effort trying to help me with this issue. -
Deletion and creation of SNP Planned order
Hi,
I need to delete the SNP Planned order i.e ATP category of type 'EE' and I have to create the orders of ATP category EE through programetically. Please let me know if any BAPI's or Function modules are existed for the same.
Appriciate your help.
Regards,
RatnaHi Ratna.
To delete orders in SNP use transaction:
/SAPAPO/RLCDEL
BAPI to create planned orders:
BAPI_MOSRVAPS_SAVEMULTI3
There is also a BAPI to delete planned orders if this is more suitable.
BAPI_MOSRVAPS_DELEMULTI
Hope this helps, M -
Creation of SNP planned order in Monthly Bucket though CTM plan
Hi,
Can anyone advise how to aggregate the SNP planned order generated after CTM run in Monthly bucket.
Can it be done through customizing?
Regards.
Punitsystem switches over to external procurement in place of in house production only when you use optimizer.
Heuristic will do this only if there is a SNP PPM/PDS and the resource calendar prevents timely production.
Regards
Nitin Thatte -
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 -
Manual creation of PPDS Planned Orders by start date and time
Hi,
When an order is manually created in any ppds standard transaction the start date is calculated according to the availability date entered, the order quantity and the master data
Is it possible to manually create an order based on the start date and then the availability date is calculated according to the order quantity and master data?
Thanks
CTFCTF,
You can 'forward schedule' manually created orders.
Scheduling direction is dependent on the Strategy profile. During order creation, you can change this.
When on the order create screen (/sapapo/rrp5), select the strategy button at the top. This will bring up the default strategy for your userid. You can alter the "planning direction" to be 'forward' or 'forward & reverse' depending on your business requirements. Selecting Save will then make this scheduling strategy your default; otherwise just hit green checkbox.
Now the order entry screen will have 'start date' entry box. Avail date will then be calculated.
Best Regards,
DB49 -
Manual creation of planned order in REM
Hi,
Can we manually create a planned order in repetitive manufacturing? I know that in case we run MRP , then planned order for finished is created with order type 'PE' due to which it cannot be converted to production order.
I dont want to run MRP , still can i create a planned order manually with the same order type 'PE' ? I tried in MD11, but not getting option to chose PE as it is not available in F4 of planned order profile.
Please help..
Regards.Dear,
You cannot create a planned order with PE order type manually, because a planned order of REM related material gets order type "PE" only when it is assigned with a Production Version.
So achieve manual creation of REM Planned order with PE type with the following options,
I - Using MD11 transaction create a planned order with LA type and assign a suitable REM related Production version to the planned order during creation itself, now this order would automatically become "PE" order type on saving the order.
2. In the planning table using MF50, you can directly create a planned order for a production line using F7 key.
Regards,
Prasobh -
Report for PO's/Pr's/Planned orders with exception code
Hi all,
Is there any report which lists out Purchase Orders/Purchase requisitions/Planned orders for a specific exception message number?
For example when MRP is run some times the finish date for a planned order may be in past (exception message number 07). I would like to get a list of all the planned orders with exception message number 07. Similarly i would like to get PO's/PR's for a specific exception code.
Any help is highly appreciated.
Thanks,
Avani.Hi Neetha,
You can use the Collective access tab on the MD06 T-Code, don't enter a material number, only the plant number and MRP Controller number. Then click on the tab marked Exception Groups, check box number 7 and execute the report. This will give you a list of all materials with exception group 7. If you need it as a report. Once the report comes up you can click on MRP List on the tool bar at the top of the page and then click print. This will format it so you can download it into excel by clicking on the Local File Button. When the box comes up click on spreadsheet and save it to your hard drive as an excel spreadsheet.
Hope this is of some help to you.
Debbie -
Creating a planned order with error "Material requires configuration"
Dear All,
I am facing a problem for creation of a planned order with error "Material requires configuration".
To follow the note 180317, I change Account Assignment Category to "U" (Unknown).
However, the system still does display the same error.
Could you please help provide possible solution for this?
Regards,
PhongSee also the following blog post:
Configurable planned order for material variants: Exception "53: No BOM explosion due to missing configuration"
BR
Caetano -
Deletion of Planned Order in APO PP/DS
Hi All,
I have a question on PP/DS ( IS-Auto ). Suppose if we are deleting the planned orders in APO so what will happen to the concerned PDS. I want to preserve the PDS so that we can use them later.
If we delete the Planned Orders then will the PDS be also deleted ?
Thanks,
PrabhatPrabhat,
Think of a PDS the same way you would think of a Production Version in ECC. It is master data, and one or more of these can be assigned to a Material/Plant combination.
http://help.sap.com/saphelp_scm70/helpdata/EN/4d/01be3d1abbe913e10000000a114084/frameset.htm
A Planned order is Transactional data. Creating/changing/deleting a Planned order has no impact on PDS Master data. During the creation of a planned order, the system reads the PDS info, and copies selected bits of this master data into the Planned order. At this point, then, certain parts of the planned order data can be changed. Such changes generally do not affect the underlying master data.
http://help.sap.com/saphelp_scm70/helpdata/EN/49/d565caf54535f5e10000000a42189c/frameset.htm
Best Regards,
DB49 -
Sir i want to know the t-code where i will get planned order initial quantity .If i have planned order of say 1000 EA , now if i convert it to partial production quantity of say 200 EA by t-code MD04 then in front of my planned order quantity is 800 EA .I want to know from where i will come to know that my initial planned order qty was 1000EA.
Sir i wait for reply.Hello,
You will get the initial Planned Order No. and Quantity in the Table : PLAF.
The Field Names : PLAF-PLNUM and PLAF-GSMNG.
The logic should be:
As all the Planned Orders of a specific material are not going to be converted to Production Orders.
Which ever the Planned Order, you are going to convert to the Productio Orders, the report should update at the run time the Planned Orders to a Z Table.
If the Planned Order is converted Partially, the Planned Ordr no. will be intact with the reduced quantity, so your program shoud check the Duplication of the Planned Order numbers with the Actual quantity.
When required, the oupput should from the ZTable..
On similar lines or with some other logic ask your ABAPers to Devlop a report for you..
Regards,
Siva -
Spliiting of planned order in REM
Hi all experts,
I want to split planned order created in REM into 2 separate planned order with different material code.
Can someone help on this?
Thanks in advance,
MilindDear Milind,
Few things are confusing,like why's the user splitting the quantity as 70:30 for that HALB?
Again 70% material is a different HALB and the other 30 % is a different HALB.
Is that combination 70:30 is fixed or it's a variable one?
Exactly at which stage this combination is decided by the user?If you are saying interface is it a
customized Transaction?If so make sure when the planned order get's firmed because it may lead a
confusion at the time of MRP run.
Creation of 2 planned order from that firmed planned order is possible,but I dont know whether it can be
made with 2 different part Codes.But it's possible through customized reports and not in standard SAP.
Try using 2 Quota Arrangement say by creating 2 production versions 0001 & 0002 and assign the % of
quota's (but this will work only if the combination is fixed).After taking MRP run you will get directly 2
planned order's one for PV1 & the other for PV2.check whether this can help you.
Regards
Mangalraj.S
Maybe you are looking for
-
How do I get help for unauthorized purchases of apps?
I am having difficulty finding a way to get credit for unauthorized purchases in iTunes
-
2 Scripts Needed - ID3 tags & Converting
pretty much a newbie when it comes to this, so bear with me... i have a music download site (legal) and every time a label sends us CDs, we load the tracks into I-Tunes, convert them to MP3s 320 and 192, Then we create a play list, drag all the MP3s
-
HELP!!!!
-
Configuration (Instance) alias problems - restart all services or just data engines?
I have 2005, 2008 (not R2) and 2012 instances installed on a workstation. I disabled 2005 (turned all the services off) and only need to have 2008 and 2012 instances running. When adding new aliases or changing the existing aliases for 2008 and 2012
-
3750ME - does the stack-port work?
I have an application for a 2-switch stack of 3750ME. I read somewhere on CCO that stacking is not supported on the "ME" flavor although the stack ports exist. Can anyone tell me:- a) why its not supported b) if it works at all Is it codified or is i