‎2006 Sep 22 11:15 AM
Hi guys,
I got a dump while trying to run a custom Z report.
can u guys help me out in this.
Error analysis:
The exception, assigned to the class 'CX_SY_FILE_OPEN_MODE', was not caught, which led to a runtime error. The reason for this exception is:
The system tried to access the file "
ord-sapdev\export\bcpsap\invnum.ini" but found that this file was not opened. For this reason, it could not access the file.
CODE EXTRTACT
CONCATENATE '
' SYST-HOST '\export\bcpsap\' INTO SRVRPATH.
CONCATENATE SRVRPATH FILE1 INTO FILE1.
CONCATENATE SRVRPATH FILE2 INTO FILE2.
INCLUDE ZAUTH001. "Authorization check NT9K904519
STARTDATE = SYST-DATUM.
STARTTIME = SYST-UZEIT.
MOVE SYST-MANDT TO CLIENT.
*if syst-sysid ne 'NT6' and syst-mandt eq '055'.
move '013' to client.
*endif.
*if syst-sysid eq 'NT4'.
move: 'c:/tmp/zdcm/invnum.txt' to file1,
'c:/tmp/zdcm/invnum.ini' to file2.
*endif.
IF DEBUGWRITE GT 0.
WRITE : / ' Header Output file:', FILE1.
WRITE : / 'File with last export date:', FILE2.
ENDIF.
*BEIGN ECC5.O DEVK900351.
CHANGES MADE " ENCODING DEFAULT ADDED".
*OPEN DATASET FILE1 FOR OUTPUT IN TEXT MODE.
OPEN DATASET FILE1 FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
*END OF DEVK900351.
IF SY-SUBRC <> 0.
WRITE: / 'error opening', FILE1, 'for output error:', SY-SUBRC.
EXIT.
ENDIF.
********ERROR OCCURED HERE*****
READ: DATASET FILE2 INTO INI_REC_IN.
IF SY-SUBRC <> 0.
WRITE: / 'error opening', FILE2, 'for output error:', SY-SUBRC.
exit.
ENDIF.
INI_REC_OUT-MAXDATE = INI_REC_IN-MAXDATE.
INI_REC_OUT-DEBUGWRITE = INI_REC_IN-DEBUGWRITE.
INI_REC_OUT-DEBUGLIMIT = INI_REC_IN-DEBUGLIMIT.
INI_REC_OUT-MAXDATE = '20451215'.
*ini_rec_out-debugwrite = '0'.
*ini_rec_out-debuglimit = '98765'.
INI_REC_OUT-MSG =
'File invnum.ini LastDate(8) MaxDate(8) Debugwrite(2) Limit(8) '.
INI_REC_OUT-LASTDATE = SYST-DATUM - 2.
‎2006 Sep 22 11:19 AM
I hope you have Write access rights on the particular server ..it may be the cause of error.
‎2006 Sep 22 11:23 AM
Looks like some authorisation problem in accessing the applicatin server. Can you please talk to BASIS guys to check for authorisation.
REgards
Vivek
Please reward points for all the useful answers
‎2006 Sep 22 11:25 AM
hi,
This is due to authorization issue, you cannot access the file on the application server. Contact basis people to authorize you.
Regards,
Richa
‎2006 Sep 22 11:30 AM
You don;t have authorization to upload value to the application server. Ask the basis people to provide authorization for the same.
Prakash.