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

Multiple internal table with values in table values

Former Member
0 Likes
675

Hi All ,

I have internal table lt_map like follows with fields types without any values

and i have another table lt_values with the filed and there values but the

table lt_MAP have just first occurns of fileld values without any referance to the values

LT_MAP 


Field type             values    line      .... More fields 

ID1
ID2 
FIRST_NAME	
NAME	        
TELEPHONE_1	
DEPARTMENT	


LT_Values       

Field type      Filed value       line       .... More fields   

ID1             01	          00 
ID2             02                00
FIRST_NAME      a                 01
NAME	        aaaa              01 
TELEPHONE_1	001               01
DEPARTMENT	aaaaa1            01

FIRST_NAME	b                 02
NAME	        bbb               02
TELEPHONE_1	0002              02
DEPARTMENT	bbbbb1            02

FIRST_NAME	c                 03
NAME	        ccc               03
TELEPHONE_1	0002              03
DEPARTMENT	ccccc1            03

Etc ....

I want that lt_map will be after some comparing like follows ,

I.e. if line in table lt_values is greater than 0 to multiply it with the field type and description

and if it = 0 just put the value on the right place .

LT_MAP - After the changing that i want to do

Field type values Fields value .... More fields

Field type      Filed value       line         


ID1             01	          00 
ID2             02                00
FIRST_NAME      a                 01
NAME	        aaaa              01 
TELEPHONE_1	001               01
DEPARTMENT	aaaaa1            01

FIRST_NAME	b                 02
NAME	        bbb               02
TELEPHONE_1	0002              02
DEPARTMENT	bbbbb1            02

FIRST_NAME	c                 03
NAME	        ccc               03
TELEPHONE_1	0002              03
DEPARTMENT	ccccc1            03

I know that I can update table lt_values but its not an option this is totaly diffrent table

here i present just the importent things from it .

What is the best way to handle it

Regards

Chris

5 REPLIES 5
Read only

Former Member
0 Likes
626

I don't see any difference between lt_values and how lt_map is supposed to be filled.

Read only

0 Likes
626

HI Maen Anachronos ,

lt_map in the beginig is table just with the field values

and after some compring with lt_values you can see that lt_map have multiple entries from lt_values

since lt_map have just one entry for every field but lt_val store for the same field (but diff line num ) values (diffrent values )

as i said i cant use the lt_map table with just loop and modify since its completely diffrent table

BR

Read only

0 Likes
626

Hello ChrisGW ,

At first sorry if i didn't understand.

Did you try to append the lines of lt_values to lt_map-lines.

I think lt_map-lines is a internal table, isn't it?

Giuseppe

Read only

0 Likes
626

HI GiPalummo

Thanks ,

I try it but its not working any another idea ? ,

Regards

Chris

Edited by: ChrisGW on Feb 2, 2011 12:18 PM

Read only

0 Likes
626

Could you post the related ABAP's code?