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

help needed in uploading ztable

Former Member
0 Likes
517

Hi all,

i'm trying to upload a ztable from a tab delimited text file dynamically.

This uploads work for any ztable.

i have parametrs of ztable table and the text file path.

I have a have a field like 15.9 in my text file and i have a field in ztable to which i have to upload whose domain is dec of length 4 and decimals 1.

(later i changed it to quan of length 4 and decimals 1)--yielded same results

ASSIGN COMPONENT table-fieldname OF STRUCTURE <l_line> TO <l_field>.

<l_field> = itab-val.

i have a value of 15.9 in itab-val

now i have this statement <l_field> = itab-val.

now <l_field> = 16.

now iam moving this value to internal table and from that i am using modify statement to upload my ztable

and

i see avalue of 1.6 in my ztable.

i want to see a value of 15.9 in my ztable

I hope iam clear`

Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
493

us this field as a charcter field only in ur itab..

means it shud contain character value 15.9 and then assign it to the table field.

amit

Hi all,

i'm trying to upload a ztable from a tab delimited text file dynamically.

This uploads work for any ztable.

i have parametrs of ztable table and the text file path.

I have a have a field like 15.9 in my text file and i have a field in ztable to which i have to upload whose domain is dec of length 4 and decimals 1.

(later i changed it to quan of length 4 and decimals 1)--yielded same results

ASSIGN COMPONENT table-fieldname OF STRUCTURE <l_line> TO <l_field>.

<l_field> = itab-val.

i have a value of 15.9 in itab-val

now i have this statement <l_field> = itab-val.

now <l_field> = 16.

now iam moving this value to internal table and from that i am using modify statement to upload my ztable

and

i see avalue of 1.6 in my ztable.

i want to see a value of 15.9 in my ztable

I hope iam clear`

Thanks

3 REPLIES 3
Read only

Former Member
0 Likes
494

us this field as a charcter field only in ur itab..

means it shud contain character value 15.9 and then assign it to the table field.

amit

Read only

Former Member
0 Likes
493

Hi ,

I am having correct value in itab-val

itab-val = 15.9

<l_field> is blank

<l_field> = itab-val.

now <l_field> = 16.

i'm not declaring anything ,it generates a dyanamic internal table.

Thanks

Read only

Former Member
0 Likes
493

Hi all,

i have been going through Rich's Blog to update any ztable dynamically.

I AM HAVING PROBLEM WITH THE DECIMAL FIELD. unlike RICH I'M USING

FM REUSE_ALV_FIELDCATALOG_MERGE TO BUILD FIELD CATALOG

THANKS