Hi Experts,
I am using FM ARCHIVFILE_CLIENT_TO_SERVER to upload file from my desktop to AL11 Path which works perfectly fine when I execute from SAP GUI but does not work when I execute from FIORI tile which calls the same program.
CONCATENATE gv_file_path ‘_’ sy-datum ‘_’ sy-uzeit INTO gv_file.
CONDENSE gv_file.
” Place file from Presentation server to the Application server
CALL FUNCTION ‘ARCHIVFILE_CLIENT_TO_SERVER’
EXPORTING
path = gv_fileupd
targetpath = gv_file
EXCEPTIONS
error_file = 1
no_authorization = 2
OTHERS = 3.
IF sy-subrc EQ 0.
“******** Read file from Application server(AL11) ***********
OPEN DATASET gv_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
IF sy-subrc = 0.
DO.
READ DATASET gv_file INTO gwa_uphold_str.
IF sy-subrc EQ 0.
APPEND gwa_uphold_str TO gt_uphold_str.
CLEAR : gwa_uphold_str.
ELSE.
EXIT.
ENDIF.
ENDDO.
ELSE.
MESSAGE ‘File not found!’ TYPE ‘E’.
ENDIF.
CLOSE DATASET gv_file.
I believe the problem is with the dialog box which appears to ask for permission to upload file in Application server when I click on ‘Yes’ then it allows me to upload from SAP GUI but this dialog doesn’t show up when I execute from FIORI tile where it gets stuck in the process because there is no user action performed to give permission to allow user to upload file due to which it does not upload file to AL11 path.
How to allow the permission to all users to allow to access to upload file in AL11 path automatically without asking any permission? Or any suggesstion how to proceed further would really help alot.
Thanks.