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
    • Government & Public Sector
    • Travel, Logistics & Hospitality
    • HiTech, SaaS, ISV & Communications
    • Manufacturing
    • Oil,Gas & Mining
    • Energy & Utilities
    • View All Industries
  • Our Partners
    • Microsoft
    • ServiceNow
    • SAP
    • AWS
    • 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
Published On: October 04 , 2018
Updated On: March 21, 2024
Posted By:
Kellton
linkedin
2 min read
Common Utility SAP PI

Other recent blogs

Customer Identity and Access Management
Why Customer Identity and Access Management Has Become a Growth Strategy for Banks
July 24 , 2026
Oracle Cloud ERP vs. SAP
Oracle Cloud ERP vs. SAP: Which Leads the Way in Global Enterprise Management?
July 22 , 2026
Enterprise ServiceNow workflow automation: 6 implementation priorities
Enterprise ServiceNow workflow automation: 6 implementation priorities
July 22 , 2026

Let's talk

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

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?

Oracle Cloud ERP vs. SAP
Blog
Oracle Cloud ERP vs. SAP: Which Leads the Way in Global Enterprise Management?
July 22 , 2026
SAP Service Cloud: Revolutionizing Customer Experience in Banking
Blog
SAP Service Cloud: Revolutionizing Customer Experience in Banking
June 30 , 2026
10 ERP Implementation Pitfalls
Blog
10 ERP Implementation Pitfalls Every Enterprise Must Avoid
June 19 , 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