on 06-12-2007 8:31 PM
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
Hello Fred,
Were you able to figure out a Function Module for this ,I am also facing the same situation and would need a FM for it .
Thanks,
Tarun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tarun,
You are probably on a release that doesn't need to implement the program code changes. However, you need to implement the user exit as per the last line in the solution part of the note. You need to apply code in the user exit that sets CUSTOMER_TRTYP to 'H'. You should discuss this with your ABAPer. Once this is done, system should behave as you desire.
Hi Fred,
i assume your question is to take the requirement quantities and not confirmed quantities when you do ATP check
Please go to OVZ2 and check the usage of cumulation flag.
the field technically is V_TMVF-ONVBA.
Hope this solves your issue.
Regards
Sparsh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Sparsh,
You are right and these settings will work during the order creation/Order simulation and to verify that we can also check in CO09 T-code with or without using the "with reqmt quant" check box.
However there is no function module which can provide a similar result that of CO09 with requirement quantity check box checked in.
Thanks,
Tarun
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
100 | |
11 | |
10 | |
6 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.