on 12-12-2008 7:58 AM
Hi,
I have a scenario from IDOC to JDBC. I have a problem in mapping because I want to send Data from Control Record of IDOC to JDBC. Here is an example of my IDOC Data.
<IDOC>
<Control Record>
<Data1>XX</Data1>
</Control Record>
<Item>a</item>
<item>b</item>
<item>c</item>
</IDOC>
From this IDOC, data will be inserted into record in JDBC. The number of record depends on no. of tag <item> in each idoc. Therefore, in my mapping, i map <item> with field access. However, I also want to get data in <data1> in Control Record to each record of JDBC. The problem is that only my first item record can get data from control record.I already try to change the context in mapping but it still doesn't work. I think it's because I map <item> with access ;therefore, SAP XI could not get data from <control record> which is a higher level.
Any solution for this? or Is it possible to write a UDF to get data from Control Record in IDOC in mapping? If so, please provide me a sample code for this UDF?
Thanks,
Pavin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.