Posted: Wed Feb 03, 2010 10:07 pm Post subject: XML
помогите плиз!
первый раз в жизни пытаюсь вывести отчет XML....
когда создаю преобразование выдает ошибку :"undeclared namespace prefix 'xsl'
в alv отчете, где собираю данные
Code:
***************************************
DATA: BEGIN OF obraz1 OCCURS 100,
orgeh LIKE pa0001-orgeh,
stext LIKE hrp1000-stext,
kolvo TYPE i,
jen TYPE i,
kerspe TYPE i,
slujb TYPE i,
dokmex TYPE i,
robrem TYPE i,
vodi TYPE i,
komps TYPE i,
rjdps TYPE i,
talm TYPE i,
insh TYPE i,
krim TYPE i,
END OF obraz1.
TYPES: BEGIN OF obraz,
orgeh LIKE pa0001-orgeh,
stext TYPE hrp1000-stext,
kolvo TYPE i,
jen TYPE i,
kerspe TYPE i,
slujb TYPE i,
dokmex TYPE i,
robrem TYPE i,
vodi TYPE i,
komps TYPE i,
rjdps TYPE i,
talm TYPE i,
insh TYPE i,
krim TYPE i,
END OF obraz.
TYPES:
xmlline TYPE obraz.
DATA: lt_xml TYPE STANDARD TABLE OF xmlline.
******************************************************
* бла-бла-бла
**************************************************
FORM xml_load.
CALL TRANSFORMATION z_alv_xml2
SOURCE table = obraz1
RESULT XML lt_xml.
перед <xsl:for-each select="data_tab">
нужно добавить <xsl:transform version="1.0" encoding="UTF-8"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:sap="http://www.sap.com/sapxsl">
ну и соответственно </xsl:transform> после </xsl:for-each> тоже не забывайте!
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG. SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG. Every effort is made to ensure content integrity. Use information on this site at your own risk.