Skip to Content
Author's profile photo Former Member

Storing Multiple files into an application server

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.

pic1.JPG

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.

pic2.JPG

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.

pic3.JPG

pic4.JPG

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.

pic5.JPG

Step 5) Pass the logical filename definition to OHD.

pic6.JPG

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)

pic7.JPG

Assigned Tags

      4 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Srinivasa Reddy
      Srinivasa Reddy

      Nice blog..

      Author's profile photo Former Member
      Former Member

      Really Helpful, thanks for sharing kumkum.

      The screen shots in the content are really helpful for understanding the point.

      Author's profile photo Former Member
      Former Member

      Helpful doc Kumkum.. thanks for sharing

      Author's profile photo Former Member
      Former Member

      thanks for sharing

      regards

      Raj