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 values in table

Former Member
0 Likes
728

Hi Experts,

I have a requirement to Default values in a table for 2 fields.

This needs to be done at table maintance time.

Should it be coded via events?

Regards,

Anjali

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
700

HI,

This needs to be done at table maintance time.

1 Here, we can understand that " while filling the data into table" , you need to enter those two values.

or

2 you have a maintenance generator and then u need to fill these two values as default

for 2nd , you create a maintenance generator, so that system will create screens.

in that for change mode screen, goto PAI event, and then

create a new module, to ill the default values.

module xyz.

module xyz

ztable-field1 = 'ABC'.

ztable-field2 = 'XEW'.

endmodule

now it will be updated automatically.

1- when ever u r creating the records in the table using some programs, then fill the values in those two fields.

Regards,

Venkatesh.

5 REPLIES 5
Read only

Former Member
0 Likes
700

yes... use table maintenance events

Read only

former_member404244
Active Contributor
0 Likes
700

Hi,

Yes it should be coded via table maintainence generator events.. Search in SCN you wil get the information.

Regards,

Nagaraj

Read only

Former Member
0 Likes
701

HI,

This needs to be done at table maintance time.

1 Here, we can understand that " while filling the data into table" , you need to enter those two values.

or

2 you have a maintenance generator and then u need to fill these two values as default

for 2nd , you create a maintenance generator, so that system will create screens.

in that for change mode screen, goto PAI event, and then

create a new module, to ill the default values.

module xyz.

module xyz

ztable-field1 = 'ABC'.

ztable-field2 = 'XEW'.

endmodule

now it will be updated automatically.

1- when ever u r creating the records in the table using some programs, then fill the values in those two fields.

Regards,

Venkatesh.

Read only

Former Member
0 Likes
700

Thanku all for your replies

Read only

0 Likes
700

Next time - please assign po1nts for helpful answers. This ecourages people to help.

Rob