2010 Jul 28 9:51 AM
Hi frnds,
I have 7 list box , i m select the listbox value in selection screen
and click insert radio button all the listbox value r stored in DB..
param2 = 'P_PARAM2'.
value-key = '1'.
value-text = 'YES'.
APPEND value TO values2.
param1 = 'P_PARAM2'.
value-key = '2'.
value-text = 'NO'.
APPEND value TO values2.
i complete the pgm but that " value-key = '2'." value only saved.
I want to save the "value-text = 'YES'." .
Any one can help me.
Thanks in advance.
2010 Jul 28 10:10 AM
After getting the value
read table values2 with key key = value-key. " ie 2
if sy-subrc eq 0.
move values2-text to v_text.
endif.
a®
2010 Jul 28 10:10 AM
After getting the value
read table values2 with key key = value-key. " ie 2
if sy-subrc eq 0.
move values2-text to v_text.
endif.
a®
2010 Jul 28 11:47 AM
hello frnd,
use that code,
error s occur.
The internal table "VALUES2" has no header line - explicit
specification of an output area with "INTO wa" or "ASSIGNING <fs>" is required.
Any one can help me.
Thanks inadvance.
Edited by: YUMKUMAR on Aug 20, 2010 9:47 AM
2010 Aug 20 5:34 AM
Hi,
Declare a work area or field symbols for this case:
data: wa_value like line of value2.
read table value2 into wa_value....
hope it help,
2010 Aug 20 5:45 AM
2010 Aug 20 5:50 AM
hi,
Just try
data: wa_values like line of values2,
v_text type text50. "replace by your fields
read table values2 into wa_values with key key = value-key. " ie 2
if sy-subrc eq 0.
move wa_values-text to v_text.
endif.
hope it works,
regards,
2010 Aug 20 6:34 AM