Dear MM/ABAP experts,
Business requirement – At the time of creation Release order ME21N Pricing conditions should be made to display and no further addition /deletion in PO (The pricing conditions came from contract ME31K).
It should work only Release order document type -ZRO
I have given below logic to ABAP team
We have implemented pricing routine logic is below
This routine is working perfectly in ME21N but when going to ME22N it is not working.
Please suggest how to modify to work for ME22N screen also.
FORM FRM_KOND_BASIS_900.
*** Call # 2000000339 *** Pricing Fields in document type ZRO should not be editable
loop at KOMT1.
IF KOMK-BSTYP IS NOT INITIAL AND KOMK-BSART IS NOT INITIAL.
IF KOMK-BSART = 'ZRO' AND KOMK-BSTYP = 'F'.
KOMT1-KMANU = 'D'.
KOMT1-KAEND_LOE = ''.
MODIFY KOMT1.
ENDIF .
else .
IF KOMT1-KAPPL = 'MS' .
IF KOMK-KALSM = 'MS0000' .
KOMT1-KMANU = 'D'.
KOMT1-KAEND_LOE = ''.
MODIFY KOMT1.
ENDIF .
ENDIF .
endif .
ENDLOOP .
*} INSERT
ENDFORM.