cancel
Showing results for 
Search instead for 
Did you mean: 

Limit Availability Check in Sales Orders

Former Member
0 Kudos

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é

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member223981
Active Contributor
0 Kudos

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
KFDNAAUART
VALUETA

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.

Lakshmipathi
Active Contributor
0 Kudos


Not clear with your requirement but you can try with USEREXIT_AVAILABILITY_IN in program RV03FVZZ

G. Lakshmipathi

Former Member
0 Kudos

It would be better if you control this availability check at material level or schedule line level,instead of going to enhancement.

Regads

Ram