on 08-11-2008 2:40 AM
Hi
I have a payload in a field and that payload needs to be mapped to IDOC sturcture. As per my understanding I will have to write java mapping for the same.
I don't have any background of java, can anyone help me do this stuff or give me some inputs for the same.
Regards
Ria
resolved
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ria,
Can you paste the sample payload that comes in a field.
Thanks
SaNv...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Ria,
Does the Source field consists of payload, then there must be original payload for which you have created Source Structure in XI right.
I think your source structure look like this if I'm not wrong:
<Data Type>
< Field>
<Field>
<Field-Payload>
</Field-Payload>
</Field>
</Field>
</DataType>
If this is so, you can split the values in the field by FCC. If your field consists of simple payload you can use String functions to extract the value and map it to IDOC field.
Best Regards
Praveen K
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>I have a payload in a field and that payload needs to be mapped to IDOC sturcture
Does field contains payload as fixed length data)?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ria,
This can be done from Graphical Mapping as well. You have to write a UDF in Java to split the Payload String in that field and can store these splitted values in Global Container varaibles from within that UDF itself. Now at each Target field (in target IDoc Structure) write a UDF to retreive the corresponding values for the Global Container and map to the target field.
But I am not sure how efficient this solution would be performance wise - but it is cetainly a workaround if you don't want to use Java mapping.
Regards,
Suddha
why exactly do u need a java mapping?
java mapping:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.