cancel
Showing results for 
Search instead for 
Did you mean: 

insert default values on rows of table control?

Former Member
0 Kudos

how to insert default values for the rows of table control which updates a Ztable? i want the values 01 to 12 in the each row for a particular column named 'Month' !

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

T015M table name to get months numbers

Answers (2)

Answers (2)

former_member195383
Active Contributor
0 Kudos

Hi Try the below code in PBO

loop at TB_demo

with control TAB_CTL

cursor TAB_CTL-current_line.

module TAB_CTL_get_lines.

endloop.

:

:

:

:

module TAB_CTL_get_lines output.

TB_demo-field1 = '01'.

TB_demo-field2 = '02'.

MODIFY TB_demo INDEX TAB_CTL-current_line.

endmodule.

Former Member
0 Kudos

explain clearly.

Former Member
0 Kudos

hi..

i hav a tablecontrol. when user enters data online and click 'save', it wil save into database (new ztable). The user does not fill all the columns and rows in the tablecontrol. Certain columns are filled by us; like for example month. The Column month should have default values from 01 to 12 (ie.Jan to Dec) in the Tablecontrol in disabled mode. So that user need not type those values again and again for every time.

For that purpose, i want to display the values 01 to 12, one by one in the column of table control.

So how to set the values by default?

Hope its very clear!!