SAP - Reading data from Application Server by using File system commands

Dear All,
Welcome back to my blog.

We may get a requirement to read data from Application server. But, if you don't find proper function Module then, you can simply use steps and get the details from App. Server.

Execute Program RSFTP002:

  
Will get above selection screen. Here we need to pass below parameters, those are:



User -  FTP User name
Password - Password to open FTP server
Host -  IP address of FTP server
Command1 -  Enter FTP Command 1
Command2 - Enter FTP command 2
Command3  - Enter FTP Command 3

RFC Destination - By default it is SAPFTP - you have to check the name of RFC Destination in your system.
Compress  -  N

Command1, Command2, Command3:
These three options are provided for us to write Unix commands to run on File server system.
Example Commands are:

Command1  -  CD  Dir Name
 Now, system will open Directory in FTP Server.
Command2 - get File name
Properties of File name will be shown with this command.

For other commands refer to Unix File management commands and use it over here.

If you wanted to execute only one command, then you can ignore other two options. It is not mandatory to use all Command Options.



If you feel it is useful kindly share your feedback.


Regards
Vamsi Krishna

DTP filter routine example

We will get a requirement to write DTP filter routines.
At that time we need to follow simple steps then, our routine will be ready... :)

Create Routine for selection field in routine.
Now we need to follow below steps:

form compute_

After this statement we need to implement our own customised code and return l_t_range internal table.

        l_t_range-sign = 'I'.
         l_t_range-option = 'EQ'.
        l_t_range-iobjnm = '0CALDAY'.
         l_t_range-fieldname = 'CALDAY'.
         l_t_range-low = '20110101.
         append l_t_range.

That's it.. it will work for CALDAY.

Make your own code and Pass following Parameters.. then, it will work...


- Vamsi.