‎2009 Apr 06 2:46 PM
Hi,
I have downloaded user information using a program and am using another program to upload the same user in other clients.
While uploading the User Information records using GUI_UPLOAD, I get sy-subrc as 8 corresponding to Bad Data Format. Executing this FM as standalone with the same file, doesnt give any exceptions.
Please let me know if any of you has come across a similar situation.
Thanks,
Binu
‎2009 Apr 06 3:12 PM
hi ,
cant really say when it is bad data format . if there are some currency fields with a ',' or '.' separators check this in SU3 and date formats.
Best solution i can think of is this is caused due to one particular data type format or in sequence of fields which is making subrc as 8 .
while uploading just pass field by field instead of all fields once and check where this error is occuring (subrc 8 ) then it can be narrowed to .
Br,
Vijay.
‎2009 Apr 06 2:53 PM
if you are using HEADER_LENGTH parameter of Fm try to change it or remove it.
‎2009 Apr 06 3:05 PM
‎2009 Apr 06 3:07 PM
Hello Binu,
Can you share the code here, it be more useful to analyze ur problem then?
BR,
Suhas
‎2009 Apr 06 3:09 PM
Hi friend,
Error may be due to parameter 'File type'.
Remove all exporting parameters except 'File name' which is mandatory in program.
Now try to debug and see what exception occurs.
‎2009 Apr 06 3:12 PM
hi ,
cant really say when it is bad data format . if there are some currency fields with a ',' or '.' separators check this in SU3 and date formats.
Best solution i can think of is this is caused due to one particular data type format or in sequence of fields which is making subrc as 8 .
while uploading just pass field by field instead of all fields once and check where this error is occuring (subrc 8 ) then it can be narrowed to .
Br,
Vijay.
‎2009 Apr 06 3:13 PM
‎2009 Apr 06 3:38 PM
Hi All,
I had specified the filetype as ASC while downloading. While uploading when I specify the filetype as ASC, I got the Bad Data Format Exception. However on changing this to DAT, the exception disappears.
What could be the possible reason? As per my understanding, when I am downloading it in ASC format, I should be able to upload also in the same format.
Please correct me if I am wrong.
Thanks,
Binu
‎2009 Apr 06 3:47 PM
when I look at the code of FM, there is some restriction of the header length based on the file type.. thats some thing to do with the header type length thats allowed..
‎2009 Apr 06 3:54 PM
Hi,
With respect to Filetype, ASC, the FM documentation says that Only data types with fixed length are allowed.
In my case one of the fields(for Password ) has the Data type as RAW. Could this be a reason why I am getting the exception with filetype as 'ASC' ?
Thanks,
Binu
‎2009 Apr 06 4:01 PM
>
> I had specified the filetype as ASC while downloading. While uploading when I specify the filetype as ASC, I got the Bad Data Format Exception. However on changing this to DAT, the exception disappears.
>
> What could be the possible reason? As per my understanding, when I am downloading it in ASC format, I should be able to upload also in the same format.
> Please correct me if I am wrong.
Hello Binu,
Can you please check if the param. "DAT_MODE" was not passed while using GUI_DOWNLOAD. May be you have passed that in your FM.
If you did so then you need to pass "DAT_MODE" to GUI_UPLOAD as well.
NB: You can read the 'Long Text' on DAT_MODE param. for details.
Hope this helps.
BR,
Suhas
‎2009 Apr 06 4:02 PM
I am not 100% sure on it, but that could be a reason... well exception is not raised, that solves your issue I guess
‎2009 Apr 06 4:06 PM
Yes. the issue is resolved but cant quite understand why I am not able to upload with ASC format when I am downloading in ASC format.
Thanks all, for your inputs.
Binu