CO09 and BAPI_MATERIAL_AVAILABILITY for ATP Check
Hi all,
On R/3 4.6c...
I am trying to find if there is a BAPI or funciton module out there which I can use to get the material availability (ATP quantity) as per the results of CO09.
I looked at BAPI_MATERIAL_AVAILABILITY but the BAPI only accepts the checking rule. This does not have a switch to check with requirements. On CO09, there is a check box which allows us to check with requirements or not (With reqmts quants).
For my ATP check, I would like the system to assume that the total requirements quantity is taken into account during the availability check, rather than the quantities that have already been committed.
This is required for a system to system call hence the need for a BAPI or funciton module.
Thanks for any help!
Fred
Hi,
You can get the ATP quantity by using function module 'AVAILABILITY_CHECK'.
ls_atpcsx-matnr = lt_ekpo-matnr.
ls_atpcsx-werks = 'D001'.
ls_atpcsx-prreg = '01'.
ls_atpcsx-lgort = 'CS'.
ls_atpcsx-idxatp = '1'.
ls_atpcsx-chkflg = 'X'.
ls_atpcsx-bdter = sy-datum.
APPEND ls_atpcsx to lt_atpcsx.
clear ls_atpcsx.
CALL FUNCTION 'AVAILABILITY_CHECK'
TABLES
p_atpcsx = lt_atpcsx
EXCEPTIONS
ERROR = 1
OTHERS = 2.
IF sy-subrc = 0.
READ TABLE lt_atpcsx INTO ls_atpcsx INDEX 1.
it_result_cspo-atpqty = ls_atpcsx-atpm1.
REFRESH lt_atpcsx.
clear ls_atpcsx.
ENDIF.
Similar Messages
-
3rd party process using product allocation for ATP-check
Hi all,
is there anybody out there who can share experience in setting up the 3rd party process using product allocation on APO for ATP-check? As the documentation is not that impressive any help is higly appreceated.
Thanks
MichaelThis will not be correct forum to reply to your query.
Still, try following Hyperlink for some understanding,
[Third-Party Order Processing by Product Allocation|http://help.sap.com/saphelp_scm70/helpdata/EN/7c/2b7941601b030de10000000a1550b0/frameset.htm]
Thanks & Regards
JP -
Hi all...Is there any existing ABAP routine which does ATP check (material availability and allocation check) ??
fm 'BAPI_MATERIAL_AVAILABILITY'
BR< JAcek -
Warehouse blocked for ATP Check
Hello Everybody.
I need create a warehouse with the characteristic that the stock in this warehouse must not be considered in the ATP check.
Where I can customize this characteristic?
Thanks in advance.Silvia,
Warehouse management has nothing to do with ATP check. ATP check works at IM level only, please control it through SLoc.
- you can use SLoc MRP to exlude SLoc from planning and ATP check
http://help.sap.com/erp2005_ehp_04/helpdata/EN/f4/7d2d2644af11d182b40000e829fbfe/frameset.htm
- you can exlude ceratain stock types from ATP check - see SPRO > Sales and Distribution > Basic Functions > Availibility Check and Trnasfer of Requirements > Availability Check > AC with ATP Logic or Against Planning > Carry out Control For Availability Check (OVZ9)
- you can use MRP area
http://help.sap.com/erp2005_ehp_04/helpdata/EN/c4/106956ae8a11d1a6720000e83235d4/frameset.htm
Regards,
Csaba -
Hi All,
kindly suggest some bapi for material ATP check.
ThanksSearch the forum - it's been discussed many times. A basic SE37 search or BAPI search would also give you the answer...
-
Function Module for ATP Check specific to BATCH
Hi All,
I have a requriement where I need to find the available stock for a material for a given plant and most importantly BATCH.
I tried using BAPI_MATERIAL_AVAILABILTY, but it returns the overall stock avaliable at the plant level irrespective where I mention the BATCH. In other words I can SEE in MMBE that the for the BATCH there is no UNRESTRICTED STOCK , however when i execute the Function module It shows me the total stock availabe at the Plant .
Please let me know if there is any fm that caters to my requirement.
Thanks
SrinivasHi Srinivas,
Can you please elaborate the solution?
Regards
Ankush -
Please, stopped purchase ...
No one here can do anything.
We are all itunes users just like you.
Click Contact Us at the bottom of the page to contact Apple. -
Hi APO Gurus
I have a problem here. When I am trying to create a sales order and try for ATP check, ATP check is not happening. I have checked the allocations also. Allocations are plenty in the planning book for the selected delivary week (material and sold to party combination).
I am getting a message "Product of item 000010 not allocated". And also I have checked for other materials, ATP check is happening. For few materials ATP is possible and for few ATP check is not possible with the mentioned message.
Request you to provide your inputs to solve the problem.
Regards,
RaghavaHi DB49,
Appreciate your reply for the post. But I have checked ur both suggestions, there are allocations still leftover for the material + customer combination in the allocations planning book. And also the allocation procedure is maintained in product master /N/SAPAPO/MAT1. The ATP check is working for few materials and not working for few materials. So I have compared the master data of the both kinds of materials.
Still the problem persisits. After some amount of research I felt there must be some problem with the triggering of Function Modules related to the ATP check. Can this be a problem.
Request to provide your suggestions.
Regards,
Raghava -
ATP Check for service parts and procurement scenario
Dear Experts,
We're testing CRM service scenario, focusing on the ATP check.
After running the avaiability check for the service parts in the service order,
is it posssible to determine the scenario automatically as follows?
- when the necessary parts items are not available
-> "Procurement" scenario will be used.
The corresponding documents such as PO, PR or Reservation will be generated in ERP according to the setting "Define Logistics Scenario for the Procurement of Materials and Services".
- when the necessary parts items are available in stock
-> "Material withdrawal" scenario will be used. The items will be withdrawn at the service confirmation.
From our understanding, the determination of the above scenario is controlled by the item type(ex.SRVP),
so we expect that the system sets the appropriate item type depending on whether the item is available or not.
Is there any possible solution for this?(i.e.standard customizing, BAdI etc....)
Any advice would be higly appreciated.
Best regards,
F.T.Hi F.T,
I have worked in Service Order Management Scenario, but not integration of Service Orders for ATP Check. But I found this Presentation which I hope might be somewhat helpful regarding the feasibility of the Business Scenario. You can have look at the same and will be able to decide if this is the correct way forward or not.
[Presentation|http://www.google.co.in/#hl=en&biw=1366&bih=548&q=ATPCheckforservicepartsandprocurementscenarioinSAPCRM+++&aq=f&aqi=&aql=&oq=&gs_rfai=&fp=a254323013e5943b]
Hope this will help.
Thanks,
Samantak. -
ATP Check: R/3 and APO
Hi All,
My Query related to an Earlier Post (GATP: Unable to check ATP (in GATP) when creating sales order in R/3).
I would like to change the settings for ATP Check from APO system to R/3, I.E, the ATP Check for Business Rule should be triggered in R/3 and not in APO.
In the earlier post, inputs were provided for the following:
- Activation of ATP in external system: this is done in SPRO in the data transfer section.
- Another common point is cheking rule: In SPRO see that your business event(SO) is enabled for ATP check.
As per my information, the 'ATP Check' tick is possible at the level of Checking Group and Schedule Line Category in R/3
Could someone please provide inputs as to where in SPRO can we check the above 2 points mentioned?
regards,
SudhirHi Sudhir,
The following are the points where changes are required for ATP check in APO.
The presumption is that there already is a active CIF connection.
1) MRP type of the material has to be 'XO'
2) Define an integration model for ATP checks of those materials.
3) Define Checking Group. SPRO -> S&D -> Basic Functions -> Availability Check -> Availability check with ATP logic.(Here you define 02 - individual requirement)
4) Define Check Control: the path is same. (Note that the combination of 02 & A is added)
5) Define Requirement Class: the path is same. Here you put the availability check tick. Use 050 & check availability check & transfer of requirement for them.
6) Next you define procedure for the schedule lines.( hope this is what you were looking for.
7) Go to SPRO -> integration with other SAP components -> APO -> Basic settings for data transfer -> Change Transfer -> Change Transfer for master data -> Activate change pointers Generally and tick it.
You are now ready to for ATP of SOs from R/3 in APO.
All setteings required in APO for GATP is clearly mentioned in APO help docs.
Sure it will work for you.
All the best
Regards
Santanu Dawn -
Block the ATP Stock for non-ATP checked items in BOP
Hello GATP Experts,
We have a strange and interesting scenario here with STOs. Let me explain step by step
1) We don't do ATP check for STOs and hence a Z-check mode has been designed and it will be considered for STO documents
2) Now, let us consider a situation where I have a stock of 100 CS for Material M1 at Plant P1.
3) Let's say, a STO document gets created at 09:00AM in the morning with requested quantity 50 and as it doesn't do ATP check this will be fully confirmed
and consumes 50CS of the stock.
4) So, the net cumulative quantity that is available is 50CS.
5) At 11:00AM,let us say; there is a sales order that was created for a quantity of 100 CS. As the sales document does the ATP check it consumes the only available 50 CS and gets saved with partial confirmaiton situation.
Now, at 12:00 PM - We are running the BOP. When we run the BOP ; what standard SAP does is STO document (as per our business scenario, STOs has higheest priority and they fall on top of the list) gets skipped due to non-ATP check mode and full stock is allocated to the sales order which makes no sense to us which leads to over confirmation situation.
We thought of exluding the STOs from BOP ; however - we end up in not re-scheduling the STO documents which would result in requiring a separate BOP to be run for the STO documents.
FYI - We have contacted SAP and they have confirmed that the above mentioned behavior of the BOP is as designed and it cannot be changed.
Is there any alternative solution for this ? Appreciate your valuable ideas.
Thanks
Babu KilariYou might have already considered this. pardon if this sounds dumb.
see if you can pass STO's as a receipt in the scope of check for STO's. I presume it is requirement element in your case for ATP checking rule for STO's. Don't include these STO's in sales order checking rules.
This may result in inconsistent ATP logic though. Alternately try creating a Z category for STO and call it a receipt. include this also in the scope of check for STO's.
Try running BOP and see what happens. BOP on its own is not a gurantee that a requirement is always confirmed over another, whatever be the sorting criteria. If there isnt enough stuff, the system has its own internal logic of sorting too which probably treats priority by time of creation of the requirement.
Publish if you meet any success. These ideas are just based on my fancies
Guru -
Same dates for GA and GR in ATP
Hi All,
This is my very first post. I have a situation where for an Inbound delivery. I should have 2 days difference in Goods arrival and goods receipt in plant. For some reason system is showing the same dates for Goods arrival and goods Receipt. Can someone help me what all tolook for?
Many thanks
YSATO Items/ Models have significant complex requirements and behavior when ATP check is called. While this is handled appropriately in ATP from OM interface, direct ATP Inquiry either from APS responsibility or similar form in OM--> Scheduling menu option.
I'll highly suggest not to use either of these ATP Inquiry forms for anything related to CTO (ATO, PTO etc) and only use OM UI for such availability checks. This is by design unless Oracle makes significant changes to how these forms are built, please note there is no configurator support from these 2 forms for similar reasons.
Thanks
Navneet Goel -
ATP Check include in MRP and Exclude on Process order
Dear all,
We have a situation if we include reservations, deliveries and dependent requirements in ATP check in OPJJ, the system behaviour is that it includes all of them during MRP run. On process order level if we perform ATP check the system shows that all materials are available as it includes the dependent requirements and deliveries as well. we want to exclude dependent requirements and deliveries from ATP check on process order level so that it can only consider the quantities that are available in stock. and system will block the release of process order in case of short fall. as system includes dependent requirements and deliveries as well it always shows the msg that all material are available. Plz help and reply soon...... any suggestions or work arounds are always well come ..............Hi
as i understand from ur question u dont want to considered dependent requrement and delivaries for
this go to t code OPJJ and do not select dependent requrement and delivaries tick.
after that go to t code OPJK and select material avalability as -03-No creation if material is missing
hope this will help u
regards
sachin -
ATP check for component materials
Hello experts,
The ATP check was initially designed for a kitting process. BOM Material would be kitted in the distribution center(DC) and sent to a garage. Sales orders are created with BOM materials for a garage and there is a multi- level GATP process in place. Since BOM materials do not exist at a garage the check would be performed at a DC for components after BOM explosion. The existing configurations in R3 and APO are for a make to order process(Strategy group of 50 for BOM's and 40 for component).
We are now introducing new materials for an existing material and have the need for product substitution on the sales order, if the existing material is out of stock at the DC. To enable this functionality we are having to perform an ATP check for the sales orders at the distribution center, though the sales order is created for a garage. To improve on the response times during the ATP check our design approach, is to convert the BOM materials in the sales order to component materials with material determination(one BOM material is tied to one component material) and performing the ATP check with components at the DC.
While testing we are facing the following issues:
1)Sales order placed on a garage is substituted with the DC after product substitution. This does not occur when product substitution is carried out with BOM's.
2)During the order create, the ATP checks for check mode u201845u2019 and business event u2018AEu2019 for a given material in a DC shows zero stock. While for the same material,location and business event AE the product availability check in APO reflects stocks available.
Is it feasible to do ATP checks for component material in a sales order which was initially designed to work with BOM materials? Am I missing some configuration settings in either APO or R3?
Regards,
Anil DeSouzaHi Anil,
Yes it can be done.
1) For finished product & garage combination -
activate RBATP in the check instructions.
2) in the location substitution maintain 'location determination sctivity'. Here you maintain different check mode & business event -- ( this is nothing but check instruction --- in thsi you maintain 'MATP').
Hope this anws your first qus.
To addressing your 2nd question....follow below steps.
1) Do ATP from sales order, get onto results screen, click on product availability & check for 'scope of check' (check control) and look for the stock types that are included. Based on this your receipts are consdiered for ATP confirmation.
Best Regards,
Deepthi -
Hi Experts
Can we perform check against deliveries in APO GATP?
What are the prerequesites to perform ATP check against deliveries.
In scope of check we want to select production orders which are in released status.
Please give your inputs.
RegardsPreetam,
After creating the supporting configuration, APO ATP checking is thereafter 'turned on' by creating and activating an ATP integration model in the ERP. Generally, it is done by material/plant combination. Therefore, if you turn on ATP checking for Sales orders, you also turn it on for all other types of docs (including deliveries) for that particular material/plant combination.
I hope you have thought out this whole process. The main reason for using ATP checking in APO is that APO has a richer suite of ATP solutions. If your business requirements are satisfied by the ATP checking in ERP, then it makes no sense to spend the money to implement ATP in APO. Your original issue had to do with making released production orders relevant for ATP for deliveries. If this is the only new requirement, then this can easily be managed in ERP. OVZ9>select your Availability check, with checking rule B (deliveries). Under "incl production orders" select 'F'. From a business perspective, this means that some of your deliveries will be created without stock on hand, and therefore will not be immediately shippable. You need to make sure that this process change is integrated throughout your warehouses.
And, to your final question. If your delivery item category(s) are already relevant for ATP checking in ERP, they will also be relevant for ATP checking in APO. Since deliveries do not use RBA, you do not have to worry about adding new ERP delivery item categories for the conversion to APO ATP checking. Most commonly in APO, one uses only the 'product check' (similar to the standard ERP ATP check) for deliveries.
Rgds,
DB49
Maybe you are looking for
-
How to find the country of purchase of iPhone 2G?
-
Dear Friends, I have a list of MM documents for 101 mvt. I need to find out whether for these particular GRN's subsequently 102 mvt was done or not. Please advice. Regards Mukesh
-
so I get my nice shiny new ipod 80GB But Whats This? no charger in the box? (the last ipod I bought came with one?) so check the website and it's gonna be another £19 for the mains wall charger, ok I think, bit of a pain but I suppose I'll have to bu
-
How to produce image map with java servlet?
Hello, I know the way to produce an image map from a static image. And I also know how to use ServeltOutputStream to generate an image on the fly. But I don't know how to use the dynamically generated image to produce an image map. Can anyone help me
-
No se pueden ver los archivos adjuntos al correo
Ayuda. Como lo indico en el asunto. No se pueden ver los archivos adjuntos al correo. Esto sucede desde la última actualización de iOS 8. Cuando tenía ios 7 si se podían ver. Solicito su ayuda. PD. Ya he restablecido los ajustes. Pero continúa igual.