cancel
Showing results for 
Search instead for 
Did you mean: 

how to make default values in selection field?

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Refer this Article by Thomas on how to make default values in Select Options:

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60474842-91ca-2b10-3390-d2fd30f33...

I hope it would solve your problem.

Former Member
0 Kudos

My Problem solved.I just had confusion how to assign field symbol that is soved through this demo.

Thanks a lot............

Saurin Shah

Answers (0)