on 03-13-2012 3:29 PM
Hi experts,
Does anybody know a user exit that I can use to limit the aplication of availability check just in some Sales Document Types or Sales Organizations?
I'll appreciate any information regards this matter.
Best Regards,
José
The three flags which can turn off availability can be found in the following transactions:
> OVZ2: Here you can switch on the indicator "No Check". This is assigned to the checking group of the material master.
> OVZG: Here you can not select the "Availability" indicator. This is assigned to the requirements class or the requirements type of the order.
> VOV5: Here you can not select the "Availability" indicator. This is assigned to the schedule line caetgory.
None of the above settings are dependent on the sales order types. Therefore, the possibility of using a customer exit may need to be explored. EXIT_SAPLATPC_001 is a customer exit called before the availability check is actually executed. The internal structure p_atpfieldx is passed to this exit. This structure should contain the following entry (When called via a sales order)
DELNR | |
DELPS | |
KFDNA | AUART |
VALUE | TA |
It may be a possibility for you to develop some custom code around this structure. For example, you could search for the entry of table p_atpfieldx where KFDNA = AUART (Order Type). For that entry, check the contents of the VALUE field (Order Type). Then have a logic somehing like this: If VALUE = 'TA' THEN CLEAR P_ATPCSX[]. p_atpcsx is the other structure passed to the customer exit. It contains the relevant information to be passed to the availabiltity check (For example, checking rule, requirement date, requirement qty etc. ). If the information in this structure is cleared, then the system will not continue to execute an availability check. p_atpfieldx also contains a KFDNA entry for VKORG (Sales Org.) as well so you may want to incorporate that into any custom code too.
Hope this may help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Not clear with your requirement but you can try with USEREXIT_AVAILABILITY_IN in program RV03FVZZ
G. Lakshmipathi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It would be better if you control this availability check at material level or schedule line level,instead of going to enhancement.
Regads
Ram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
97 | |
11 | |
11 | |
6 | |
6 | |
4 | |
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.