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

select stament with value checking...

naimkhans_babi
Active Participant
0 Likes
426

Dear friends..

would you like give me a suggestion on select stament with value checking..

well my problem is

if table but0is which has one field called istype that has lenth of 4 CHAR in that istype column i have number stored in 0001 and 00001 in lenth of 4 and 5..

0001 = rbcode and 00001= f50code.. how i classify in two seprate column of internal table from the same data base table column... please give me suggestion or code, or article. to carry out this task.

thanking you,,

regards,

naim

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
392

1)data:begin of itab occurs 0.

istype

....

...

rest field...

....

...

istype1 type n.----> 2nd field for istype

end of itab.

2)select

field into internal table itab.

3)loop at itab.

itab-istype1 = itab-istype.

modify itab.

endloop.

2 REPLIES 2
Read only

Former Member
0 Likes
393

1)data:begin of itab occurs 0.

istype

....

...

rest field...

....

...

istype1 type n.----> 2nd field for istype

end of itab.

2)select

field into internal table itab.

3)loop at itab.

itab-istype1 = itab-istype.

modify itab.

endloop.

Read only

0 Likes
392

istype1 type n.----> field for istype

select the field in the internal table

loop at itab.

t_tab-istype1 = itab-istype1.

modify t_tab.

endloop.

reward points if it helps

gunjan