Home kellton

Main navigation

  • Services
    • Digital Business Services
      • AI Services
        • Generative Al Services
        • Agentic Al & Automation
        • Traditional Al Solutions
        • Al Engineering & Platforms
        • Al Governance & Risk
        • Data Engineering for Al
      • Digital Experience
        • Product Strategy & Consulting
        • Product Design
        • Product Management
      • Product Engineering
        • Digital Application Development
        • Mobile Engineering
        • IoT & Wearables Solutions
        • Quality Engineering
      • Data & Analytics
        • Data Consulting
        • Data Migration & Modernization
        • Analytics Services
        • Integration & API
      • Cloud Engineering
        • Cloud Consulting
        • Cloud Migration
        • Cloud Managed Services
        • DevSecOps
      • NextGen Services
        • Blockchain
        • Web3
        • Metaverse
        • Digital Signage Solutions
    • SAP Hide
      • ServiceNow
        • AI Solutions
        • Implementation Services
        • Optimization Services
        • Consulting Services
      • SAP
        • S/4HANA Implementations
        • SAP AMS Support
        • SAP Automation
        • SAP Security & GRC
        • SAP Value Added Solutions
        • Other SAP Implementations
      • View All Services
  • Platforms & Products
    • Structi.ai
    • Phoenix.ai
    • Hooper
    • Optima
    • tHRive
    • Tasks.io
    • Audit.io
    • Kai SDLC 360
    • Our Data Accelerators
      • Digital DataTwin
      • SmartScope
      • DataLift
      • SchemaLift
      • Reconcile360
    • View All Products
  • Industries
    • Fintech, Banking, Financial Services & Insurance
    • Retail, E-Commerce & Distribution
    • Pharma, Healthcare & Life Sciences
    • Non-Profit, Government & Education
    • Travel, Logistics & Hospitality
    • HiTech, SaaS, ISV & Communications
    • Manufacturing
    • Oil,Gas & Mining
    • Energy & Utilities
    • View All Industries
  • Our Partners
    • AWS
    • Microsoft
    • ServiceNow
    • View All Partners
  • Insights
    • Blogs
    • Brochures
    • Success Stories
    • News / Announcements
    • Webinars
    • White Papers
  • Careers
    • Life At Kellton
    • Jobs
  • About
    • About Us
    • Our Leadership
    • Testimonials
    • Analyst Recognitions
    • Investors
    • Corporate Sustainability
    • Privacy-Policy
    • Contact Us
    • Our Delivery Centers
      • India Delivery Center
      • Europe Delivery Center
Search
  1. Home
  2. All Insights
  3. Blogs

Common Utility to Convert End-of-line in SAP PI

SAP
October 04 , 2018
Posted By:
Kellton
linkedin
2 min read
Common Utility SAP PI

Other recent blogs

HIPAA app best practices
HIPAA Healthcare App Guide: Cost, Best Practices & Trends
May 26 , 2026
Custom AI chatbot development:
Custom AI chatbot development: improving CX with LLMs and RAG
May 22 , 2026
Kellton
Enterprise iPhone Application Development: Why Swift Reigns as King
May 21 , 2026

Let's talk

Reach out, we'd love to hear from you!

Image CAPTCHA
Enter the characters shown in the image.
Get new captcha!

In middleware projects, we come across messages/files that need to be transmitted between computers having different operating systems (Windows, UNIX, or Mac). All operating systems expect end-of-line in different ways. Windows expect Carriage Return and Line Feed (CRLF), UNIX expects Line Feed (LF), and Mac expects Carriage Return (CR).

Here are a few steps to develop a common utility that can handle any type of file and carry out the end-of-line conversion. This utility is generic and can be used without doing any content conversion.

Step 1: There is no need to define objects in the Enterprise Services Repository (ESR). You can directly create an Integrated Configuration (ICO) in the Integration directory. Create ICO and give a generic (dummy) name to “Interface” and “Namespace.” The interface and the Namespace do not need to be defined in the ESR.

​Step 2: Define the sender communication channel which will pick the files. There is no need to do File Content Conversion. You can specify multiple source directories too.

Step 3: Assign the sender channel under “Inbound Processing.”

Step 4: Specify the receiver business system/component.

Step 5: For the receiver interface, specify the same name as the sender interface and Namespace.

Step 6: Create a receiver communication channel. For the same, you can use “Adapter Specific message attributes” as the sender file.

Step 7: Go to the Modules table and specify the below Adapter Module before CallSapAdapter.

Module Name: SAP XI Sample/ConvertCRLFfromToLF

Type: Local Enterprise Bean

Parameter Name: convert

Parameter Value: CRLFtoLF (You can also specify LFtoCRLF if you want UNIX (LF) to Windows (CRLF) conversion)

Now you can begin testing your configuration. Here, I am using two files with different formats:

Source File 1: Windows Format

Receiver File 1: UNIX Format

Source File 2: Windows Format 

Receiver File 2: UNIX Format

The SAP standard Adapter Module (ConvertCRLFfromToLF) can be used in any communication channel which will allow enhancements via Adapter module and convert line feeds from one format to the other.

Want to know more?

SAP BTP Side-by-Side Extensions
Blog
The Definitive Guide to SAP BTP Side-by-Side Extensions in 2026
April 28 , 2026
SAP clean core audit
Blog
The SAP clean core audit: how much is your custom code costing you?
April 14 , 2026
ERP cloud migration for manufacturing
Blog
ERP cloud migration for manufacturing: quick tips on achieving 30% growth with SAP on AWS
February 27 , 2026

North America: +1.844.469.8900

Asia: +91.124.469.8900

Europe: +44.203.807.6911

Email: ask@kellton.com

Footer menu right

  • Services
  • Platforms & Products
  • Industries
  • Insights

Footer Menu Left

  • About
  • News
  • Careers
  • Contact
LinkedIn Twitter Youtube Facebook
Chatbot
Kellton Kellton Assistant

Feel free to inquire about any Digital Transformation Initiative

Hi there! Welcome to Kellton! It's great to have you here. How can I assist you today?
Recognized as a leader in Zinnov Zones Digital Engineering and ER&D services
Kellton: 'Product Challenger' in 2023 ISG Provider Lens™ SAP Ecosystem
Recognized as a 'Challenger' in Avasant's SAP S/4HANA services
Footer bottom row seperator

© 2026 Kellton