Skip to Content
avatar image
Former Member

how to make default values in selection field?

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Feb 24, 2010 at 01:11 PM

    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-d2fd30f335fd

    I hope it would solve your problem.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

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

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

      Saurin Shah