

headerLine as Field1,Field2,Field3 then receiver channel shows error as 'Channel has not been correctly initialized and cannot process messages'.Įven i tried with Header. The above configuration works fine and generates file in target folder. My Target Message structure is as follows:Īnd my FCC parameters in File receiver (NFS) to create CSV file. Please note that while using the default File content conversion provided by PI/PO, File adapter will not work with PGP encrypted messages.By Configuring FCC in File receiver channel, i am not able to get the header line (Field names) in my target CSV file by using NameA.addHeaderLine /NameA.headerLine. These steps will work with any adapter that supports enhancement through adapter modules. Localejbs/PGPEncryption: This module is used to encrypt the outgoing message.įollowing the above-mentioned steps, you can successfully handle File content conversion along with PGP encryption/decryption.Localejbs/AF_Modules/StrictXml2PlainBean: This module is used to convert XML to CSV.Handle PGP Encryption and XML to CSV Conversion in the Recruiter ChannelĬreate 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. This should decrypt the encrypted PGP message and split the elements successfully. You can change the number and position of outputs according to your needs.Ĭonfigure the mapping in the manner illustrated below.Ĭreate an Integrated Configuration for this scenario and activate your objects. Output 2: This delivers the fifth string after the split. Output 1: This delivers the second string after the split. If you have selected File Content Conversion as the Message Protocol, you can convert a text file with complex structures to an XML source format. The Transport Protocol is File System (NFS).
#File content conversion in sap pi at receiver general update#
You can update the delimiter to whatever is used in the file. If you are developing a module for the adapter and want to access the file name in the module, see SAP Note 819761.

This function can only be used if the file isn’t encrypted. 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. The UDF takes the whole line as a string and splits it at each page. Prerequisites In the receiver file/FTP adapter, you have selected File Content Conversion as the Message Protocol. Moving ahead, create a Message Mapping, and define an Advanced User Defined Function (UDF). You can change it to suit your objectives. All the elements of the line will be stored in ‘Record,’ and multiple occurring nodes will be enabled in ‘RecordSet.’įor our requirements, we need only three fields from each line of CSV so that our receiver structure looks like below. Once the modules have been specified, create the Sender Data Type as specified in the pattern below. CallSAPAdapter: This is the default module of the channel and must be the last module to be used.It should be used next so that the file is converted from Flat to the XML structure. SAP XI is an integration technology and platform for. C and have many more adapters to communicate with legacy systems.

XI Engine also support previous releases of SAP R/3 like 4.

