AVAILABILITY_CHECK for Make to order or Purchase to order
All,
I am trying to use the FM AVAILABILITY_CHECK on a make to order sales order. As each MTO sales order is unique, the ATP check is done on each individual line item.
However, when I do an ATP check with the SO and line item, I still get a zero result. Has anyone done an ATP check for PTO or MTO SO?
Here is the code, as you can see we are using the correct internal numbering range.
*& Form get_atp_qty
Call the FM AVAILIBILITY_CHECK to find the ATP Qty and Qty
Received
FORM get_atp_qty USING lp_matnr " Material
lp_werks " Plant
lp_kdauf " SO
lp_kdpos " SO item
CHANGING lp_qty " ATP qty
lp_qty_o " Qty received
lp_meins." Base UoM
CONSTANTS :
c_plant_stock TYPE atpds-delkz VALUE 'WB'.
Structure to hold ATP Controller: Control Parameters
DATA: BEGIN OF gwa_atpca.
INCLUDE STRUCTURE atpca.
DATA: END OF gwa_atpca.
Table to hold ATP: Requirements to be Checked/Considered
DATA: BEGIN OF git_atpcs OCCURS 0.
INCLUDE STRUCTURE atpcs.
DATA: END OF git_atpcs.
Table to hold ATP Server: ATP data for display
DATA: BEGIN OF git_atpds OCCURS 0.
INCLUDE STRUCTURE atpds.
DATA: END OF git_atpds.
Table to hold ATP Server: Material Table
DATA: BEGIN OF git_atpmat OCCURS 0.
INCLUDE STRUCTURE atpmat.
DATA: END OF git_atpmat.
Populate GWA_ATPCA
CLEAR gwa_atpca.
gwa_atpca-anwdg = '8'. "Calling App - Explaination
gwa_atpca-azerg = 'T'. "ATP Display Result
gwa_atpca-rdmod = 'A'. "Read Mode - Totals
gwa_atpca-xenqmd = 'N'. "Do not read Blocks
Populate GIT_ATPCS
CLEAR git_atpcs.
REFRESH git_atpcs.
git_atpcs-matnr = lp_matnr. "Material
git_atpcs-werks = lp_werks. "Plant
git_atpcs-kdauf = lp_kdauf. "SO
git_atpcs-kdpos = lp_kdpos. "SO item
git_atpcs-prreg = 'A'. "Checking Rule for Avail Check
git_atpcs-chmod = 'EXP'. "ATP: Check mode
git_atpcs-delkz = 'VC'. "MRP element indicator
git_atpcs-bdter = sy-datum. "Requirements date for the component
git_atpcs-xline = '1'.
git_atpcs-trtyp = 'A'. "Transaction type - Display
git_atpcs-idxatp = '1'.
git_atpcs-resmd = 'X'. "Mode for Results of Check - Proposal
git_atpcs-chkflg = 'X'.
APPEND git_atpcs.
CALL FUNCTION 'AVAILABILITY_CHECK'
TABLES
p_atpcsx = git_atpcs
p_atpdsx = git_atpds
p_atpmatx = git_atpmat
CHANGING
p_atpca = gwa_atpca
EXCEPTIONS
error = 1
OTHERS = 2.
CHECK sy-subrc EQ 0.
READ TABLE git_atpds WITH KEY delkz = c_plant_stock. "'WB'
IF sy-subrc EQ 0.
Get the Base UoM
READ TABLE git_atpmat WITH KEY matnr = lp_matnr.
IF sy-subrc EQ 0.
lp_meins = git_atpmat-meins.
ENDIF.
Quantities
lp_qty = git_atpds-qty.
lp_qty_o = git_atpds-qty_o.
ENDIF.
ENDFORM.
Similar Messages
-
Forecast Consumption in SNP for Make-to-Order products
We are working on using APO-SNP for Make-to-order products (PlngStrategyGroup = "81" in R/3). We want to achieve normal forecast consumptino on FinishedGoodLevel and generate PlndOrders which shall derive component demand for purchasing (such PlndOrers wont be released to production - they should only function as demand driven on component level)
What we have done so far: Forecast in APO-DP on Finished good level exists and has been released to SNP. The product gets "ciffed" from R/3 into APO material master with planning strategy group "20" (which is basically "make-to-stock") --> we were hoping this would allow us to use "normal" forecast consumption but nothing happens (FCST is not being consumpted by open Sales orders). Within the product view of such products APO is still "realizing" that this is a make-to-order product.
Any other ideas / thoughts what could be done to achieve "normal" forecast consumption on FGI level for make-to-order products in APO-SNP ?
Tks !I checked in /n/SAPAPO/RRP3 (Product View), unfortunately only FC exists there
Seems that the open Sales Orders from R/3 are being created within another segment (the "element" Tab of RRP3 shows 2 segments:
1) "Make-to-stock" (which contains the FC)
2) "Make-to-order" (which contains the Sales Orders)
That might explain the issue I see (FC and SOs are in different planning segment --> no consumption). Reading about planning segments in the help sounds like I need to find a way to bring Sales Orders for Make-to-Order products into the Make-to-stock segment ... jus a thought .. any idea how to do this ? Does that mean I need to modify the CIF for Sales Order transfer for Make-to-order products ?
Tks
Thomas -
Condition P101 for make-to-order
For stock transport orders, you can use condition type P101 to pull the standard cost of the shipping plant into the purchase order. Is there a similar condition type or routine that can be used for make-to-order product where we can pull the value from the EBEW table of the shipping plant?
thanks,Hi,
For transfering sale order stock to sub-contractor the movement type is 311-E. Here, you have to create the sub-contractor storage location & then transfer the stock (of BOM material) to sub-contractor storage location by movement type 311-E in transaction MB1B. While posting GRN of the upper material, system posts the consumption of the BOM material against the upper material.
Hope this works.
Regards,
Prashant
- Reward points if answer is helpful -
Item category determination for make to order item
Hi experts,
how can I determine item category(tak) for make-to-order. mean what should I put in ITEM CAT.GRP, USAGE AND HIGHER LEVEL ITEM CATEGORY GROUP. Please advice.
Thanks in advance.Neel,
Goto VOV4 and create new entry with
your sales doc type + itm cat group + usage + higher leve item cat = TAK
Just check your item cat group in material. If you have created TAK without copy then also check your SL assignment with VOV5.
Suhas -
Customer return for make to order material
Dear All,
I am doing return process for make to order material.
while doing return delivery, delivery qty has not come.
when i enter it manually it shows error
Only 0 NOS of material ABC001 available
Message no. VL150
Can anyone tell me the solution for this................
Thanks in advance.............
BabsDear Babs,
Pls go thru following thread:
https://forums.sdn.sap.com/click.jspa?searchID=20199089&messageID=5745458
Regards,
Abhee. -
Serial Number assignment in Delivery Note for Make-to-order
Hi experts,
In our current design, we have made it obligatory to enter the serial number in the delivery note for make
to order stocks.
We are also implementing PP and we would like to capture
the serial number specified in the production order and
automatically populate the serial number in the delivery.
Any suggestions on how I can do this is greatly appreciated.Hi Karun,
Thank you for your kind advice all the time.
I have been looking into it but the LIPS structure does not contain the serial number field...
I have been looking for the routine in the copy control
but have no luck finding such routine...
Thanks for your continuous help and assistance. -
Explanation on use of Strategies for Make to Order/ Make to stock scenario
Hi Gurus,
I have a scenario. In the BOM, the final Finished Product was to be made for make to order. There are two semi finished material below that. One I want to use it for make to stock and another for make to order. There is one more raw material at the bottom level which I want for make to stock. So I want to know what are the strategies I can use in the material master at all the levels for this scenario. Can anyone explain how can I do it in SAP?
Regards,
BrijeshDear Brijesh,
This indicator will determine the component how it should get produced either individually or collectively
Example
Fert 1 - strategy 20, requirement for this fert Via sales order is 10
Fert 2 - strategy 40 requirement for this fert Via sales order/demand management is 10
ROH is used in both Ferts and mainatined in BOM and also set to indicator 2 ( Colletive ) in MMR
ROH requiement for fert 1 -1 ( BOM )
ROH requiement for fert 2 -1 ( BOM )
after MRP system will create only 1 PR for total qty 20
If ROH is set to 1 ( individually ) then
after MRP system will create 2 PR's as 10 each
Hope it answers your query
Regards
Madhu -
Material Training of AC520 (Controlling for Make to Order/Stock Production
Hi,
Is there anybody have the documentation (beside from SAP Doc) or training material of AC520 (Controlling for Make to Order/Stock Production ) ?
I really need it urgently.
ThanksHi,
I got the training material for other than AC520. Send me message to [email protected]
regards, -
Invoice Correction Requests for Make to Order
Dear Gurus
I am creating an Invoice Correction Request for an Invoice which was generated for Make to Order material. I am using Document type RK . I can save Invoice correction Request. But when I generate a Credit Memo it gives message that
000010 "Create billing document" not allowed (Sys. status Cost, object VB0060000100000010)
000020 "Create billing document" not allowed (Sys. status Cost, object VB0060000100000020)
It should not ask for costing here in Credit memo Request.
Even if I do costing for Line 20 it copies only Line 20 in Credit note which gives wrong calculation. Because I cannot change line 10 in Invoice Correction Request.
Pl can you advise whether costing is required in Credit memo request. If not how can I handle this scenario.
Regards,
Neeraj SrivastavaHi,
Just check if you attached status profile to either your sales order header or item.
Just release that first and try again.
Let me know if it helps.
Regards
Ravi -
User Steps for Make to Order & Make to Stock
Hi Sapians,
Please guide me as to the users steps to be done in product costing for make to order & make to stock.
Regards,
Viki
Moderator: Please, read the rules of SDN before posting. You can search for Wiki material or explore help.sap.com for basic process descriptionHi there,
Make to order is when you manufacture or procure the material only upon order. Stocks are not maintained for those items in the storage loc. As & when the order comes, a production run is triggered through MRP. After the production, stock is posted as reserved sales order stock. Stock is then made available to fulfill the delivery.
Other items are make to stock. Usually for fast moving or consumer goods, stocks are always mainatined in the plant storage loc. As & when the order comes, availability check is done. If stock is available to meet the delivery date, delivery is proceesed or a confirmed delievry date is proposed basing on the replenishment lead time in availability check.
Regards,
Sivanand -
Mrp for make to order scenario
hi gurus,
I have got a different and challenging scenario in make to order planning. production planning has to be made on sales order basis.for eg : a particular finished product, a sale order of 100 nos is generated. but all 100 nos cannot be produced in single plant. so it has to be distributed to 2-3 plants. one more thing is, for make to order scenario, there is no fixed lot size. based on sale order quantity, planned order is created irrespective of fixed lot size maintained in material master. IF my batch size is fixed, for make to order also based on fixed based size, planned order has to be created.
Can anybody suggest a better solution for this scenario?
Thank you all in advance. all useful replies will be rewarded.
regards,
senthilHello,
For MTO, Lot for Lot order quantity is defaulted..
So your receipt element will be as per your Sales Order.
Try this:
In T. Code : OMI4, for Lot Size : EX
Change the MTO Lot size to "1" Lot-for-Lot with rounding.
(Which is Blank by default - lot-for-lot)
Maitain the Rounding Value in MRP-1 Screen or Use Rounding Profile..
This Helps..
Regards,
Siva -
What are configuration steps in implementation for make to order?
please give the steps for normal production also.
Hi,
Below is the requested info:
Make-to-Order (MTO) Production
Purpose
The planning strategies explained in this section are designed for the production of a material for a specific individual sales order. In other words, you do not want to produce finished products until you receive a sales order. This means that make-to-order strategies always support a very close customer-vendor relationship, because your sales orders are closely linked to production.
The same relationship exists between the sales order and production that exists in a make-to-order environment. Make-to-order is also used in the following environments.
Production using variant configuration
Assemble-to-order
Prerequisites
Choose a make-to-order strategy, if:
The materials are segregated. In other words, they are uniquely assigned to specific sales orders.
Costs must be tracked at sales order level and not on material level.
Make-to-order strategies should always be combined with lot-size key EX (lot-for-lot. Rounding values should not be used. If you maintain rounding values, they have no effect due to the make-to-order properties of these strategies.
Process Flow:
There are extensive options that enable you to procure components especially for specific sales order items.
You may, however, want to use a different planning strategy to procure components without sales orders. This allows you to keep your replenishment lead time to a minimum. You can do this by:
Planning on the basis of the finished product (see Planning Without Final Assembly (50) or Planning with a Planning Material (60))
Planning at component level (see Strategies for Planning Components)
Using consumption-based or Kanban-controlled components
Customer stock can exist on any BOM level. See Stockkeeping at Different BOM Levels for more information.
Because production is closely linked to sales orders, this results in a customer section in the stock/requirements list.
Unplanned goods receipts (such as returns) cannot, as a rule, be used for other sales orders, even if they are in working order, unless they are adapted to meet a customer's needs.
In the basic make-to-order strategy, Make-to-Order Production (20), no specific product structures are required. This means that it does not matter if the material has a BOM or not. The material can be produced in-house, or it can be procured externally. No planning is involved in this strategy.
Planning Without Final Assembly (50) and Planning with a Planning Material (60) do require a specific product structure (i.e. a BOM, which means materials are always produced in-house). These planning strategies assume that you want to plan procurement (production or purchasing) of your components by planning the finished products. This means that you need to have a fairly stable demand for your finished products. If, however, you can plan more easily at component level than at finished product level, see Strategies for Planning Components.
Configuration Settings:
Create material master by maintaining general item category group- 0001(make to order)
Availability check - 02
Transportation Group - 0001
go to va01 and raise sales order
item category:TAk
Schedule line category : cp
Requirement type KE
Requirement class 040
Check TOR and avalability check
special stock : E
VOV7
of TAK
billing relivence : A
Pricing :X
go to mb1c
maintain stock with a special stock indicator E
mavement type 61
Special stock E
specify sales order number line item number and saveit
go to VL01N main data
Go to VF01
save it
Thanks
Ram -
Planning run for make to order strategy
Hi,
I am trying to run the complete planning cycle for strategy group 20. But i am unable to do so. Can u please give me a detailed description on the same.
P.S. I did the planning run for strategy group 10, that is , making a plan and converting to active plan etc.
But unable to run for strategy group 20.
Please look into the same.
Br,
GeetuHi Geetu
Make to Order Means :
Produce/ Procure the material for this Sales Order (----
Strategy Means :
Effe. procedure/plan to execute Requ.
Advantages of Make to Order :
Reduce the Inventory
Reduce the Cost
Flexible to Customer Requirements
MAKE to ORDER STRATEGY 20
(Pure make to Order)
===============================================================================
u2022 Production & purchase are triggered by Sales order receipt
u2022 System will not perform net requirement calculation between individual sales orders
u2022 Produced quantities canu2019t be switched between one sales order to other
u2022 System creates individual planned orders against each sales order recd. With ref
u2022 Individual & collective requirement indicator controls the level up to which MTO is applicable
u2022 Goods Issue against the sales order reduces the requirement
u2022 System manages the production & procurement costs specifically for each sales order in settlement order
u2022 Lot for lot order qty, is the default lot size followed in MTO, irrespective of the settings in MRP1
==================================================================================
Create a material(MM01) with Strategy Group :20 ( MRP3)
You can check & confirm all those properties by creating a Sales Order (VA01)
See the effect of it after running the MRP ( MD02),
Check the Results in Stock Requirement List ( MD04)
Also, check the stock level of the same material before the Sales Order &
after the Sales Order
If possible, Create One more Sales Order &
see how the quantities of the individual sales Orders are managed.
You can verify all the prosperities of Make to Order (Strategy :20) by yourself
Hope this may Help
BRSR -
Schedule line disappears for Make to Order Item
Hello,
In make to Order process, there are 2 schedule lines created, while creating the order in VA01 transaction.
But when i save order and see it change mode (VA02), only one schedule line with 0 quantity confirmed for the requested delivery date is seen. the order schedule line with 120 confirmed quantity for the futhur delvery date disappears.
Can some body please comment why this is happening. I am not able to understand this.
Will this schedule line be created after MRP run. I have also executed MD02 for MRP run, as well as created the planned order to Production order. But still the second schedule line is not getting created which was seen at the time of creating the order.
Regards
PrashantANy updates on this Thread............
-
Overdelivery shipping for make-to-order production
Hello,
I have the following business scenario example:
We have a make-to-order production of carton boxes.
A customer places an order for 1000 UN.
Production is always planned with an overdelivery tolerance so the actual produced quantity for that particular order is 1050 UN.
The customer allows an overdelivery of 10% so it should be fine to ship the 1050 UN.
When I create the outbound delivery, the system creates it for the exact sales order amount: 1000 UN, even though there are 1050 UN produced for that order and item. So right now, the user has to manually modify the delivery quantity to match the actual stock.
Is there a standard way of configuring the system so that in the delivery creation the system selects the entire produced quantity (respecting the overdelivery tolerance)??
Do I need a user exit for this? In that case, which one should I use and what would be the logic for it?
Thanks for your help!Hi,
Unfortunately there is no easy way to influence delivery quantity in delivery processing by user exit or customer function.
At creation of an delivery FORM USEREXIT_BATCH_DETERMINATION in include MV50AFZZ would be the best option to influence the delivery quantity. Despite the name of this user exit it could be used for changing normal items as well and the main advantage of this user exit is that the ATP check is done afterwards.
If you change the delivery quantity please be aware that you have to ensure the consistency of all delivery quantity fields at item level (LIPS-LFIMG, LIPS-LGMNG, LIPS-LFIMG_FLO, LIPS-LGMNG_FLO). You could use FORM LIPS_QUAN_SET (Include FV50XFLP_LIPS_QUAN_SET) to synchronize all the quantity fields.
Regards,
Harry
Maybe you are looking for
-
I cannot open pages. The message says, can't open pages while being updated. I did not knowingly update anything. The program is stuck in this mode. can you help?
-
My power adaptor doesn't light up when i've plugged it in
I followed to guide to cleaning it but i still haven't had any luck. I left the power adaptor out of the computer for three days so i don't see what could have happened to it. Any help would be appreciated Macbook Pro Mac OS X (10.4.8)
-
Disk Utility doesn't show new drive when trying to install Snow Leopard
Please help because I've searched everywhere. My MacBook's hard drive failed. It's done for. I bought another internal, Western Digital 320gb WD3200BEVT. So it's brand new and when I boot from the Snow Leopard install I don't see the new hard drive i
-
Neither MP Navigator Ex nor Image Capture work with OS 10.7.3. Why?
I just bought a new Mac Book Pro, and can't get MP Navigator Ex or Image Capture to work. I have a Canon Pixma MX 340, so I downloaded the 3.1 MP Navigator verions that was reccomended to replace the MP Navigator that was on my computer also 3.1).
-
The Sg300 is currently in L3 mode Why is it that only 3 IPv6 interfaces are being allowed? No where in the device specifications or in the documentation did I ever see this limitation when I purchased the switch!