Application Development 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: 

Error With FM "WS_Download"

former_member207009
Participant
0 Kudos

Hello ,

I copied standard program RFFOUS_T to Z program to modify ACH/Wire Transaction file format through t-code F110

that is working fine when store in PC but giving error when i choose directory in SAP server which given by client , error is

"Function Module WS_Download error 97" , so please provide any solution to solve that if some body worked on that .

Thanks & Regards

Gaurav Sharma

4 REPLIES 4

Former Member
0 Kudos

Hello Gaurav sharma,

Can try to use the follwing mentioned class with the method insted of WS_DOWNLOAD.

DATA v_filename TYPE STRING.
DATA v_filetype TYPE C LENGTH 10.
v_filename = filename.
v_filetype = 'ASC'.
CALL METHOD
   CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD
   EXPORTING
     FILENAME            = v_filena
     FILETYPE            = v_filety
   CHANGING
     data_tab            = int_tab[
   EXCEPTIONS
     FILE_NOT_FOUND     = 1
     FILE_WRITE_ERROR    = 2
     FILESIZE_NOT_ALLOWED    = 3
     INVALID_TYPE        = 5
     NO_BATCH            = 6
     UNKNOWN_ERROR       = 7
     OTHERS              = 8.

Former Member
0 Kudos

Function module WS_DOWNLOAD and a file location on the SAP server is a combination that will not work (even if you replace WS_DOWNLOAD is its class based version).

This is a common question, search the forum and you'll find plenty of explanations.

Regards,

Nick

cris_hansen
Advisor
Advisor
0 Kudos

Hello Gaurav,

As Nick mentioned, it is valid checking the following threads:

https://scn.sap.com/thread/1775565

https://scn.sap.com/thread/492700

I hope this helps,

Cris

Former Member
0 Kudos

Hi Gaurav,

First you have to create a payment medium format if you dont want to use an existing one: customizing: fin.accounting-acc.rec and accpayable-business transactions-outgoing payments-automatic outgoing payment-payment media-make settings for payment medium formats from payment medium workbench

2nd step: It is in the customizing, F110-environment - maintain config.

choose payment-method/country.In the box payment medium you can choose if a traditional program should create your DME or if your created DME should be taken.

https://scn.sap.com/thread/448708