Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Table Control with default values for a Column

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.

Former Member
Not what you were looking for? View more on this topic or Ask a question