on 2022 Jun 17 3:26 AM
Hi Experts.
I want to check file that exists in AL11 (SAP Server) or not. I tried to use "PFL_CHECK_OS_FILE_EXISTENCE", that is similar to work, but when I input the parameter with the folder name(no file name), the function returns that exists as well but my expectation, It should return to be no exist (because It is not a file). Could you please help to suggest me?
CALL FUNCTION 'PFL_CHECK_OS_FILE_EXISTENCE'
EXPORTING
long_filename = '/Document/folder'
fully_qualified_filename =
importing
file_exists = lv_file_exists
exceptions
authorization_missing = 1
others = 2.
IF sy-subrc <> 0.
* Implement suitable error handling here
ENDIF.
Request clarification before answering.
Hi
You can use the below FM just give the path till folder, you will get list files details available in that folder of AL11
FM : EPS2_GET_DIRECTORY_LISTING
Thanks & Regards,
Yogesh Bagul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
54 | |
8 | |
8 | |
5 | |
5 | |
4 | |
3 | |
2 | |
2 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.