Skip to Content
author's profile photo Former Member
Former Member

Transfering the data from Unix to SAP

Hi,

Can anyone tell me how to write the code to move the data that is there in a file in Unix to SAP table that I have created...

One more thing is that the file in Unix is in .csv format.

Regards,

Sindhu

Edited by: Sindhu Shivashankar on May 20, 2008 3:35 PM

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on May 20, 2008 at 01:36 PM

    Use OPEN DATASET command to open the file in unix and then convert the data into appropriate records for posting into SAP and use APPEND statement to add to the custom table.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 20, 2008 at 01:41 PM

    If the UNIX you are referring to is the Application server then you have to use:

    OPEN DATASET

    READ DATASET

    CLOSE DATASET

    this will get your file data to an internal table.

    Some points to take care of when dealing with UNIX Appservers:

    The File Paths and File names are case sensitive(Try to use Platform independent FilenamesTransaction FILE).

    IF the file is originating from a windows server to the unix appserver, you have to be careful in selecting the right transfer mode or else you will have issues with end of line characters

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.