‎2008 Mar 03 8:03 AM
hi
i have a table Language
Field1-Field2-Field3---Field4
1--
2--
3--
4--
UPDATE_ITAB
Field1-Field2-Field3-Field4
1-space----
2-space----
3-222------ENGLISH
4-222------ENGLISH
5-333------FRENCH
6-333------FRENCH
the program is displaying an ALV
and there is radio button english and french on the selection screen
if user select english then record No 3, 4 should be display on the screen
if user select french then record No 5, 6 should be display on the screen
The problem is that i don't know how the program should treat empty language
‎2008 Mar 03 8:13 AM
Parametere : R1 as radiobutton group1 ,
R2 as radiobutton group1 ,
R3 as radiobutton group1 .
if R1 = 'X'.
****For English
Loop at itab where Langu = 'EN'.
Itab_new = itab .
Append itab_new.
Endloop.
elseif R2 = 'X'.
*******For Frech
Loop at itab where Langu = 'FR'.
Itab_new = itab .
Append itab_new.
Endloop.
elseif R3 = 'X'.
**** For Others
Loop at itab where Langu = ' '.
Itab_new = itab .
Append itab_new.
Endloop.
Your Final internal table is *itab_new* .
Reward points if it is usefull .....
Girish
‎2008 Mar 03 8:08 AM
Hi,
If the table is custom developed then ensure that always the language field be filled, by mentioning 'NOT NULL'.
If it is a standard table, please check with your client if by default all the null language values also need to be displayed with any language selection.
Hope this helps,
Harikrishna.
‎2008 Mar 03 8:23 AM
the value in the table is populated by default with empty language.
if i need to display all records in any language then i need to put another radio button any language so that it would take both english and french am i right.
right now i am only doing
SELECT UPDATE_ITAB
WHERE (condition on selection screen)
now that i added 2 radio botton english and french
i need only text in english to appear adn the other way round
‎2008 Mar 03 8:13 AM
Parametere : R1 as radiobutton group1 ,
R2 as radiobutton group1 ,
R3 as radiobutton group1 .
if R1 = 'X'.
****For English
Loop at itab where Langu = 'EN'.
Itab_new = itab .
Append itab_new.
Endloop.
elseif R2 = 'X'.
*******For Frech
Loop at itab where Langu = 'FR'.
Itab_new = itab .
Append itab_new.
Endloop.
elseif R3 = 'X'.
**** For Others
Loop at itab where Langu = ' '.
Itab_new = itab .
Append itab_new.
Endloop.
Your Final internal table is *itab_new* .
Reward points if it is usefull .....
Girish
‎2008 Mar 03 8:16 AM
HI
please clarify your data fields for space which data element r u used in space?
And I write one solution try it first see your data type of space field and
then after just use ' ' (space) is there then record no __ __
Try it and tell me if any problems occurs ok
Prashant.