‎2011 Jan 26 9:50 AM
Hi,
I have written below code open the text file..
OPEN DATASET filename FOR OUTPUT
IN LEGACY TEXT MODE CODE PAGE codepage MESSAGE msg
REPLACEMENT CHARACTER repl_char
IGNORING CONVERSION ERRORS
FILTER filter.
Values:
Filename: xyz.txt
codepage: 1100
repl_char = @
After executing this statement. SYSUBRC value is 8.
Would you please help me on this.
Regards,
K.Krishna Chaitanya.
‎2011 Jan 26 3:26 PM
Hi Krishna,
OPEN DATASET filename
FOR OUTPUT
IN LEGACY TEXT MODE
CODE PAGE codepage
MESSAGE msg
REPLACEMENT CHARACTER repl_char
IGNORING CONVERSION ERRORS
FILTER filter.Please check the content of (string) field msg, it has the error. What is your filter ?
Regards,
Clemens
‎2011 Jan 26 10:11 AM
‎2011 Jan 26 11:39 AM
Hi Krishna,
Try to pass the full file path along with the file name to the OPEN DATA filename variable.
Regards,
SRinivas
‎2011 Jan 26 12:20 PM
Make Sure you are passing the full file path and the filename type should be of rlgrap-filename.
like
DATA: ck_file TYPE rlgrap-filename.
Regards
Dhirendra
‎2011 Jan 26 1:31 PM
8 often means dataset permissions does not allow the SAP userid open/read privileges...check permissions....
‎2011 Jan 26 3:26 PM
Hi Krishna,
OPEN DATASET filename
FOR OUTPUT
IN LEGACY TEXT MODE
CODE PAGE codepage
MESSAGE msg
REPLACEMENT CHARACTER repl_char
IGNORING CONVERSION ERRORS
FILTER filter.Please check the content of (string) field msg, it has the error. What is your filter ?
Regards,
Clemens
‎2011 Jan 27 6:50 AM
Hi,
MSG variable contains the string "perm"...
So it mean that some issues related to access/authorization.
Regards,
K.krishna Chaitanya.