Home kellton

Main navigation

  • Services
    • Digital Business Services
      • AI & ML
        • Utilitarian AI
        • Predictive Analytics
        • Generative AI
        • Machine Learning
        • Data Science
        • RPA
      • 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 Engineering
        • 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
        • Spatial Computing
    • SAP
      • SAP Services
        • S/4HANA Implementations
        • SAP AMS Support
        • SAP Automation
        • SAP Security & GRC
        • SAP Value Added Solutions
        • Other SAP Implementations
      • View All Services
  • Platforms & Products
    • Audit.io
    • Kellton4Health
    • Kellton4NFT
    • Kellton4Commerce
    • KLGAME
    • tHRive
    • Optima
    • Our Data Accelerators
      • Data DigitalTwin
      • 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, Automotive & Chemicals
    • Oil,Gas & Mining
    • Energy & Utilities
    • View All Industries
  • Insights
    • Blogs
    • Brochures
    • Success Stories
    • News / Announcements
    • Webinars
    • White Papers
  • Careers
    • Life At Kellton
    • Jobs
  • About
    • About Us
    • Our Partners
    • Our Leadership
    • Testimonials
    • Analyst Recognitions
    • Investors
    • Privacy-Policy
    • Contact Us
    • Our Delivery Centers
      • India Delivery Center
      • Europe Delivery Center
Search
  1. Home
  2. All Insights
  3. Blogs

How to Perform File Content Conversion (FCC) with PGP in SAP PI/PO?

SAP
October 18 , 2023
Posted By:
Digital Practice Team
linkedin
How to Perform File Content Conversion (FCC) with PGP in SAP PI/PO?

Other recent blogs

Generative AI companies
ROI of Generative AI: Measuring its impact and value for your business
April 15 , 2025
Data migration cost
Breaking down the cost of Data Migration: Is it worth in 2025
April 10 , 2025
Data Migration trends 2025
Revealing top Data Migration trends and predictions to watch
April 01 , 2025

Let's talk

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

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

In the SAP ecosystem, Process Integration (PI) and Process Orchestration (PO) are two vital game-changers of SAP's middleware technology, which enables intelligent SAP-centric enterprises to integrate their disparate systems and applications seamlessly within an organization. SAP PI/PO supports integration with a wide variety of systems, including SAP ERP, CRM, and SCM systems, as well as third-party systems.

One critical aspect of data transmission within the SAP PI/PO scenario is ensuring security and compatibility, especially when dealing with sensitive datasets. This is where Pretty Good Privacy (PGP) encryption with File Content Conversion (FCC) plays a crucial role.

Here's a breakdown:

PGP can be explained as a public-key encryption system known for its security and reliability. It comes with a pair of public/private keys required to encrypt and decrypt datasets. Companies leverage the public key to encrypt the data and the private key for data decryption.

FCC enables businesses to convert files from one format to another in a variety of formats, including XML, CSV, and JSON. FCC is an easy, secure, and fast way to exchange data formats compliant to different systems.

Here are some

Now, let's delve into the essence of how to perform File Content Conversion with PGP in SAP PI/PO and understand how companies using this strategic move to enhance their data security, and data integrity, while thriving in an increasingly interconnected world.

Now, let's delve into the essence of how to perform File Content Conversion with PGP in SAP PI/PO and understand how companies using this strategic move to enhance their data security, and data integrity, while thriving in an increasingly interconnected world.

File Content Conversion in SAP PI/PO: The quick steps to follow

SAP PI/PO provides out-of-the-box functionality to handle file content conversion from Flat file to XML and vice versa in File Adapter. This function can only be used if the file isn’t encrypted. For handling File content conversion along with PGP, we need adapter modules and advanced user detail function. This blog outlines the steps to achieve this.

PGP Decryption and Flat File to XML Conversion in the Sender Channel

In the sender communication channel, we need to specify two additional adapter modules.

  1. Localejbs/PGPDecryption: This module is used to decrypt the PGP message. It should be the first to be used so that the file is decrypted before content conversion.
  2. AF_Modules/MessageTransformBean: This module is used to convert Flat file to XML message with the first line in a single segment. It should be used next so that the file is converted from Flat to the XML structure.
  3. CallSAPAdapter: This is the default module of the channel and must be the last module to be used.

Module Configuration

Once the modules have been specified, create the Sender Data Type as specified in the pattern below. All the elements of the line will be stored in ‘Record,’ and multiple occurring nodes will be enabled in ‘RecordSet.’

Message Types

For our requirements, we need only three fields from each line of CSV so that our receiver structure looks like below. You can change it to suit your objectives.

External Message Config.

Moving ahead, create a Message Mapping, and define an Advanced User Defined Function (UDF).

Split String Config

The UDF takes the whole line as a string and splits it at each page. You can update the delimiter to whatever is used in the file. 

Output 1: This delivers the second string after the split.

Output 2: This delivers the fifth string after the split.

You can change the number and position of outputs according to your needs.

Configure the mapping in the manner illustrated below.

Mapping

 

Test this message mapping. 

Message mapping

Create an Integrated Configuration for this scenario and activate your objects. This should decrypt the encrypted PGP message and split the elements successfully. 

Handle PGP Encryption and XML to CSV Conversion in the Recruiter Channel

Create ESR and Integration Directory objects as usual, but in the Receiver File Channel instead of using File Content Conversion, use Adapter Modules in the sequence mentioned below. 

Module Configuration Sequence

  1. Localejbs/AF_Modules/StrictXml2PlainBean: This module is used to convert XML to CSV.
  2. Localejbs/PGPEncryption: This module is used to encrypt the outgoing message.

Following the above-mentioned steps, you can successfully handle File content conversion along with PGP Encryption/Decryption. These steps will work with any adapter that supports enhancement through adapter modules. Please note that while using the default File content conversion provided by PI/PO, File adapter will not work with PGP encrypted messages.

Want to know more?

SAP Cloud Private vs Public
Blog
SAP S/4HANA Cloud Editions: Private vs. Public Cloud—which is right?
August 27 , 2024
SAP Upgrade guide
Blog
SAP S/4HANA upgrade guide: Why upgrading to higher version is more crucial than ever
January 29 , 2024
How to Generate and Import SSH Keys in SAP PIPO
Blog
How to Generate and Import SSH Keys in SAP PI/PO?
October 18 , 2023

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
clutch Badge

© 2024 Kellton