We had a requirement to store multiple csv files into an application server as these files were required in production system. The source was a Open Hub.
Below steps were followed to achieve the requirement.
Step 1) Logical path creation
First you need to create a logical path using File transaction. Go to new entries and create the logical path.
Step 2) Assignment of Physical path to Logical path
Now you need to assign a physical path of the application server. Physical path will be the place where all the files will get stored. Followed by standard naming format of <FILENAME>, it is one of the reserved words used. You will also find syntax group. The syntax group is based on the type of operating system used. AS/400, DOS, MACINTOSH, UNIX, WINDOWS NT are various syntax group.
Step 3) Creation of function module
Now you need to create a function module with standard naming format FILENAME_EXIT_name. Where name will be the variable which will be passed in physical file. Go to se37 and create a new function module along with function group. I have created FILENAME_EXIT_ZMIG function module.
The above function module will basically generate timestamp which will contain both date and time.
Step 4) Creation of Logical filename definition.
Once the function module is created you need to create the logical filename definition. In this the variable ZMIG which is created in the function module will be passed.
Step 5) Pass the logical filename definition to OHD.
Now whenever the DTP will get executed you will find files getting generated with current date and time followed by .csv extension stored into application server(AL11 tcode)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
11 | |
11 | |
8 | |
7 | |
5 | |
4 | |
4 | |
4 | |
3 |