on 12-02-2012 12:35 PM
Hi
I have the following problem:
1. Taking one file and splitting into multiple files, one for each Company Code in the source message (File adater to file adapter)
2. For the Target files, the file name must be the original file name, but prefixed with the Company Code
3. The Company Code itself is not part of the target message content.
So far, my attempts result in each target file name getting prefixed with the same Conpany Code, which is the first one.
Any ideas please?
Regards
Steve
Hello Stephen,
When using multi-mapping, ASMA will only take one value and will use it for the rest of the messages. You should use variable substitution instead. There is already a link that Praveen provided.
Hope this helps,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Stephen,
>>3. The Company Code itself is not part of the target message content.
Do you mean,you can not use variable substitution since the company code is not part of target message content/payload.
How you distinguish source message for each company code?
Mean while, check these blogs
Regards,
Praveen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Stephen,
Now I got your requirement. At this moment, I am not getting any other easy solution. But you can check for My blog http://scn.sap.com/community/pi-and-soa-middleware/blog/2011/03/29/multi-mapping-assigning-asmas-for... which is a exact match for your requirement. The solution is generic and reusable for any other such requirements.
Instead of FM in abap (for PI dual stack), may be you can also use PI value mapping (for PI single Java stack) as a temporary persistence to store and retrieve sequential numbers in order to fetch custom headers stored during mapping.
Regards,
Praveen Gujjeti
Another solution would be, create a custom adapter module with configurable RFC/JCO client functionality to call ECC system to fetch required information and then set dynamic configuration header i.e., FileName for each child message.
The module should be use in receiver comm. channel.
- Praveen
Hi All,
Can we use Graphical Variable in Message mapping for variable Substtution Method at receiver File adapter?
If Dynamic Configuration Supports Graphical Variable in Message mapping, then we can achive this Stephen requirement easily right.
Hi Stephen,
If you are in SAP PI 7.1 and higher versions, you can use graphical variable in Message Mapping.
Please this link SAP PI 7.1 Mapping Enhancements Series: Using Graphical Variable.
Here you can map your company code to graphical variable and from graphical variable to variable substitution.
Regards,
Sreeni.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.