2012 Feb 14 7:25 AM
Dear All Guru,
I have a small requirement: in ME21N and ME22N, PO has a Contions tab in the below part of the screen, for example, cnTy(Condition Type) 'Z001' has Condition value '100'.
Now the requirement is : when used clicks save, the value of Condition value will be saved as '100-', and then using ME23N, you will see the Condition value is '100-', not '100'.
Is there exact exit could be used for this requirement? or should I use enhancement framework to mofify the source code?
2012 Feb 23 12:08 PM
HI ,
you can use the BADI ME_PROCESS_PO_CUST for the same, and in method PROCESS_ITEM you can use the below psuedo code.
if sy-ucomm = save....
CALL METHOD IM_ITEM->GET_CONDITIONS
IMPORTING
EX_CONDITIONS = LT_CONDITIONS.
change your values and then set the conditions .
CALL METHOD IM_ITEM->SET_CONDITIONS
EXPORTING
IM_CONDITIONS = LT_CONDITIONS.
endif.
hope this helps you.
Regards,
Deepak.
2012 Feb 27 9:04 AM
All the conditions tab details are stored in KONV. The 3 important fields are KSCHL KBETR KWERT in that table.
It is joined with KNUMV field.
for example: Condition 'PR00' --> KSCHL
Rate '2%' ---> KBETR
Amount '' ---> KWERT
Which table are you linking it with? VBAK?