on 01-13-2010 10:12 AM
Hi all,
I use abap mapping to create XML from Idoc, I use if_ixml interface to do it.
In my code I use method get_elements_by_tag_name (on object if_ixml_document)
to find all elements with the same name:
I checked my mapping in SXI_MAPPING_TEST and it is working when I put formatted idoc
(with many lines, one tag in one line).
But when I put one long line with all tags in one line (XI receives idoc in such format from ECC)
method get_elements_by_tag_name does not return any result.
I checked also others searching methods but without results.
It looks like only first 255 characters are processed. When element, which I am looking for,
is in further position, it is not finding.
Does anyone know what is a root cause of such situation and how can I resolve my problem?
Best Regards,
Przemek
Hi Przemek,
method get_elements_by_tag_name() worked fine for me, even mapping IDocs. I assume it is just the test environment but the during runtime it will work. So make one runtime test and then test with formatted XML.
Regards,
Udo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
did you have a look at abap mapping section of the wiki ?
http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=79955426
there are so many coding samples
Regards,
Michal Krawczyk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
get_elements_by_tag_name work fine for all my abap mappings so you must be doing wrong something else
the code from this page works for IDOCs also:
http://help.sap.com/saphelp_nw04/helpdata/en/ba/e18b1a0fc14f1faf884ae50cece51b/content.htm
with small changes to the nodes so maybe compare it with yours
Regards,
Michal Krawczyk
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.