02-11-2008 2:08 PM
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.
02-11-2008 2:21 PM
Hi,
Did you use MODIFY SCREEN inside the LOOP AT SCREEN?
Regards,
Ivson
02-12-2008 5:19 AM
i am using the case statement . i think there is no need to use the loop statement.
02-12-2008 9:08 AM
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
02-12-2008 1:21 PM
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
02-12-2008 2:34 PM
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.