Application Development and Automation 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: 
Read only

Default entry into table while creating entries..!!!

naveen_inuganti2
Active Contributor
0 Likes
767

Hi... Experts....

I am created one Ztable...with five fields....

So.. now i going to create the entries in that table....

Here the what ever it may be the process to create entries... If i left one field4 with space... it has to fill 'N/A' automatically by default...

How?

Thanks ,

Naveen.I

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
583

Inthe table maintenance generator you have to code in "Event. There you can add code to populate any value by default.

The path is :

1. Open the table in se11 -> menu bar -> Utilities -> table maintenance generator

2. Again manubar -> environment -> modification -> Events

here you select a proper form routine and add your code for default value there.

4 REPLIES 4
Read only

Former Member
0 Likes
583

Hi,

For this requirement you need to generate Table Maintenance Generator for that custom table then make use of Table events you can put the default values, which means before save the entry you need to do some checks for all the fields with the help of coding in the events.

Check the below link for How to implement events in table maintenance generator.

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8129f164-0a01-0010-2a8e-87652872...

Rgds,

Bujji

Edited by: Bujji on Jun 20, 2008 11:09 AM

Read only

Former Member
0 Likes
584

Inthe table maintenance generator you have to code in "Event. There you can add code to populate any value by default.

The path is :

1. Open the table in se11 -> menu bar -> Utilities -> table maintenance generator

2. Again manubar -> environment -> modification -> Events

here you select a proper form routine and add your code for default value there.

Read only

Former Member
0 Likes
583

Hi naveen,

The field which is kept blank will be filled by the initail value for the data type and not N/A unless u create entries using soem program and explicitly add logic to fill it by N/A.

Read only

Former Member
0 Likes
583

what is that field type?