File Content Conversion In Sap Pi At Receiver

Posted on admin

SAP PI; SAP ABAP. XI/PI: File Content Conversion for Simple Structure. By Riyaz / 10 years ago. File Receiver Adapter with Content Conversion.

Name Value Header.keyFieldValue H Item.keyFieldValue I Header.fieldFixedLengths 1,3,3 Item.fieldFixedLengths 1,3,3 Header.fieldNames key1,RecordID,PlantName Item.fieldNames key2,MaterialID,Quantity Header.endSeparator 'nl' Item.endSeparator 'nl' ignoreRecordSet true Sender Communication channel FILETOFILERECEIVERCC. Specify the following in the sender cc. Adapter Type: FILE Transport Protocol: FILE SYSTEM(NFS) Message Protocol: File content conversion Adapter Engine: Integration Server Specify the target directory and the file name and file construction mode: add time stamp. Content Conversion Parameters: Record Structure: Header,Item. Name Value Header.beginSeparator Header Item.beginSeparator Item Header.fieldFixedLengths 10 Item.fieldFixedLengths 10 Header.endSeparator 'nl' Item.endSeparator 'nl' Create a new sender agreement and specify the outbound interface, service and sender communication channel. Create a new Receiver determination and specify the receiver service and interface.

File Content Conversion In Sap Pi At Receiver

Create a new Interface determination and specify the name of the Interface mapping. Create a new Receiver agreement and specify the receiver communication channel.

Note: After each step save and activate it. Some time we need to add the text line in the File content conversion.

Sap Modules List

Let's see the sample scenario. Consider the above txt file is the source file of xi. Now we fill the File content Conversion parameter such as Document name, Namespace, record set Structure, Key field name. Now we need to specify the FCC parameters. HeaderRecord.fieldSeparator:, HeaderRecord.fieldNames: RecordType,SenderId,RecipientId,Dateofpreparation,Timeofpreparation, UniqueReferencenumber,FileType HeaderRecord.keyFieldValue: 'H' HeaderRecord.enclosureSign: ' HeaderRecord.enclosureSignEnd: ' Same like specify the Detail and TrailerRecord fields. Result: If you see the result the text line contains field separator.But the whole line transferred in a single field with the help of enclosureSign,enclosureSignEnd parameter.