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

Custom table data upload error

Former Member
0 Likes
588

I have an upload program for z table using gui_upload.

My fields in the table are in the sequense

client

land1

vkorg

vkbur

kunnr

createdate

userid

changeddate

userid.

I am using field separator in the FM.

First 6 fields get uploaded correctly but then the last 3 fields are getting mixed up , to be exact 7th field gets shifted by 2 position and so last 3 i.e. 7,8,9 get mixed up and last field looses some informatin. what could be the error? I am also using conversion exit for dates.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
559

Hi

What is the length of date fields in you internal table that recieves data?

I think you shoul give them 2 more characters...

Best Regards

Yossi

5 REPLIES 5
Read only

Former Member
0 Likes
560

Hi

What is the length of date fields in you internal table that recieves data?

I think you shoul give them 2 more characters...

Best Regards

Yossi

Read only

0 Likes
559

The field is of char type and is of length 10. Is it a code page issue? Actually when I debug I can see everything is got perfectly in the internal table. But from itab to custom table something goes wrong and custom table has all wrong data.

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
559

Hello,

If the file contents are uploaded correctly in your internal table i dont think you have issues with the codepage.

Anyways i see you have dates in your file. In what format are the dates uploaded to your internal table ? (Whatever be the format to have to make sure before the update to the DB table you need to change to internal date format YYYYMMDD)

And can you provide the structure of your internal table & your DB table ?

BR,

Suhas

Edited by: Suhas Saha on Mar 23, 2010 11:27 AM

Read only

0 Likes
559

Hi,

Define ur intenal table as

data: Itab type standatd table of zitab.

Don't define structure.

If u define internal table same as ztable by default it will take all daa types similar to that.

Try this .May solve ur proble.

Regards,

Pravin

Read only

0 Likes
559

Thanks all for your inputs. I used Pravin's advice and it is solved.