on 02-03-2011 12:23 PM
Hello,
I have two condition types in my pricing procedure that I need to control.
If condition XXXX also condition YYYY should become mandatory. If Condition XXXX does not exist, the condition YYYY should be excluded.
I decided to enter an exclusion indicator on XXXX condition (KZNEP = F) and assign the following routine to the condition YYYY in the pricing procedure. (Refer to SAP Note 836243)
Also I marked condition YESE as mandatory in the P.Proced.
With this routine if condition XXXX exists and there is no valid condition record for YYYY, the system is issuing the message that YYYY is mandatory.
My problem is that the document is not becoming incomplete.
Can you advise? Thank you.
FS
FORM KOBED_919.
*{ INSERT S08K941365 1
SY-SUBRC = 4.
IF KOMP-KPOSN NE 0.
CHECK: KOMP-PRSFD = 'X'.
CHECK: KOMP-KZNEP eq 'F'.
CHECK: KOMK-VBTYP NA VBTYP_FKIV.
ENDIF.
SY-SUBRC = 0.
CLEAR KOMP-KZNEP.
*} INSERT
ENDFORM.
*{ INSERT S08K941365 1
*
*} INSERT
FORM KOBEV_919.
*{ INSERT S08K941365 1
SY-SUBRC = 0.
*} INSERT
ENDFORM.
Hi Fatima,
Try to check in your subroutines the value for XKOMV (it is an internal table with the conditions that you have until this condicion this moment in pricing procedure). Set a breakpoint and see it in the debugging session.
I hope this helps you
Regards
Eduardo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
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.