on 06-29-2016 3:10 PM
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!!
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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
Below is the stack
16 | FORM | DIALOGUE_EXECUTE | LATP4FD5 | 20 |
15 | FUNCTION | ATP_EXPLANATION | LATP4U02 | 93 |
14 | FORM | MVERF_PRUEFEN | LV03VFMM | 427 |
13 | FUNCTION | RV_AVAILABILITY_CHECK | LV03VU01 | 100 |
12 | FORM | MVERF_PRUEFEN | FV45VFMV_MVERF_PRUEFEN | 69 |
11 | FORM | VERFUEGBARKEIT_PRUEFEN | FV45VF0V_VERFUEGBARKEIT_PRUEFE | 71 |
10 | FORM | BESTAND_BEDARF_ABGLEICHEN | FV45VF0B_BESTAND_BEDARF_ABGLEI | 663 |
9 | FORM | VBAP_BEARBEITEN_ENDE_VERFUEGB | FV45PFAP_VBAP_BEARBEITEN_ENDE1 | 21 |
8 | FORM | VBAP_BEARBEITEN_ENDE | FV45PFAP_VBAP_BEARBEITEN_ENDE | 374 |
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
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?
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?
Is the plant determined at SO level is same Vs MMR(Sales:General/plant view)??
Pl confirm..
Phanikumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
Check your schedule line category configuration
G. Lakshmipathi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
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.