Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Change the conditions when click save button in transaction ME21N and ME22N

Former Member
0 Kudos

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?

2 REPLIES 2

Former Member
0 Kudos

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.

Former Member
0 Kudos

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?