I have worked in CT04 transaction. In that if we specify the character type (Eg . Characetr Foramt) & enter the number of characetrs as 3 means in value tab it wont allow as to enter value greater than 3. It wont show any error message but it restrict the cursor(the cursor wont move at all)
I want to do this kind of validation in my table control.
I debugged the program also But not able to get it.
Main program is SAPLCTMV and screen number is 1200.
The table control field is CAWN-ATWRT.
Can any one help me to solve this problem.
Thanks in advance.
write the code on PAI of ur screen to popup a error message if some condition for a particular field of Table control fails as follows -
PROCESS AFTER INPUT.
LOOP AT ITAB2. "ITAB2 is the table for table control.
module read_table_control.
ENDLOOP.
module read_table_control input.
if itab1-pernr eq '00000022'.
message w000(000) with 'Enter other value than 22'. "this is error message
else.
MODIFY itab2 FROM itab1 INDEX tabcontrl-current_line.
endif.
endmodule. " read_table_control INPUT
Add a comment