HPE GreenLake Administration
- Community Home
 - >
 - Servers and Operating Systems
 - >
 - Operating Systems
 - >
 - Operating System - HP-UX
 - >
 - textfile uploads to SAP problem.
 
Operating System - HP-UX
        1840213
        Members
    
    
        3405
        Online
    
    
        110162
        Solutions
    
Forums
        Categories
Company
Local Language
                
                  
                  back
                
        
                
        
                
        
                
        
        
        
                
        
                
        
        
        
                
        
              
              Forums
Discussions
Forums
- Data Protection and Retention
 - Entry Storage Systems
 - Legacy
 - Midrange and Enterprise Storage
 - Storage Networking
 - HPE Nimble Storage
 
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
                
                  
                  back
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
            
                
            
                
            
                
            
                
            
            
                
            
                
            
            
                
            
                
              
            Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
 - Appliance Servers
 - Alpha Servers
 - BackOffice Products
 - Internet Products
 - HPE 9000 and HPE e3000 Servers
 - Networking
 - Netservers
 - Secure OS Software for Linux
 - Server Management (Insight Manager 7)
 - Windows Server 2003
 - Operating System - Tru64 Unix
 - ProLiant Deployment and Provisioning
 - Linux-Based Community / Regional
 - Microsoft System Center Integration
 
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
        Information
        Community
Resources
Community Language
        Language
        Forums
Blogs
	
		
			
            
                
            Go to solution
        
            
		
		
			
            	
	
		
        
		
	
	
		Topic Options
			
				
					
	
			
		
	- Subscribe to RSS Feed
 - Mark Topic as New
 - Mark Topic as Read
 - Float this Topic for Current User
 - Bookmark
 - Subscribe
 - Printer Friendly Page
 
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
02-26-2008 12:06 AM
02-26-2008 12:06 AM
			
				
					
					
						Hi,
I have a weird problem with uploading files to SAP. We have a process the FTP's an encrypted file from an external source, de-crypts it and uploads the plaintext file to SAP.
Well, thats the way it should work, but the SAP admins are telling me that there is a problem with the file. they are tell saying that no matter how many records are in the file, SAP is always seeing it as one big record on a single line. When I vi the file or run a 'wc -l' on it it clearly shows multiple lines/records.
Intially we thought it may be a problem with FTP embedding control characters in the file (^M and such like), but we have now added a dos2ux command to the process to strip these out but we are still getting the same problem.
Has anyone come across this before? I would have thought SAP is pretty robust when it comes to file formats?
Thanks in advance.
	
			
				
		
			
			
			
			
			
			
		
		
		
	
	
	
I have a weird problem with uploading files to SAP. We have a process the FTP's an encrypted file from an external source, de-crypts it and uploads the plaintext file to SAP.
Well, thats the way it should work, but the SAP admins are telling me that there is a problem with the file. they are tell saying that no matter how many records are in the file, SAP is always seeing it as one big record on a single line. When I vi the file or run a 'wc -l' on it it clearly shows multiple lines/records.
Intially we thought it may be a problem with FTP embedding control characters in the file (^M and such like), but we have now added a dos2ux command to the process to strip these out but we are still getting the same problem.
Has anyone come across this before? I would have thought SAP is pretty robust when it comes to file formats?
Thanks in advance.
Solved! Go to Solution.
		2 REPLIES 2
	
	            
            
		
		
			
            
                - Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
02-26-2008 04:10 AM
02-26-2008 04:10 AM
Solution
			
				
					
					
						Shalom,
If the file is encrypted, it is binary and should be uploaded and decrypted on the Unix server if possible.
If not, consider using sftp which gets binary/ascii ascii/binary issues right 100% of the time.
The windows ftp client, if you are using it defaults to ascii. If the file is binary this could be the cause of the problem.
You might be able to use dos2unix on the file after upload, but its most likely better to get the upload right.
SEP
		
		
	
	
	
If the file is encrypted, it is binary and should be uploaded and decrypted on the Unix server if possible.
If not, consider using sftp which gets binary/ascii ascii/binary issues right 100% of the time.
The windows ftp client, if you are using it defaults to ascii. If the file is binary this could be the cause of the problem.
You might be able to use dos2unix on the file after upload, but its most likely better to get the upload right.
SEP
	Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
			
			
				
			
			
			
			
			
			
		Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
02-26-2008 06:10 AM
02-26-2008 06:10 AM
			
				
					
						
							Re: textfile uploads to SAP problem.
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						Steven, thanks for the suggests, but I'd already tried them.
As suspected, the problem was with the SAP upload process not the file structure.
thread closed.
					
				
			
			
				
			
			
				
			
			
			
			
			
			
		
		
		
	
	
	
As suspected, the problem was with the SAP upload process not the file structure.
thread closed.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
		
	
	
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP