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: 

can we default the field in a table.

Former Member
0 Kudos

I want to make a field as default (checked) for all values .eg:-in TTXID table and the field TDINCLRES.

as it is required in one of my development.

5 REPLIES 5

Former Member
0 Kudos

Can you please elaborate on what you mean by making default. Do you want it to have a value of 'X' for all the entries in the table?

0 Kudos

yeah i have seen the table and u must be thinking to mark it as 'X'.

surely go ahead and write a code in ur prog that whenever u r updating ur table from a internal table then u can write.

it_TTXID-TDINCLRES = 'x'.

regards

jai

Former Member
0 Kudos

Hi debadash,

Yes you can default.

for example.

data: begin of itab occurs 0,

test(20) value 'test',

test3(10),

end of itab.

Former Member
0 Kudos

Hi,

assume ztest table has field check

itab like ztest occurs 0 with header line

itab-check = 'X '.

append itab.

insert ztest from table itab.

or write code in table maintainence generator

in PAI block.

Regards

amole

0 Kudos

If you are using maintainence generator for updating the table then default the value in the 'before save' event available .

Regards,