‎2011 Feb 02 9:32 AM
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 03I 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
‎2011 Feb 02 9:43 AM
I don't see any difference between lt_values and how lt_map is supposed to be filled.
‎2011 Feb 02 9:51 AM
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
‎2011 Feb 02 10:08 AM
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
‎2011 Feb 02 11:00 AM
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
‎2011 Feb 02 12:29 PM