cancel
Showing results for 
Search instead for 
Did you mean: 

Content Conversion

Former Member
0 Kudos

Hi

I need to cr8 the following xml in content conversion

<?xml version="1.0" encoding="UTF-8"?>

<EXCHANGE_RATE01>

<IDOC>

<E1EXCHANGE_RATE>

<E1BP1093_0>

<RATE_TYPE/>

<FROM_CURR/>

<TO_CURRNCY/>

<VALID_FROM/>

<EXCH_RATE/>

</E1BP1093_0>

</E1EXCHANGE_RATE>

</IDOC>

</EXCHANGE_RATE01>

I have 4 levels here <EXCHANGE_RATE01> , <IDOC> , <E1EXCHANGE_RATE> , <E1BP1093_0>

Can u convert it in the content conversion?

i succeded only with 3

thx,Shai

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member187587
Contributor
0 Kudos

Hi shai.

You mean file content convertion or using the Item field tool??

Former Member
0 Kudos

file content conversion

former_member187587
Contributor
0 Kudos

What scneario?

File - > IDOC ?

Former Member
0 Kudos

yes

this is the xml

<?xml version="1.0" encoding="UTF-8" ?>

<EXCHANGE_RATE01>

<IDOC>

<E1EXCHANGE_RATE>

<E1BP1093_0>

<RATE_TYPE>M</RATE_TYPE>

<FROM_CURR>USD</FROM_CURR>

<TO_CURRNCY>ILS</TO_CURRNCY>

<VALID_FROM>01032006</VALID_FROM>

<EXCH_RATE>4.7</EXCH_RATE>

</E1BP1093_0>

</E1EXCHANGE_RATE>

</IDOC>

</EXCHANGE_RATE01>

former_member187587
Contributor
0 Kudos

Are you sure you need 4 levels in order to fill the Idoc structur??

what if you craete a 2 level XML structure with the

<EXCHANGE_RATE01> as the first level and the <IDOC> as second level and then just map the fields ...if you have N

<IDOC> segments then you can do 1:n mapping to the target Idoc structure...

If you have a 1:1 scenario like single file to single idoc its even easier...

Hope that's help..

If you have some more details..please provide

Nimrod

Former Member
0 Kudos

under IDOC I have another 2 fields as I already mentioned

former_member187587
Contributor
0 Kudos

You have more then 1 <RATE_TYPE> in the same structure under the IDOC segment????

In the Buisness view seems to me that this structure is enought:

<EXCHANGE_RATE01> 1...1

<IDOC> 1...n

<E1EXCHANGE_RATE> 1...1

<E1BP1093_0> no need for that node...

<RATE_TYPE>M</RATE_TYPE> 1...1

<FROM_CURR>USD</FROM_CURR> 1...1

<TO_CURRNCY>ILS</TO_CURRNCY>1...1

<VALID_FROM>01032006</VALID_FROM>1...1

<EXCH_RATE>4.7</EXCH_RATE> 1...1

is this the occurance you expect?

Former Member
0 Kudos

yes

my IDOC structure contains 3 levels

I cannot ignore and not to map one of them

because it wont pass the varibables