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

PROB in GUI_upload for numeric and date fields

abaper_guy
Active Participant
0 Likes
1,417

I have txt file with 2 records each with 5 fields out of which 2 are numeric n 1 is date.I hv written a report for uploading this to the database. First i m bringing the the data from txt file into screen fields. During this process i find out that the numeric fields n date fileds r not coming in the screen fields.

It gives a error "ZSCREEN_EMP-SAL value is larger than screen field". where SAL is a numeric field.The data which im giving in within the limits of max length.

In the text file , i m give each field seperated by a tab space.

i hv given file type as ASC n WRITE_FIELD_SEPERATOR as 'X". All other attributes r default values (commented).

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,292

If you are using GUI_UPLOAD, set the export parameter DAT_MODE as 'X' and check if you are able to upload the numeric and date fields

Vikranth

I have txt file with 2 records each with 5 fields out of which 2 are numeric n 1 is date.I hv written a report for uploading this to the database. First i m bringing the the data from txt file into screen fields. During this process i find out that the numeric fields n date fileds r not coming in the screen fields.

It gives a error "ZSCREEN_EMP-SAL value is larger than screen field". where SAL is a numeric field.The data which im giving in within the limits of max length.

In the text file , i m give each field seperated by a tab space.

i hv given file type as ASC n WRITE_FIELD_SEPERATOR as 'X". All other attributes r default values (commented).

7 REPLIES 7
Read only

Former Member
0 Likes
1,293

If you are using GUI_UPLOAD, set the export parameter DAT_MODE as 'X' and check if you are able to upload the numeric and date fields

Vikranth

Read only

0 Likes
1,292

thanks for ur rely vikrant .I tried that but same prob

Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
1,292

if you already know the field you can progamatically modify the data after uploading data.

Read only

0 Likes
1,292

but wat to modify coz i m having int as data for integer field n date for date already in the txt file.

Read only

0 Likes
1,292

Please help

Read only

Former Member
0 Likes
1,292

Hi Amber,

Please make sure that your field length and type is same as your screen field length and type.

Regards,

Md Ziauddin.

Read only

0 Likes
1,292

hi md.

Actually i have added the screen fields from dictionary so they r automatically allotted the same type as the fields in dict table i guess.

N in my prog when i define the internal table , there also each type for the field i m mentioning using LIKE keyword followed by the dictionary table's field name.So even they r assigned the same data type as the dict table.

Now dunno where is the prob.

NOTE: the prob is coming only for the numeric fields n not character field