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: 

Need to show the Condition amount or percentage(KBETR) in display mode.

Former Member
0 Kudos

Hi,

i need to show the Condition amount or percentage(KBETR) in display mode for VA02 transaction based on the condition type. the KBETR in the table control. so how it will become in display mode?

already i tried with this code.

in MV45AFZZ form userexit_field_modification.

case screen.

when screen-name = 'KOMV-KBETR'.

read table xkomv with key kschl = c_xr1(XR1).

if sy-subrc = '0'.

SCREEN-INPUT = '0'.

endif.

in debugging mode the condition is satisfying but not modifying the screen.

can anyone help me . please it is urgent.

5 REPLIES 5

Former Member
0 Kudos

Hi,

Did you use MODIFY SCREEN inside the LOOP AT SCREEN?

Regards,

Ivson

0 Kudos

i am using the case statement . i think there is no need to use the loop statement.

0 Kudos

Hi, Praveen,

You have to use the loop to have access to all the fields of your screen, even if you want to change just one field.

LOOP AT SCREEN.

IF screen-name EQ ...

screen-input = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

Best regards,

Ivson

Former Member
0 Kudos

Hi,

In Include MV45AFZZ go to 'FORM USEREXIT_FIELD_MODIFICATION.'

Here u can change the screen attributes.Its being called for every screen field.

There for the 'condition amount' screen group is 'LOO'.

there u can make the 'input' to '0' instead of '1'.

I have changed in debugging.Its working....

Please let me know if u have any doubts...

Regards

Shanthi

Former Member
0 Kudos

Hi Praveen,

See in Exit 'LV69AFZZ' and subroutine 'USEREXIT_FIELD_MODIFICATION',

code should be like this

if komv-kschl eq 'your condition type'.

case screen-name.

when 'KOMV-KBETR'.

screen-input = 0.

endcase.

endif.

For header level conditions you need to use "form userexit_field_modific_kopf"

try it.

i hope it will solve your problem.

ENJOY SAP.