05-20-2008 2:33 PM
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
05-20-2008 2: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.
05-20-2008 2: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.
05-20-2008 2: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