‎2007 Jan 08 6:23 AM
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.
‎2007 Jan 08 6:33 AM
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
‎2007 Jan 08 6:54 AM
i know this, by getting the number of characters we can validate & rasie error message but i dont want to do tht.
I want to stop the cursor movement when it reaches the maximum number of character.
for example see CT04 transacton.
Is it possible for me to validate like tht if yes means tell me how it can be done.
Thanks in advance.