‎2010 Mar 31 12:35 PM
HI EVERYONE,
I used below code to move the html file into application server.
its working in development server but when i transport the same program to quality file was not generated in application server. please provide me some solution.
THIS IS MY CODE.
DATA: T_HTML TYPE STANDARD TABLE OF W3HTML WITH HEADER LINE,
WRITE_FILE_LINE LIKE LINE OF T_HTML,
FILENAME TYPE STRING.
FILENAME = '/HOME/SMS/'.
CONCATENATE 'HTML' '.HTML' INTO FILEPATH.
CONCATENATE FILENAME FILEPATH INTO FILENAME.
OPEN DATASET FILENAME FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
IF SY-SUBRC = 0.
LOOP AT T_HTML INTO WRITE_FILE_LINE.
TRANSFER : WRITE_FILE_LINE TO FILENAME.
ENDLOOP.
ENDIF.
CLOSE DATASET FILENAME.
‎2010 Mar 31 12:46 PM
It could be either authorization issue or incorrect file path in QA.
Better use LOWERCASE while declaring the variable FILENAME ...
Edited by: kachams on Mar 31, 2010 1:48 PM
‎2010 Mar 31 12:39 PM
Check whether you have got sufficient authorization in QA to write the file in the specific Directory of application server.
Regards
Vinod
‎2010 Mar 31 12:46 PM
It could be either authorization issue or incorrect file path in QA.
Better use LOWERCASE while declaring the variable FILENAME ...
Edited by: kachams on Mar 31, 2010 1:48 PM
‎2010 Mar 31 1:06 PM
check the value of sy-subrc for open and close dataset statements so that you would know whether the file was opened and closed correctly.
Regards,
Sumit