Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

hiii help

Former Member
0 Likes
674

hi

i have a table Language

Field1-Field2-Field3---Field4

1--


EN-----ENGLISH

2--


EN-----ENGLISH

3--


FR-----FRENCH

4--


FR-----FRENCH

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
657

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

4 REPLIES 4
Read only

Former Member
0 Likes
657

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.

Read only

0 Likes
657

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

Read only

Former Member
0 Likes
658

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

Read only

Former Member
0 Likes
657

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.