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: 

Table Control with default values for a Column

Former Member
0 Kudos

Hi,

I have a table Control with fields kschl kbetr konwa mark

i have created a range for KSCHL

now i need to pass this to the table column

Kindly suggest how can i handle this?

BEGIN OF y_condition,

kschl TYPE kscha,

kbetr TYPE kbetr_kond,

konwa TYPE konwa,

mark TYPE char1,

END OF y_condition,

t_cost TYPE STANDARD TABLE OF y_condition,

MODULE mo_tc_cost_init OUTPUT.

IF w_tc_cost_c IS INITIAL.

REFRESH CONTROL c_tc_cost FROM SCREEN c_scr2000.

REFRESH t_cost.

MOVE c_select TO w_tc_cost_c.

FREE r_kschl.

MOVE: c_i TO r_kschl-sign,

c_eq TO r_kschl-option,

c_zhb1 TO r_kschl-low.

APPEND r_kschl.

MOVE: c_i TO r_kschl-sign,

c_eq TO r_kschl-option,

c_zhb2 TO r_kschl-low.

APPEND r_kschl.

MOVE: c_i TO r_kschl-sign,

c_eq TO r_kschl-option,

c_zhb3 TO r_kschl-low.

APPEND r_kschl.

ENDIF.

2 REPLIES 2

Former Member
0 Kudos

Can you clarify please?... you say have a table control containing the following columns:

kschl TYPE kscha,
kbetr TYPE kbetr_kond,
konwa TYPE konwa,
mark TYPE char1

so where do you expect the range table "r_kschl" to appear? ... did you want a second table control on the screen?

Jonathan

0 Kudos

Hi All,

I have solved the below issue. Thank you.

Regards,

Usha