2015 Oct 10 4:55 PM
Hi to all experts,
I am working on BDC now. As a ABAP developer we all know how to read and write data From/Into Application Server. By using Open dataset 'datasetname'for input/output in text mode encoding default.
now i have few questions regarding this.
que 1. What is the use of using RZL_READ_DIR_LOCAL-----> it just read the file name.After this As usual we need to use open dataset for input.
then why we need to go with RZL_READ_DIR_LOCAL.
QUE 2 . is there any class to read data From application server directly with out using Read dataset (or) open dataset for input.
If any wrong in my question plese excuse....!!! Hope some one give perfect answer..!!!! Thanks in advance
2015 Oct 12 8:34 AM
This class can be used data from application server
CL_RSAN_UT_APPSERV_FILE_READER
RZL_READ_DIR_LOCAL
It is a RFC enabled FM used to check the existence of the file in remote system
2015 Oct 12 9:35 PM
RZL_READ_DIR_LOCAL can be used to get a list of the files in a directory on the app server. It's an equivalent of the OS DIR command, essentially. We use it in one interface program that needs to read all the files in certain directory. But this FM is not released and I've heard in later releases it was changed, so we'll have to update our program eventually. I would not recommend using it.