cancel
Showing results for 
Search instead for 
Did you mean: 

FILE PATH VALIDATION ON APPLICATION AND PRESENTATION SERVERS

Former Member
0 Kudos

hi all,

i need to upload a file from the application server which hold the sales order number, fetch certain details on it and download it to the presentation server.

Presentation server will be the file on our desktop..

explain me about the application server and the usage of it..

i also need to validate the file paths of both the servers..

thanx in advance

regards,

Priya

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

for the application Server use:

Use the filename as you want!!

OPEN DATASET '/transfer/sap/text.test' FOR INPUT IN TEXT MODE.

IF SY-SUBRC NE 0.

MESSAGE E001.

EXIT.

ENDIF.

*

DO.

*

READ DATASET P_FILEUN INTO ITAB.

*

IF SY-SUBRC <> 0.

EXIT.

ENDIF.

*

APPEND ITAB.

*

ENDDO.

*

CLOSE DATASET P_FILEUN.

*

IF SY-SUBRC NE 0.

MESSAGE E001.

ENDIF.

download it via CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD

to C:\Dokumente und Einstellungen\All Users\Desktop\filename

Regards, Dieter