cancel
Showing results for 
Search instead for 
Did you mean: 

append value to select-option

Former Member
0 Kudos

hi

i 'm examine to link

[https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c09fec07-0dab-2a10-dbbe-c9a26bdff03e]

the page on load when i want to add value select-options.

you think , how can i do ?

Thanks.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hi

i want to set value in select-option when click a button.

i found this method

DATA: SELLx TYPE REF TO DATA,

PERSONALx TYPE REF TO DATA.

DATA :

PERSONAL TYPE if_componentcontroller=>elements_PERSONAL ,

PERSONALS TYPE LINE OF if_componentcontroller=>elements_PERSONAL .

PERSONELx = LR_HELPER->CREATE_RANGE_TABLE( I_TYPENAME = 'ZWDAPR' ).

"personal is my internal table and i want to assign personal to personalx .

"beacuse this method parameter type is I_VALUE type ref to data.

CALL METHOD LR_HELPER->SET_VALUE_OF_PARAMETER_FIELD

EXPORTING

I_ID = 'ZWDALG'

I_VALUE = PERSONALX

.

Thanks

arjun_thakur
Active Contributor
0 Kudos

Hi Joshua,

Please explain your reqirement in detail. Are you talking about setting default value in select-option??

If yes, then you can refer to this standard component WDR_TEST_SELECT_OPTIONS and look for this method onactiontc_predef_rangetab

Regards

Arjun

Edited by: Arjun on Jan 21, 2009 9:13 AM