cancel
Showing results for 
Search instead for 
Did you mean: 

Availability check = KP (no check) System behaviour

kishorp
Participant
0 Kudos

Hello Team.

We have a material for plant ABCD for which availability check is set as KP in material master to avoid checks for the material in that plant.

However when order is created for the material in that plant, the Availability Control screen appears for the material in question?

KP has a checkbox in its config for "No Check"

Schedule line determined in the sales order has Availaibilitycheck/TOR deactivated.

OVZJ has option E selected for the concerned sales Area.

Not sure why the screen pops up ? The dialogue box also appears when we select the item and click on Item availability button.

tried to debug setting Breakpoint in Include LATP4FD5, Perform "dialogue_execute"

Structure APTCSX has values populated however P_TMVFX did not have any values populated, specifically the No check indicator set for Availaibility check KP.

Help/Inputs Appreciated!!

Accepted Solutions (1)

Accepted Solutions (1)

sez41
Active Contributor
0 Kudos

What is your landscape? A brand new client, a test client which might include some modifications in it, or a live system?

Did you check possible user exits which might influence expected system behaviour?

kishorp
Participant
0 Kudos

Its a live system which can have modifications, based on initial analysis i dont think there is a modification existing which will override the KP(no check) in material master and carryout an AV check for service item.

Former Member
0 Kudos

KP,

An unenhanced ATP does not check the material master for availability check, it checks the availability check that exists in the sales document.

What is the ATP check in VBAP-MTVFP in the sales document in question?

Best Regards,

DB49

former_member223981
Active Contributor
0 Kudos

Good suggestion DB49!

kishorp
Participant
0 Kudos

DB49,

VBAP-MTVFP for the material holds value KP.

Thanks,

KP

Answers (4)

Answers (4)

Former Member
0 Kudos

Hello


System does not carry out availability check if you deactivate the option either in sceduline category or in requirement class. If it still carries out availability check then please check with your basis team.

Is your system recently updated?

S. Satyajit

kishorp
Participant
0 Kudos

can you also provide your inputs?

I saw some of your posts deal with Availability checks.

Thanks in advance,

KP

former_member223981
Active Contributor
0 Kudos

If you are using "KP", then it is not logical that MNG02 = 0 on your example. MNG02 = 0 means there is nothing available which means that the system did check if there was an available quantity.

Things to check:

- In transaction OVZ2, ensure that "No Check" is ticked for "KP"

- set a breakpoint at the call to FM AVAILABILITY_CHECK in function AVAILABILITY_CHECK_CONTROLLER. Press F6 to execute this function. After this, check the values in P_MDVEX. Is MNG02 = 0 in this point? If not, then it is likely that you have a user exit that sets it to 0 after the system checks the availability.

kishorp
Participant
0 Kudos

What am I trying to do:

1. Opening sales order in change mode - select the item - and clicking on check item availability.

2. Before performing above action, I check the schedule line, 0 quantity is confirmed while required quantity is 1 hence I suppose MNG01= 1 & MNG02=0

Breakpoint at FM AVAILABILITY_CHECK is not hitting when clicking item availability.

Please note material is of type DIEN - service without delivery with availability check = KP

former_member223981
Active Contributor
0 Kudos

Can you set a breakpoint at form dialogue_display and copy & paste the call stack here?

kishorp
Participant
0 Kudos

Below is the stack

16

FORMDIALOGUE_EXECUTELATP4FD520
15FUNCTIONATP_EXPLANATIONLATP4U0293
14FORMMVERF_PRUEFENLV03VFMM427
13FUNCTIONRV_AVAILABILITY_CHECKLV03VU01100
12FORMMVERF_PRUEFENFV45VFMV_MVERF_PRUEFEN69
11FORMVERFUEGBARKEIT_PRUEFENFV45VF0V_VERFUEGBARKEIT_PRUEFE71
10FORMBESTAND_BEDARF_ABGLEICHENFV45VF0B_BESTAND_BEDARF_ABGLEI663
9FORMVBAP_BEARBEITEN_ENDE_VERFUEGBFV45PFAP_VBAP_BEARBEITEN_ENDE121
8FORMVBAP_BEARBEITEN_ENDEFV45PFAP_VBAP_BEARBEITEN_ENDE374
kishorp
Participant
0 Kudos

It seems the system is only carrying out scheduling (backward/forward) while stock allocation is not done for this item since it has KP in material master record.

Being a service item, it should be confirmed on RDD, however system is carrying out scheduling (backward/forward) and computing two schedule line since it cannot be delivered on RDD.

Because of two schedule lines when RDD is not met, MNG01 = 1 and MNG02 = 0, causing the Dialogue screen to come up.

Please add your valuable inputs and suggest best course of action.

Thanks,

KP

former_member223981
Active Contributor
0 Kudos

Is it your intention to generate requirements for this type of order? If not, ensure that in transaction OVZ8, the "Req" flag is turned off. Usually this would be turned off for the "CD" Schedule line category (which would be the standard CD line category for DIEN Material type). Can you check if the issue occurs when you de-select this option?

Also, what release are you on?

kishorp
Participant
0 Kudos

I am using CD- sched line cat. and the req and Av check is turned off in OVZ8 in my system.

SAP_APPL component  release 600

former_member223981
Active Contributor
0 Kudos

I am really not sure why the system is behaving like it is on your system. I have been unable to simulate the same on my system. If you set a breakpoint here:

SAPFV45V                   / FV45VF0B_BESTAND_BEDARF_ABGLEI
FORM        / BESTAND_BEDARF_ABGLEICHEN

* Einteilung relevant: aufhören, sonst nächste Zeile aus Indextabelle
     IF t459k-bedsd NE space AND tvep-bedsd NE space OR
        t459k-atppr NE space AND tvep-atppr NE space OR
        t459k-iconc NE space                         OR
        da_atp_lief NE space                         OR
        ( t459k-quota NE space AND
          tvep-quota NE space  AND
          vbap-kosch NE space )                      OR
        ( t459k-quota NE space AND
          tvep-quota NE space  AND
          da_atpcheck_in_apo = charx ).
       da_pruefen             = charx.
       IF t459k-atppr NE space AND tvep-atppr NE space.
         da_atp_check       = charx.
       ENDIF.




Does da_pruefen get set here on your system? If so, why? I.E Is T459k-bedsd = X, or is t459k-iconc = X etc.? We need to establish why this gets set da_pruefen gets set. The system will only proceed along your call stack if this is set.Based on what you have said so far,


IF t459k-bedsd NE space AND tvep-bedsd NE space OR >>>> Cannot be true

t459k-atppr NE space AND tvep-atppr NE space OR >>>> Cannot be true

t459k-iconc NE space >>>>>> Maybe true?

da_atp_lief NE space >>>>>> Should be true as we in an SO, not a delivery

( t459k-quota NE space AND
          tvep-quota NE space  AND
          vbap-kosch NE space )      >>>>>>> Maybe true?

( t459k-quota NE space AND
          tvep-quota NE space  AND
          da_atpcheck_in_apo = charx ). >>>>>> Maybe true???



Please check if a requirements class is determined for the sales order (VBEP-BDART / PLART should be filled if so). Then check if the above fields in the "Maybe true" category are selected. Do you want a requirements class for this material? I assume not.


If there is no requirements class determined, can you check if DA_PRUEFEN gets set in the above form?

phanikumar_v3
Active Contributor
0 Kudos

Is the plant determined at SO level is same Vs MMR(Sales:General/plant view)??

Pl confirm..

Phanikumar

kishorp
Participant
0 Kudos

Yes it is the same plant.

Just to add Perform "dialogue_display" is executed when the check for mdvex-mng01  NE mdvex-mng02 passes the code to the perform.


In  my case mng01 is 1 while mng02 is 0.

mng01 is Requirement quantity for availability check

mng02 is Committed Quantity

  IF NOT atpcsx-force_dia IS INITIAL     OR

            mdvex-mng01  NE mdvex-mng02.

            PERFORM dialogue_display.

          ENDIF.

        ENDIF.

      ELSE.

Lakshmipathi
Active Contributor
0 Kudos

Check your schedule line category configuration

G. Lakshmipathi

kishorp
Participant
0 Kudos

Schedule Line has AVCheck and TOR deactivated.