‎2009 Mar 12 10:58 AM
hie all , i'm trying to run a program that uses open data set in ECC 6, but i keep getting a runtime error saying the file can not be open. i have checked , the file is not in use by any other program and it exists. i have tried both getting from application server (c:\rapidsap01.txt')and dev server (
umdev\usr\interface\rapidsap01.txt')but stil nothing. i read somearticle that talked about setting the unicode flag , does anyone have an idea where i can do that?
error
Runtime Errors DATASET_NOT_OPEN
Exception CX_SY_FILE_OPEN_MODE
Date and Time 12.03.2009 10:59:11
‎2009 Mar 12 11:11 AM
Hi,
The intended file might not be opened in your systems due to many of reasons like no authorization, file doesn't exist etc. check for sy-subrc just after OPEN DATASET.
Thanks,
Asit Purbey.
‎2009 Mar 12 11:28 AM
hi,
data : obj type ref to cx_root.
try .
open dataset ........
catch CX_SY_FILE_OPEN_MODE
into obj
endtry.
now the program will not go to dump but still it will not solve the problem.
So For setting the any object for unicode
SET UNICODE ON\OFF
use open dataset..
‎2009 Mar 13 4:53 AM
‎2009 Mar 13 5:10 AM
Hi;
have u tried with the new file since it might corrupt.
For unicode please find the details
[Link|http://help.sap.com/saphelp_nw70/helpdata/EN/79/c55458b3dc11d5993800508b6b8b11/content.htm]
regards
Shashi
‎2009 Apr 20 5:39 PM