on 05-04-2007 12:40 AM
Hi all
I have this problem. I receieve this xml file:
<DESCRIPTION_DE />
<DESCRIPTION_FR />
<DESCRIPTION_IE />
<b><DESCRIPTION_PL>TEST PLOISH</DESCRIPTION_PL></b>
<DESCRIPTION_UK />
In this case I need to create a tag like the follow way
ITEM
<b>LAND1 = PL</b>
CTRYTXT = TEST PLOISH
But if I receieve the same file xml but with another order (like that)
<b><DESCRIPTION_DE > test languaje DE </ DESCRIPTION_DE ></b>
<DESCRIPTION_FR />
<DESCRIPTION_IE />
<DESCRIPTION_PL />
<DESCRIPTION_UK />
I need to create the next tag
ITEM
<b>LAND1 = DE</b> CTRYTXT = test languaje DE
In the original xml file, the name of the tag is different and the value too, but i need to mapping this tag at the same field in a BAPI.
Thks. BR
Jose,
Also you can use like this:
for Land1:
If (DESCRIPTION_DE)-Not-Null then send DE to Land1 else
if (DESCRIPTION_FR)-Not-Null then send FR to Land1 else
if (DESCRIPTION_IE)-Not-Null then send IE to Land1 else
if (DESCRIPTION_PL)-Not-Null then send PL to Land1 else
if (DESCRIPTION_UK)-Not-Null then send UK.
The same logic holds true for CTRYTXT also but pass the source instead of constant.
---Satish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Jose,
Then use 5 if statements like nested if.
---Satish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hey
what about if u receive values in both
<DESCRIPTION_DE />
<DESCRIPTION_PL/>
thanx
ahmad
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 | |
7 | |
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.