on 01-09-2008 8:01 PM
Hi Experts,
I am creating a message mapping for two structures.but my problem here is i want to map constant values for the target structure based on the receiver name.I have 11 vendors at receiving end.Based on the vendor name i need to map Vendor agency code and Shared secrete code which are not coming from sender structure and those values are constants.Let say i have 11 vendors as below.
Vendor Name Agency code Secret code
V1 A1 S1
V2 A2 S2
V3 A3 S3
V4 A4 S4
I want to map the fields agency code and Secret codes to the respective vendor based on the vendor name using message mapping.Please help me on this.
Thank You,
Hi,
The problem is still not clear to me. Could you please explain more?
raj.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raj,
I have a source structure in which i am getting vendor name(receiver).For each vendor i have 'Agency code' and 'Shared Secrete code' which are not coming from source structure and are constants.Different vales for each vendor.So i want to map these to the receiver structure based on the Vendor name.Can i do it with constants?
Thank You,
Hi,
You can do with FixValues instead of using constants. Please correct if my understanding is wrong.
Let consider the below example.
Source:
<Record>
<VendorNumber>1000</VendorNumber>
</Record>
Target:
<Record>
<Vendor_AgencyCode/>
<Vendor_SecretCode/>
</Record>
For the above example what u can do is,
VendorNumber -
>FixValues--->Vendor_AgencyCode (1)
VendorNumber -
>FixValues--->Vendor_SecretCode (2)
Maintain Vendor number and AgencyCode in FixValues for (1)
Maintain Vendor number and SecretCode in FixValues for (2)
Please revert back If I understood ur reqmt wrong!!
raj.
Hi,
In the example which I mentioned above can u see what is the input for FixValues. It's the vendor number. FixValues are nothing but table which maintain the keyvalue pairs. If you pass V5 to FixValues it will give A5 as the output. Similarly if you pas V4 it will give A4.
I would suggest you to simulate the example which I've given and see the functionality of it.
raj.
User | Count |
---|---|
81 | |
25 | |
12 | |
9 | |
7 | |
6 | |
5 | |
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.