Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

html file in application server

Former Member
0 Likes
742

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
630

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

3 REPLIES 3
Read only

Former Member
0 Likes
630

Check whether you have got sufficient authorization in QA to write the file in the specific Directory of application server.

Regards

Vinod

Read only

Former Member
0 Likes
631

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

Read only

Former Member
0 Likes
630

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