Recently went through a question on content conversion for receiver file adapter, where the xml contains multiple header and detail lines. The question is posted here –
- File Content Conversion In Sap Pi At Receiver For Sale
- File Content Conversion In Sap Pi At Receiver System
- Sap Pi 7.1
- File Content Conversion In Sap Pi At Receiver Free
- File Content Conversion In Sap Pi At Receiver Cable
Hi Karthik, In Receiver file adapter. message protocol select the option file content conversion from teh drop down menu. After that at the end you can see the Content Conversion Parameters in that give your root name in the place of Recordset Structure. The Receiver File Adapter is configured, using the following settings: Choose File Content Conversion as the Message Protocol. You may or may not give the ‘addHeaderLine’ parameter. For the ‘fieldSeparator’ parameter you need to give field separator for both list and substructure (referring to the data type above). The same structure was given in help.sap.com for file adapter content conversion receiver side. Please see that help, sure you will get an idea. The Strcutres are different, Help.sap.
Renato russo the stonewall celebration concert rar album. Worked on this problem via XSLT which saves the pain for content conversion. Using XSLT, we can convert any xml into csv / other text formats without worrying for XML hierarchy
![Keygen php maker extensions download Keygen php maker extensions download](/uploads/1/1/9/7/119713592/506234283.jpg)
Structure for this example is as mentioned below –
Output from the interface should be as mentioned below
Source XML data:
one option is obviously trying via content conversion or message transformation bean which might need some tricks but knowing XSLT gives an edge here.
This requirement can be achieved via a simple XSLT mapping. The idea behind that is that just print the segments we need in the output and pass to the receiver file adapter as it is. In other words, no need to use the content conversion
Here is the XSLT, which would provide us the desired output.
Points to note:
- I have used semicolon (;) as the field separator here. Any other separator can be used.
- If field length is to be shortened, XPath function substring can be used to shorten the fields.
- Similarly spaces can be added using the XPath functions by adding spaces to the fields (Field fixed length type)
- XSLT can also be adjusted in the receiver file adapter but unit testing is as straight forward in that case as in case of XSLT mapping.
Conclusion
Receiver File content conversion has got an escape route and that is XSLT.
Simple or complex, it is a matter of few lines of code in XSLT, rather than a brainstorming in FCC :).
File Content Conversion In Sap Pi At Receiver For Sale
Symptom
You use the File Adapter with File Content Conversion. The incoming/outgoing file is PGP encrypted and you would like to decrypt it with the PGPDecryption module. The messages in the scenario fail with the following error:
![File Content Conversion In Sap Pi At Receiver File Content Conversion In Sap Pi At Receiver](/uploads/1/1/9/7/119713592/177082488.png)
Caused by: com.sap.aii.af.lib.mp.module.ModuleException: File is no valid PGP Message, could not apply decryption
at com.sap.aii.adapter.pgp.ejb.api.PGPDecryptionBean.process(PGPDecryptionBean.java:157)
at com.sap.aii.adapter.pgp.ejb.api.PGPDecryptionBean.process(PGPDecryptionBean.java:157)
Read more..
Environment
File Content Conversion In Sap Pi At Receiver System
- SAP enhancement package 1 for SAP NetWeaver Process Integration 7.1
- SAP NetWeaver 7.3
- SAP enhancement package 1 for SAP NetWeaver 7.3
- SAP NetWeaver 7.4
- SAP NetWeaver 7.5
- SAP Process Integration, secure connectivity add-on
Sap Pi 7.1
Product
SAP NetWeaver 7.3 ; SAP NetWeaver 7.4 ; SAP NetWeaver 7.5 ; SAP NetWeaver Process Integration, secure connectivity add-on 1.0 ; SAP enhancement package 1 for SAP NetWeaver 7.3 ; SAP enhancement package 1 for SAP NetWeaver Process Integration 7.1
Keywords
PGPDecryptionBean, PGPDecryption, MessageTransformBean, File is no valid PGP message, File Content Conversion, FCC, File adapter, decryption, Process Integration 7.11, PI 7.11, Process Integration 7.30, PI 7.30, Process Integration 7.31, PI 7.31, Process Orchestration 7.40, PI 7.40, PO 7.40, Process Orchestration 7.50, PI 7.50, PO 7.50, NetWeaver, XI, Secure Connectivity Add-on , KBA , BC-XI-CON-SFT , Secure File Transfer Protocol Adapter , How To
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).File Content Conversion In Sap Pi At Receiver Free
Search for additional results
File Content Conversion In Sap Pi At Receiver Cable
Visit SAP Support Portal's SAP Notes and KBA Search.