2010 Jul 12 8:40 AM
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).
2010 Jul 12 8:44 AM
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).
2010 Jul 12 8:44 AM
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
2010 Jul 12 9:23 AM
2010 Jul 12 9:37 AM
if you already know the field you can progamatically modify the data after uploading data.
2010 Jul 12 9:40 AM
but wat to modify coz i m having int as data for integer field n date for date already in the txt file.
2010 Jul 12 11:08 AM
2010 Jul 12 11:24 AM
Hi Amber,
Please make sure that your field length and type is same as your screen field length and type.
Regards,
Md Ziauddin.
2010 Jul 12 11:59 AM
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
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |