Hi All,
We have a requirement where if the condition value of a condition type ZXXX is '0.00' at the first access sequence, it should not consider such a pricing record, it should move to the next sequence.
Normal SAP behavior is that a zero condition value is also considered a valid condition record.
This is the code that I have written:
FORM KOBED_907.
IF KONP-KSCHL = 'ZK04'.
IF KONP-LOEVM_KO IS INITIAL AND KONP-KBETR IS INITIAL.
sy-subrc = 4.
ENDIF.
ENDIF.
ENDFORM.
The access sequence is in the attached file.
But this does not choose the right record. The value remains as 0.
Can you please let me know what needs to be changed?
Thanks
Sneha
Hi Sneha,
I am unable to understand what you are trying to achieve actually. In code you are setting sy-subrc value as 4. What you will achieve with that?
Also, KBETR is rate and condition value.
But this does not choose the right record. The value remains as 0.
Are you trying to change condition value for KSCHL = 'ZK04'?
Hi Sneha,
Hope it helpful.
CASE KONP-KSCHL.
WHEN 'ZK04'.
IF KONP-LOEVM_KO IS INITIAL AND KONP-KBETR IS INITIAL.
CONTINUE.
ENDIF.
ENDCASE.
Regards,
Venkat.
Add a comment