Skip to Content
0
Oct 01, 2012 at 09:47 AM

Save file in windows NT server Through WD ABAP

23 Views

Dear Friends,

Kindly Suggest me solution for my requirement(it is urgent), I want save a txt file from WD application to Wndows NT server.

If i run my application from Windows NT server, it saving succesfully in specified Path, But if i run this from different

servers it is not saving the file. here is the code which i have used in my program

CONCATENATE '\\10.1.002.100\SMS\Details-' lv_phno '.txt' INTO PO_FILE.

OPEN DATASET PO_FILE FOR OUTPUT IN TEXT MODE ENCODING DEFAULT
WITH NATIVE LINEFEED.
IF SY-SUBRC NE 0.
MESSAGE E000(0K) WITH ' File cannot be opened'(011).
EXIT.
ENDIF.

TRANSFER LS_TEXT TO PO_FILE.
clear LS_TEXT.
CLOSE DATASET PO_FILE.

Kindly suggest pls.

Thanks In Advance.