‎2007 Aug 03 5:12 PM
hi all,
when iam doing the debugging in development system after open dataset it is going to next line and i am getting the output but when iam doing same thing in the quality system after open data set the condition is failing and it is not going to next line. iam not getting the output. but coding for development and quality is same .i have compared in the version management for dev and quality but it is given that there is difference in the both systems.can anybody suggest me why the condition is failing in the quality system. iam sending the code below which is same for dev and quality system.
PERFORM EXPAND_FILE_PATH USING C_OUTPUT_FILE V_OUTPUT_FILE.
OPEN DATASET V_OUTPUT_FILE FOR OUTPUT IN TEXT MODE.
IF SY-SUBRC EQ 0.
TRANSFER P_YEAR TO V_OUTPUT_FILE.
TRANSFER P_NUMYR TO V_OUTPUT_FILE.
TRANSFER P_GROUP TO V_OUTPUT_FILE.
TRANSFER P_VERSN TO V_OUTPUT_FILE.
LOOP AT T_EXCEL.
TRANSFER T_EXCEL TO V_OUTPUT_FILE.
ENDLOOP.
CLOSE DATASET V_OUTPUT_FILE. "OUTPUT FILE
ELSE.
FORMAT COLOR 6.
WRITE: / TEXT-006, 26 V_OUTPUT_FILE.
FORMAT RESET.
STOP.
ENDIF.
ENDFORM.
program is same in dev and quality system
thanks in advance
rama.
‎2007 Aug 03 5:16 PM
the thing is in development system u have access to the path of the application server whereas in quality system u dont have the access to the path of the application server.
check this way in debugging... if ur getting sy-subrc = 0, then u have access... if u get other value in sy-subrc then u dont have the access.
may be u need to get read/write access to the file path and then u can check it.
Reward Points...
‎2007 Aug 03 5:16 PM
the thing is in development system u have access to the path of the application server whereas in quality system u dont have the access to the path of the application server.
check this way in debugging... if ur getting sy-subrc = 0, then u have access... if u get other value in sy-subrc then u dont have the access.
may be u need to get read/write access to the file path and then u can check it.
Reward Points...
‎2007 Aug 03 5:17 PM
The file path you are using in DEV is probably not the same as in QA. check the name of the file you are trying to open in QA.
Rob