08-01-2008 10:09 AM
Abapers,
I have 3 GL account like 0024831231,0024831238,0024831245.
Please help me how to set default values in select-options ( s_hkont ) in INTIALIZATION event
Thanks
08-01-2008 10:14 AM
Select option is table <Structure> with fields, low, high, sign & option
you need to append the value into the select option, with appropriate value in low or
example:
S_HKONT-low = <value>
S_HKONT-SIGN = 'I'
S_hkont-OPTION = 'EQ'
append s_hkont.
Default value for select-option also can be added directly in select-option statement.
Regards,
Mahesh
08-01-2008 10:17 AM
Hi...
Do like this...
>s_hkont-low = '0024831231'
>s_hkont-option = 'EQ'.
>append s_hkont.
>clear s_hkont.
>
>s_hkont-low = '0024831238'
>s_hkont-option = 'EQ'.
>append s_hkont.
>clear s_hkont.
>
>s_hkont-low = '0024831245'.
>s_hkont-option = 'EQ'.
>append s_hkont.
>clear s_hkont.
Thanks,
Naveen.I
08-01-2008 10:17 AM
HI,
TRY THIS...
INITIALIZATION.
s_hkont-low = ' value'.
s_hkont-high = value'.
08-01-2008 10:20 AM
08-01-2008 10:20 AM
08-01-2008 10:25 AM
Rai,
Obviously, you need to add thise statement three times for each GL Account.
clear s_hkont.
S_HKONT-low = '0024831231'.
S_HKONT-SIGN = 'I'
S_hkont-OPTION = 'EQ'
append s_hkont.
S_HKONT-low = '0024831238'.
append s_hkont.
S_HKONT-low = '0024831245'.
append s_hkont.
Regards,
Mahesh
08-01-2008 10:27 AM
08-01-2008 10:28 AM