on 07-31-2012 12:34 PM
Dear All,
I included purchase requisitions to availability check from customising. But also i would like to exclude the ones which are not released yet.
In standard SAP, all purchase requisitions are included in availability check. I can see them in CO09.
Is it possible to exclude purchase requisitions which are still waiting to be released ? Which user exit can i use for that ?
Thanks in advance,
Best regards,
Not sure about this suggestion, but can you try adding value X in the field Incl.rel.order reqs in OVZ9 and test? It looks this applies more to the release requisitions pertaining to stock transport orders.
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I dont see a possibility to achieve this. The purchase reqs are selected from ATP_EBAN in FORM EBAN_DB_READ (LATP2FE0):
I saw at the end of this form, there is a BADI:
SELECT *
INTO TABLE lt_atpeban
FROM ATP_EBAN
WHERE MATNR = ATPMAT-MATNR
AND WERKS = ATPMAT-WERKS
AND LOEKZ = SPACE
AND EBAKZ = SPACE
AND BSAKZ = BATYPN
AND PSTYP <> PSTYPS
AND SOBKZ IN R_SOBKZ.
The problem here is that FRGKZ (release indicator) is not part of the conditions that select purchase reqs. Furthermore, it is not part of the ATP_EBAN view from which the purchase reqs are selected throughout the form.
There is a call to a BADI at the end of the form which I though might be able to help. However, the usability for BADI_CHANGE_ATP_DATA states that it should only be used by SAP internally....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try with exit EXIT_SAPLATPC_001. This exit is called before ATP check
G. Lakshmipathi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I do not think this exit will help as it is called before the ATP check. However, the scope of check settings are accessed during the ATP check.
The exit is called here:
FM AVAILABILITY_CHECK_CONTROLLER
* User-Exit before check
CALL CUSTOMER-FUNCTION '001'
TABLES
T_ATPCSX = P_ATPCSX
T_ATPFIELDX = P_ATPFIELDX.
CALL FUNCTION 'AVAILABILITY_CHECK'
However, the scope of check settings are checked after this in form DATA_COLLECT_R3. P_T441VX is populated in this subroutine with the scope of check settings and the ATP check then proceeds to check availability accordingly. The following call stack reflects how DATA_COLLECT_R3 is reached:
SAPLATPC FORM DATA_COLLECT_R3
SAPLATPC FORM AVAILABILITY_CHECK_R3
SAPLATPC FUNCTION AVAILABILITY_CHECK
SAPLATPC FUNCTION AVAILABILITY_CHECK_CONTROLLER
You may need to modify the standard code [in FM STOCK_RECEIPT_ISSUE_READ] rather than use a user exit. You would need a very skilled ABAPer to start modifying this code though without ramifications...
User | Count |
---|---|
93 | |
11 | |
10 | |
6 | |
5 | |
5 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.