10-30-2007 11:11 AM
how to make Field as editable in Custom Table.
Req is 2 fields in custom table one is key field and
other one is non key field.Both i have to validate both in events and if incorrect i have to show error msg..thats s working fine.Only problem when its initial,it should be editable and cursor should focus on that particular field.
Other screen attributes is there any option ?
Thanks in advance
Suresh
10-30-2007 2:59 PM
Hi Suresh,
Just insert a module SET_CURSOR in the PBO event of the table maintanence of the custom table.
MODULE SET_CURSOR.
Loop at screen.
if field1 is initial.
SET CURSOR FIELD field1.
elseif field2 is initial.
SET CURSOR FIELD field2.
endif.
Endloop.
ENDMODULE.
Reward if useful.
Thanks,
Muthu.
10-30-2007 2:59 PM
Hi Suresh,
Just insert a module SET_CURSOR in the PBO event of the table maintanence of the custom table.
MODULE SET_CURSOR.
Loop at screen.
if field1 is initial.
SET CURSOR FIELD field1.
elseif field2 is initial.
SET CURSOR FIELD field2.
endif.
Endloop.
ENDMODULE.
Reward if useful.
Thanks,
Muthu.
10-31-2007 11:54 PM