Skip to Content
0
Former Member
Feb 24, 2010 at 01:05 PM

how to make default values in selection field?

14 Views

hi,

i have selection field date , using data element 'QENTST' using following code in view INIT Method. i get the input selection field when i test application.

DATA: LT_RANGE_TABLE TYPE REF TO DATA.

CALL METHOD WD_THIS->M_HANDLER->CREATE_RANGE_TABLE

EXPORTING

I_TYPENAME = 'QENTST'

RECEIVING

RT_RANGE_TABLE = LT_RANGE_TABLE.

CALL METHOD WD_THIS->M_HANDLER->ADD_SELECTION_FIELD

EXPORTING

I_ID = 'QENTST'

IT_RESULT = LT_RANGE_TABLE

I_OBLIGATORY = ABAP_TRUE.

What i need now , to make default value in this selection field( low = sy-datum and high = sy-datum + 10 ) . I have checked , i found one method called... SET_RANGE_TABLE_OF_SEL_FIELD. Bt i m not able to understand how to assign values to input table parameter in this method?

Thanks In Advance.

Saurin Shah