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: 

Field as editable in Custom Table

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

2 REPLIES 2

Former Member
0 Kudos

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.

0 Kudos

Thanks & pts given