![]() ![]() ![]() The same implementation could be done using DOM parser too but DOM parser was performing slower for large files, so I am using regex which is better option as it is native to java. This XPath is used to get the file using regular expression (regex). It expects the File Name XPath to be provided in adapter configuration. This adapter module is developed using Enterprise Java Beans (EJB) 3.0. Once Adapter module is deployed, it can be used in any Communication Channel and any team member can reuse it just by supplying necessary configuration parameters. I got to develop many interfaces which using the above mentioned flow, and I was writing the same XSLT code (to set the file name in dynamic configuration) in all the mapping so I decided to write the adapter module which perform the same task that XSLT code was doing. ![]() Variable Substitution didn’t work for me as the file name was not available until Receiver File/SFTP adapter (during transformation it was ignored, it was our business requirement) To set filename in Dynamic Configuration (ASMA), I used XSLT mapping (and there were few transformations also). File name is supplied in the payload which is coming from Sender SAP system. I got a business requirement where SAP ECC is sending data using outbound ABAP Proxy to PI and PI is receiving the same and creating the file at FTP/SFTP server (Proxy to file scenario).
0 Comments
Leave a Reply. |