Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Uploading and reading file from application server

Hi

My problem is when am uploading a file to application server it is getting stored in

usr/sap/transyp1/prod/in directory

after that i want to read that file from application server to update database

when using below code it is showing some other directory in f4 help

DATA: lv_hostname TYPE msxxlist-name.

DATA: lv_server TYPE bank_dte_jc_servername.

PARAMETERS: p_file TYPE rlgrap-filename.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.

CALL FUNCTION 'BANK_API_SYS_GET_CURR_SERVER'

IMPORTING

e_server = lv_server.

lv_hostname = lv_server.

CALL FUNCTION 'F4_DXFILENAME_4_DYNP'

EXPORTING

dynpfield_filename = 'P_FILE'

dyname = sy-cprog

dynumb = '1000'

filetype = 'P'

location = 'A'

server = lv_hostname.

experts could you please help me out

Thanks & Regards

Nagesh.Paruchuri

Former Member
Former Member replied

I think it default to some other location . from the F4 you select double dot(..) second file it will go up one folder....and like that you move to the relevant path....

Regards

Muthappan

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question