Hi,
Please help me with below issue:
SAP PI 7.3.1 - Dual stack-> ICO configuration
SOAP outbound sync to Proxy Inbound Sync.
PI receives ID number -> Proxy returns details pertaining to the ID.
PI has to further generate excel file in .xlsx format additionally from the proxy response & send it to soap with XML data + .xlsx sheet with base64 binary encoding.
I'm trying to use attached xml to xlsx java encoding & further translate to base 64 encoding.
I found the java code from another blog but I'm unable to understand how to modify this as udf so that I can map this udf just to the File field.
Since I'm expecting to do something like below.
Source 1,2,3,4 is mapped to Target1 ,2,3,4 & source 1,2,3,4 (return as XML) is also input to File base64 field where in I'm trying to insert the udf.
Source segment1 occurs multiple times but just 1 File gets generated with multiple records.
Source | DT | | | Target | DT |
Segment 1 | 0-unbounded | | | Segment 1 | 0-unbounded |
Source1 | xsd:string | | | Target1 | xsd:string |
Source2 | xsd:string | | | Target2 | xsd:string |
Source 3 | xsd:string | | | Target3 | xsd:string |
Source 4 | xsd:string | | | Target4 | xsd:string |
| | | | | |
| | | | Segment 2 | 0-1 |
| | | | File | xsd:base64Binary |
I will use 2 udf's 1 for converting the xml string to xlsx
2nd for converting xlsx to base 64 Binary. I found the base64 code in other blog.
For xlsx udf I found java mapping but not sure how to modify it per my requirement. I have an idea that I need to import apachepoi under import instructions & modify the attached text file code to udf.Kindly please me with this requirement.