Geting group id in XSLT
How to get group id?
Looks like this is not returning anything when group is assigned to:
<xsl:variable name="AssignedToID">
<xsl:value-of select="ddwrt:UserLookup(string(@AssignedTo), 'ID')"/>
</xsl:variable>
Hi lolobo,
Thanks for posting your issue, could you try below mentioend
<xsl:value-of select="ddwrt:UserLookup(string($Userid) ,'ID')" />
Also, browse the below mentioned URLs for more details
http://blogs.msdn.com/b/joshuag/archive/2008/06/03/getting-the-current-user-name-or-id-in-sharepoint-using-sharepoint-designer-no-code.aspx
http://msdn.microsoft.com/en-us/library/office/ff806158(v=office.14).aspx
I hope this is helpful to you, mark it as Helpful.
If this works, Please mark it as Answered.
Regards,
Dharmendra Singh (MCPD-EA | MCTS)
Blog : http://sharepoint-community.net/profile/DharmendraSingh
Similar Messages
-
XSLT Grouping & Muenchian Method STRANGE PROBLEM
Hi Everyone!
I'm having a problem using a XMLTRANSFORM for grouping Muenchian Method.
There are three oracle databases:
DB1: Win2k3, Oracle 9.2.0.7 Standard,
DB2: Win2k3, Oracle 9.2.0.7 Enterprise,
DB3: WinXP, Oracle 10.2.0.1 XE.
DB1 and DB2 are installed on different computers.
And there are two scripts:
S1: select
xmltransform(xmltype(
'<PROJECTS>
<PROROW>
<id>2</id><name>Customer 1</name><project_name>Project 2</project_name>
</PROROW>
<PROROW>
<id>1</id><name>Customer 1</name><project_name>Project 1</project_name>
</PROROW>
<PROROW>
<id>3</id><name>Customer 2</name><project_name>Project 1</project_name>
</PROROW>
</PROJECTS>'),
xmltype(
'<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" encoding="UTF-8" version="1.0" indent="yes"></xsl:output>
<xsl:key name="rows" match="PROROW" use="name" />
<xsl:template match="PROJECTS">
<xsl:element name="ROOT">
<xsl:apply-templates
select="PROROW[generate-id(.) = generate-id(key(''rows'', name)[1])]">
<!--<xsl:value-of select="key(''rows'', name)">-->
</xsl:apply-templates>
</xsl:element>
</xsl:template>
<xsl:template match="PROROW">
<b><xsl:value-of select="name" /></b>
<ul>
<xsl:for-each select="key(''rows'', name)">
<li>
<xsl:element name="COUNT_KEYS">
<xsl:value-of select="count(key(''rows'', name))" />
</xsl:element>
<a href="projects_results.xml?project={id}">
<xsl:value-of select="project_name" />
</a>
</li>
</xsl:for-each>
</ul>
</xsl:template>
</xsl:stylesheet>')) x
from dual;S2: select
xmltransform(xmltype(
'<REPORT xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="report.xsd">
<CONCEPT ID="0" TYPE="0">
<ROW>
<COL NAME="REG_ID">0</COL>
<COL NAME="UNIT_ID">0</COL>
<COL NAME="UNIT">RAPORT ZBIORCZY</COL>
<COL NAME="LP_OPIS">0</COL>
</ROW>
</CONCEPT>
<CONCEPT ID="0" TYPE="1">
<ROW>
<COL NAME="REG_ID">0</COL>
<COL NAME="UNIT_ID">0</COL>
<COL NAME="UNIT">RAPORT ZBIORCZY</COL>
<COL NAME="LP_OPIS">9.93a</COL>
</ROW>
</CONCEPT>
<CONCEPT ID="0" TYPE="1">
<ROW>
<COL NAME="REG_ID">0</COL>
<COL NAME="UNIT_ID">0</COL>
<COL NAME="UNIT">RAPORT ZBIORCZY</COL>
<COL NAME="LP_OPIS">9.94</COL>
</ROW>
</CONCEPT>
<CONCEPT ID="0" TYPE="1">
<ROW>
<COL NAME="REG_ID">0</COL>
<COL NAME="UNIT_ID">0</COL>
<COL NAME="UNIT">RAPORT ZBIORCZY</COL>
<COL NAME="LP_OPIS">10.44</COL>
</ROW>
</CONCEPT>
<CONCEPT ID="0" TYPE="1">
<ROW>
<COL NAME="REG_ID">0</COL>
<COL NAME="UNIT_ID">0</COL>
<COL NAME="UNIT">RAPORT ZBIORCZY</COL>
<COL NAME="LP_OPIS">10.93</COL>
</ROW>
</CONCEPT>
<CONCEPT ID="0" TYPE="1">
<ROW>
<COL NAME="REG_ID">0</COL>
<COL NAME="UNIT_ID">0</COL>
<COL NAME="UNIT">RAPORT ZBIORCZY</COL>
<COL NAME="LP_OPIS">10.94</COL>
</ROW>
</CONCEPT>
</REPORT>'),
xmltype(
'<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" encoding="UTF-8" version="1.0" indent="yes"></xsl:output>
<xsl:key name="rows" match="CONCEPT" use="concat(@ID, @TYPE)" />
<xsl:template match="REPORT">
<xsl:copy>
<xsl:apply-templates select="@*"/>
<xsl:apply-templates
select="CONCEPT[generate-id(.) = generate-id(key(''rows'', concat(@ID, @TYPE))[1])]"/>
</xsl:copy>
</xsl:template>
<xsl:template match="CONCEPT">
<xsl:copy>
<xsl:apply-templates select="@*"/>
<!--<xsl:value-of select="count(key(''rows'', concat(@ID, @TYPE)))"/>|-->
<xsl:for-each select="key(''rows'', concat(@ID, @TYPE))">
<xsl:copy-of select="ROW"/>
</xsl:for-each>
</xsl:copy>
</xsl:template>
<xsl:template match="@*">
<xsl:copy-of select="."/>
</xsl:template>
</xsl:stylesheet>')) x
from dual;S1 comes from http://sourceware.org/ml/xsl-list/2000-07/msg00458.html.
S2 is mine.
The results of executing these scripts are:
S1 on DB1 & DB2:
<ROOT>
<b>Customer 1</b>
<ul>
<li>
<COUNT_KEYS>1</COUNT_KEYS>
<a href="projects_results.xml?project=2">Project 2</a>
</li>
</ul>
<b>Customer 2</b>
<ul>
<li>
<COUNT_KEYS>1</COUNT_KEYS>
<a href="projects_results.xml?project=3">Project 1</a>
</li>
</ul>
</ROOT>S2 on DB1 & DB2 is variable. For example:
<REPORT xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="report.xsd">
<CONCEPT ID="0" TYPE="0">
<ROW>
<COL NAME="REG_ID">0</COL>
<COL NAME="UNIT_ID">0</COL>
<COL NAME="UNIT">RAPORT ZBIORCZY</COL>
<COL NAME="LP_OPIS">0</COL>
</ROW>
</CONCEPT>
<CONCEPT ID="0" TYPE="1">
<ROW>
<COL NAME="REG_ID">0</COL>
<COL NAME="UNIT_ID">0</COL>
<COL NAME="UNIT">RAPORT ZBIORCZY</COL>
<COL NAME="LP_OPIS">9.93</COL>
</ROW>
<ROW>
<COL NAME="REG_ID">0</COL>
<COL NAME="UNIT_ID">0</COL>
<COL NAME="UNIT">RAPORT ZBIORCZY</COL>
<COL NAME="LP_OPIS">9.94</COL>
</ROW>
</CONCEPT>
</REPORT>I obtained results with 2 (first two) and 5 (correct result!) <ROW> elements for <CONCEPT ID=”0” TYPE=”1”>.
When I run S3 cyclic it returns (randomly): 2, 2, 2, 2, 5, 5, 2, 2, 2, 2, 2, 2, 2, 5, 5, 5, 5, 2, ,2, 2, 2,5, 5, 5, 5, 5, 2, 2, 2 ROWs for 2nd CONCEPT. Sounds impossible? 1st CONCEPT is always with 1 <ROW>.
I noticed that, when I remove xsi:noNamespaceSchemaLocation="report.xsd" attribute or set it to the value of not registered schema, S2 always return one (the first from the top) ROW for both CONCEPTs.
I don't think it is a problem of my report.xsd schema, but the content of this schema is:
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:oraxdb="http://xmlns.oracle.com/xdb" oraxdb:flags="291" oraxdb:schemaURL="report.xsd" oraxdb:schemaOwner="SYS" oraxdb:numProps="7">
<xs:element name="REPORT" type="reportType" oraxdb:propNumber="2447" oraxdb:global="true" oraxdb:SQLName="REPORT" oraxdb:SQLType="reportType229_T" oraxdb:SQLSchema="SYS" oraxdb:memType="258"/>
<xs:complexType name="reportType" oraxdb:SQLType="reportType229_T" oraxdb:SQLSchema="SYS">
<xs:sequence>
<xs:element maxOccurs="unbounded" name="CONCEPT" oraxdb:propNumber="2453" oraxdb:global="false" oraxdb:SQLName="CONCEPT" oraxdb:SQLType="CONCEPT230_T" oraxdb:SQLSchema="SYS" oraxdb:memType="258" oraxdb:SQLInline="true" oraxdb:MemInline="false" oraxdb:JavaInline="false" oraxdb:SQLCollType="CONCEPT236_COLL" oraxdb:SQLCollSchema="SYS">
<xs:complexType oraxdb:SQLType="CONCEPT230_T" oraxdb:SQLSchema="SYS">
<xs:sequence>
<xs:element maxOccurs="unbounded" name="ROW" oraxdb:propNumber="2452" oraxdb:global="false" oraxdb:SQLName="ROW234" oraxdb:SQLType="ROW231_T" oraxdb:SQLSchema="SYS" oraxdb:memType="258" oraxdb:SQLInline="true" oraxdb:MemInline="false" oraxdb:JavaInline="false" oraxdb:SQLCollType="ROW234235_COLL" oraxdb:SQLCollSchema="SYS">
<xs:complexType oraxdb:SQLType="ROW231_T" oraxdb:SQLSchema="SYS">
<xs:sequence>
<xs:element maxOccurs="unbounded" name="COL" oraxdb:propNumber="2451" oraxdb:global="false" oraxdb:SQLName="COL" oraxdb:SQLType="COL232_T" oraxdb:SQLSchema="SYS" oraxdb:memType="258" oraxdb:SQLInline="true" oraxdb:MemInline="false" oraxdb:JavaInline="false" oraxdb:SQLCollType="COL233_COLL" oraxdb:SQLCollSchema="SYS">
<xs:complexType oraxdb:SQLType="COL232_T" oraxdb:SQLSchema="SYS">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="NAME" type="xs:string" use="required" oraxdb:propNumber="2450" oraxdb:global="false" oraxdb:SQLName="NAME" oraxdb:SQLType="VARCHAR2" oraxdb:memType="1"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="ID" type="xs:short" use="required" oraxdb:propNumber="2448" oraxdb:global="false" oraxdb:SQLName="ID" oraxdb:SQLType="NUMBER" oraxdb:memType="3" oraxdb:memByteLength="2"/>
<xs:attribute name="TYPE" type="xs:short" use="required" oraxdb:propNumber="2449" oraxdb:global="false" oraxdb:SQLName="TYPE" oraxdb:SQLType="NUMBER" oraxdb:memType="3" oraxdb:memByteLength="2"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:schema>S1 on DB3:
<ROOT>
<b>Customer 1</b>
<ul>
<li>
<COUNT_KEYS>2</COUNT_KEYS>
<a href="projects_results.xml?project=2">Project 2</a>
</li>
<li>
<COUNT_KEYS>2</COUNT_KEYS>
<a href="projects_results.xml?project=1">Project 1</a>
</li>
</ul>
<b>Customer 2</b>
<ul>
<li>
<COUNT_KEYS>1</COUNT_KEYS>
<a href="projects_results.xml?project=3">Project 1</a>
</li>
</ul>
</ROOT>S2 on DB3
<REPORT xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="report.xsd">
<CONCEPT ID="0" TYPE="0">
<ROW>
<COL NAME="REG_ID">0</COL>
<COL NAME="UNIT_ID">0</COL>
<COL NAME="UNIT">RAPORT ZBIORCZY</COL>
<COL NAME="LP_OPIS">0</COL>
</ROW>
</CONCEPT>
<CONCEPT ID="0" TYPE="1">
<ROW>
<COL NAME="REG_ID">0</COL>
<COL NAME="UNIT_ID">0</COL>
<COL NAME="UNIT">RAPORT ZBIORCZY</COL>
<COL NAME="LP_OPIS">9.93a</COL>
</ROW>
<ROW>
<COL NAME="REG_ID">0</COL>
<COL NAME="UNIT_ID">0</COL>
<COL NAME="UNIT">RAPORT ZBIORCZY</COL>
<COL NAME="LP_OPIS">9.94</COL>
</ROW>
<ROW>
<COL NAME="REG_ID">0</COL>
<COL NAME="UNIT_ID">0</COL>
<COL NAME="UNIT">RAPORT ZBIORCZY</COL>
<COL NAME="LP_OPIS">10.44</COL>
</ROW>
<ROW>
<COL NAME="REG_ID">0</COL>
<COL NAME="UNIT_ID">0</COL>
<COL NAME="UNIT">RAPORT ZBIORCZY</COL>
<COL NAME="LP_OPIS">10.93</COL>
</ROW>
<ROW>
<COL NAME="REG_ID">0</COL>
<COL NAME="UNIT_ID">0</COL>
<COL NAME="UNIT">RAPORT ZBIORCZY</COL>
<COL NAME="LP_OPIS">10.94</COL>
</ROW>
</CONCEPT>
</REPORT>DB3 always generates good results for both scripts. <CONCEPT ID=”0” TYPE=”1”> always consists of 5 ROWs regardless of the attribute xsi:noNamespaceSchemaLocation value (schema registered or not). It is my computer at home. I decided to install oracle there because of the problems with DB1 and DB2. Unfortunately these are my DBs at work. So I need to run XMLTRANSFORM there.
IMHO problems of S2 derive from result of S1 - function count(key(''rows'', name))
always returns 1 regardless of number of rows. But this is only my supposition.
I don’t know what is going on. The results of S3 on DB1/2 make me sick.
I tried client 9.2.0.8, instant client 11.1.0.6.0 and no client – a job (transformation was inserted to a table) and this problem still exists.
Any suggestions?
Thanks in advice…
Tomek.Hi,
maybe you are right (I think similar), but I can't find any information about this bug on the Internet. So this is strange, if it is really a bug. I hope somebody used (or tried to use) this Muenchian Method in oracle 9.2.x, and can tell does it works or not.
In [Oracle9i XML Developers Kits|www.oracle.com/technology/tech/xml/xdk_sample/9ir2_xdkfaq.html] there is written:
"You can do the grouping in your XSLT stylesheet Steve Muench's Book "Building Oracle XML Applications" book dedicates a section in Chapter 9 to techniques for doing this kind of grouping in XSLT to present one- or multi-level break reports...
The technique that I present in steve's book was coined the (blush...) "Muenchian Method" for doing grouping in XSLT."
Thanks,
Tomek.
Edited by: tdomanek on 2009-03-15 17:14
Edited by: tdomanek on 2009-03-15 23:48 -
ABAP , JAVA And XSLT Mapping Doc's
Hi,
I am new to SAP XI Any body please send me the Doc's Related to ABAP, JAVA And XSLT Mappings. Thanks in Advance.
Regards
Kiran.BHi
Refer to
ABAP mapping:
How to Use ABAP Mapping in XI 3.0
JAVA mapping:
http://help.sap.com/saphelp_nw04/helpdata/en/bd/c91241c738f423e10000000a155106/frameset.htm (Java mapping)
XSLT mapping:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/01a57f0b-0501-0010-3ca9-d2ea3bb983c1
/people/prasadbabu.nemalikanti3/blog/2006/03/30/xpath-functions-in-xslt-mapping
/people/sreekanth.babu2/blog/2005/01/05/design-time-value-mappings-in-xslt
/people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping
XSLT Mapping with java enhancement
/people/pooja.pandey/blog/2005/06/27/xslt-mapping-with-java-enhancement-for-beginners
XSLT - /people/dirk.roeckmann/blog/2006/07/26/grouping-xml-with-xslt--from-muenchian-method-to-xslt-20
Regards,
Kumar.
Reward points if helpful!! -
Hi,
Can we use arrays in our XSLT mapping? if yes, please let me know with a example
Best Regards
DeepikaHi deepika,
There is no Arrays concept in the XSLT, but there are some ways.
check this links
http://bytes.com/groups/xml/87168-xslt-associative-arrays
http://www.velocityreviews.com/forums/t167975-xslt-associative-arrays.html
http://www.stylusstudio.com/xsllist/200409/post30980.html
http://www.stylusstudio.com/xsllist/200102/post41240.html
Regards
Ramesh -
XSLT Mapping : RFC Lookup using java helper class
Hi All,
I am doing RFC Lookup in xslt mapping using java helper class. I have found blog for the same (http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/05a3d62e-0a01-0010-14bc-adc8efd4ee14) However this blog is very advanced.
Can anybody help me with step by step approach for the same?
My basic questions are not answered in the blog as:
1) where to add the jar file of the java class used in xslt mapping.
I have added zip file of XSLT mapping in imported archived and using that in mapping.
Thanks in advace.
Regards,
RohanHi,
Can u please have look at this in detail , u can easily point out yourself the problem...
http://help.sap.com/saphelp_nw04/helpdata/en/55/7ef3003fc411d6b1f700508b5d5211/content.htm
Please observe the line,
xmlns:javamap="java:com.company.group.MappingClass
in XSLT mapping..
The packagename of class and class name and XSLT namespace should be matching...
Babu
Edited by: hlbabu123 on Sep 29, 2010 6:04 PM -
XSLT Related to the mapping part.
Hello all ,
Can You send me the Details related to XSLT for Mapping and Links Related to the same.
Thanks,.
SrinivasaHI Srinivas
Go through these
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/01a57f0b-0501-0010-3ca9-d2ea3bb983c1
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9692eb84-0601-0010-5ca0-923b4fb8674a
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/006aa890-0201-0010-1eb1-afc5cbae3f15
Some scenarios
/people/sap.user72/blog/2005/03/15/using-xslt-mapping-in-a-ccbpm-scenario
/people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping
see the below links
XSLT Mapping
/people/prasadbabu.nemalikanti3/blog/2006/03/30/xpath-functions-in-xslt-mapping
/people/sreekanth.babu2/blog/2005/01/05/design-time-value-mappings-in-xslt
/people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping
XSLT Mapping with java enhancement
/people/pooja.pandey/blog/2005/06/27/xslt-mapping-with-java-enhancement-for-beginners
XSLT - /people/dirk.roeckmann/blog/2006/07/26/grouping-xml-with-xslt--from-muenchian-method-to-xslt-20
Dynamically sending a mail to the PO creator using XSLT- ABAP Mapping -
/people/rahul.nawale2/blog/2006/11/01/dynamically-sending-a-mail-to-the-po-creator-using-xslt-abap-mapping
xpath functions in xslt mapping -/people/prasadbabu.nemalikanti3/blog/2006/03/30/xpath-functions-in-xslt-mapping
Lookups with XSLT - https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8e7daa90-0201-0010-9499-cd347ffbbf72
Using XSLT Mapping within the J2EE Adapter Framework -https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3823 [original link is broken] [original link is broken] [original link is broken] [original link is broken]
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/01a57f0b-0501-0010-3ca9-d2ea3bb983c1
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9692eb84-0601-0010-5ca0-923b4fb8674a
Cheers..
Vasu
<i>** Reward Points if found useful **</i> -
Wanna learn XSLT mapping??
hi forum, i want to learn xslt mapping, can the forum pls help me....
and i want to know in which case XSLT mapping is better than java mapping and Graphical mappingHi Sudeep,
XSLT mapping is just a mapping similar to Message mapping available in the SAP XI, the xml mapped file is said to be XSLT mapping, A tool available from Stylus studio . it will be graphical one and very easy one.assume if u want to add zero in front of the
field we have to add that many zeros in that field thats it.. similar kind of lot of functions ready made available.
this will make the performance of the system bit slow.. if we use XSLT mapping and BPM then the interface is in Task ( will have performance impact a lot )
Advantage is we can mappe as we wish and import the file that it.
see the below links
XSLT Mapping
/people/prasadbabu.nemalikanti3/blog/2006/03/30/xpath-functions-in-xslt-mapping
/people/sreekanth.babu2/blog/2005/01/05/design-time-value-mappings-in-xslt
/people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping
XSLT Mapping with java enhancement
/people/pooja.pandey/blog/2005/06/27/xslt-mapping-with-java-enhancement-for-beginners
XSLT - /people/dirk.roeckmann/blog/2006/07/26/grouping-xml-with-xslt--from-muenchian-method-to-xslt-20
Dynamically sending a mail to the PO creator using XSLT- ABAP Mapping -
/people/rahul.nawale2/blog/2006/11/01/dynamically-sending-a-mail-to-the-po-creator-using-xslt-abap-mapping
xpath functions in xslt mapping -/people/prasadbabu.nemalikanti3/blog/2006/03/30/xpath-functions-in-xslt-mapping
Lookups with XSLT - https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8e7daa90-0201-0010-9499-cd347ffbbf72
Using XSLT Mapping within the J2EE Adapter Framework -https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3823 [original link is broken] [original link is broken] [original link is broken] [original link is broken]
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/01a57f0b-0501-0010-3ca9-d2ea3bb983c1
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9692eb84-0601-0010-5ca0-923b4fb8674a
http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/frameset.htm
So go with XMLSpy or Stylus Studio editors for the XSLT Mapping.
You can get XSLT Tutorial from the Stylus Stutdio site. Refer
http://www.stylusstudio.com/xml_product_index.html
Thanks
Ram
Pls reward if answers are useful -
Hi All,
I have a scenario where i need to use XSLT mapping, I would like you to provide docs/links from where i can get info abt XSLT mapping.
Thanks in advance
ShivaHi Thomas,
XSLT Mapping
xpath functions in xslt mapping
Design time Value-mappings in XSLT
File to Multiple IDocs (XSLT Mapping)
XSLT Mapping with java enhancement
XSLT Mapping With JAVA Enhancement ( For Beginners)
XSLT - Grouping XML with XSLT - From Muenchian Method To XSLT 2.0
Dynamically sending a mail to the PO creator using XSLT- ABAP Mapping -
Dynamically sending a mail to the PO creator using XSLT- ABAP Mapping
xpath functions in xslt mapping -xpath functions in xslt mapping
Lookups with XSLT - https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8e7daa90-0201-0010-9499-cd347ffbbf72
Using XSLT Mapping within the J2EE Adapter Framework -https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3823 [original link is broken] [original link is broken] [original link is broken]
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/01a57f0b-0501-0010-3ca9-d2ea3bb983c1
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9692eb84-0601-0010-5ca0-923b4fb8674a
Regards
Goli Sridhar -
Hello,
For an XSLT mapping we needed data grouping. With XSLT 2.0 this is quite easy using <xsl:for-each-group>.
However XSLT 2.0 is not supported within XI.
In XSLT 1.0 Grouping data can be established using the Muenchian method. However this is a quite complicated method. I was wondering if there is anybody who knows if in the (near) future XSLT 2.0 is supported within XI?
Tnx
EmileJDeveloper 10.1.3 supports XSLT 2.0
http://www.oracle.com/technology/products/jdev/101/collateral/101/1013newfeatures.htm#Oracle%20XDK%2010g%20Release%202%20integration -
Hi Xperts,
Could any one send me XSLT transformation code with step by step procedure and some examples on XSLT transformation for XML to XML Convert.
please send me to: <b>[email protected]</b>
Best regards
GopiHI,
please see the below links
/people/r.eijpe/blog/2005/11/04/using-abap-xslt-extensions-for-xi-mapping - Using ABAP XSLT Extensions for XI Mapping
XSLT Mapping
/people/prasadbabu.nemalikanti3/blog/2006/03/30/xpath-functions-in-xslt-mapping
/people/sreekanth.babu2/blog/2005/01/05/design-time-value-mappings-in-xslt
/people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping
XSLT Mapping with java enhancement
/people/pooja.pandey/blog/2005/06/27/xslt-mapping-with-java-enhancement-for-beginners
XSLT - /people/dirk.roeckmann/blog/2006/07/26/grouping-xml-with-xslt--from-muenchian-method-to-xslt-20
Dynamically sending a mail to the PO creator using XSLT- ABAP Mapping -
/people/rahul.nawale2/blog/2006/11/01/dynamically-sending-a-mail-to-the-po-creator-using-xslt-abap-mapping
Using XSLT Mapping within the J2EE Adapter Framework -https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3823 [original link is broken] [original link is broken] [original link is broken] [original link is broken]
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1442 [original link is broken] [original link is broken] [original link is broken] [original link is broken]
Regards
Chilla. -
hai experts,
i create a scenario on file to jdbc using xslt mapping.In that xslt mapping how to map the fields to database.from sender side it is picked from server but the records are not placed in database.
any one have step by step for xslt mapping plz send me
thank in advance
lokeshHi,
Check with these
see the below links
XSLT Mapping
/people/prasadbabu.nemalikanti3/blog/2006/03/30/xpath-functions-in-xslt-mapping
/people/sreekanth.babu2/blog/2005/01/05/design-time-value-mappings-in-xslt
/people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping
XSLT Mapping with java enhancement
/people/pooja.pandey/blog/2005/06/27/xslt-mapping-with-java-enhancement-for-beginners
XSLT - /people/dirk.roeckmann/blog/2006/07/26/grouping-xml-with-xslt--from-muenchian-method-to-xslt-20
Regards
Seshagiri -
Xslt program in the abap workbench
Hi,
could you please give me the navigation steps to create xslt program in the abap workbench ??
Thanks in advance
Regards
ravindraBabu,
Check this weblogs for some help on this:
/people/r.eijpe/blog/2005/11/04/using-abap-xslt-extensions-for-xi-mapping
/people/dirk.roeckmann/blog/2006/07/26/grouping-xml-with-xslt--from-muenchian-method-to-xslt-20
/people/achim.bangert/blog/2005/07/17/code-generation-using-xsl-transformations
/people/rahul.nawale2/blog/2006/11/01/dynamically-sending-a-mail-to-the-po-creator-using-xslt-abap-mapping
---Satish -
Portal Group List/ User List/
Does Someone has exemple code to get the group list in java ?
I read that Group list is now in OID but no idea on how to get itGuillaume,
your're right: groups are managed in OID, although there is a mirror table (WWSEC_GROUP$) in portal schema.
you have to use oracle.ldap.util (cf OID developer's guide), because I think there is nothing about geting groups in jpdk.
Patrick. -
My input text file is as follows :
13120000117A|20140623|03-01-2014 TO 04-30-2014|1100_20047|ZTAD1|ZNA590|700355|1100_20047||04-12-2014|USD|21.25|CARD
13120000117B|20140623|03-01-2014 TO 04-30-2014|1100_20047|ZTAD1|ZNA590|700355|1100_20047||04-12-2014|USD|21.25|CASH
13120000117A|20140623|03-01-2014 TO 04-30-2014|1100_20047|ZTAD1|ZNA590|700355|1100_20047||04-12-2014|USD|21.25|CASH
I want this output after debatching :
One message for 13120000117A and one messge for 13120000117B.
When I debatch through flat file schema , I am getting three message :
two message for 13120000117A and one message for 13120000117B.
My condition is that if the value of first element is same in the entire flat file then it will create a single message for all ,otherwise it will create different message.
For grouping first element, I applied Muenchian Grouping and it is working fine.The main issue occures in debatching .
I have done the following things in my scenario :
First of all, my text file is converted into a another schema (let B)with the help of mapping where I used Muenchian Grouping in custom xslt then I map Schema B to IDOC. Its all working fine.
How can I solve this issue ?
Thanks in Advance.
PrakashOh sorry this is my mistake.Ref docNo 13120000117C is not coming in the output of muchain.
this is my input file :
13120000117A|6/23/2014|3/1/2014 to 4/30/2014|1100_20047|ZTAD1|ZNA590|700355|1100_20047||4/12/2014|USD|21.25|CARD
13120000117A|6/23/2014|3/1/2014 to 4/30/2014|1100_20047|ZTAD1|ZNA590|700355|1100_20047||4/12/2014|USD|21.25|CASH
13120000117B|6/23/2014|3/1/2014 to 4/30/2014|1100_20047|ZTAD1|ZNA590|700355|1100_20047||4/12/2014|USD|21.25|CASH
and this is the output of my muchian
method :
<?xml version="1.0" encoding="utf-8"
?>
<ns0:Send xmlns:ns0="http://Interplx.DestinationSchema">
<IdocData>
<CHEO9>
<CompCode>1100_20047</CompCode>
<DocDate>6/23/2014</DocDate>
<RefDocNo>13120000117A</RefDocNo>
</CHEO9>
<GL09>
<GLAccount>700355</GLAccount>
<TracsactionDate>4/12/2014</TracsactionDate>
<CostCenter>1100_20047</CostCenter>
<WBSElement
/>
<Assisgmnet>CARD</Assisgmnet>
<ItemNos>2</ItemNos>
</GL09>
<GL09>
<GLAccount>700355</GLAccount>
<TracsactionDate>4/12/2014</TracsactionDate>
<CostCenter>1100_20047</CostCenter>
<WBSElement
/>
<Assisgmnet>CASH</Assisgmnet>
<ItemNos>3</ItemNos>
</GL09>
<AP09>
<EmpID>ZTAD1</EmpID>
<VendorNo>ZNA590</VendorNo>
</AP09>
<ACCR09>
<CurrencyISO>USD</CurrencyISO>
<Amt_Doccur>21.25</Amt_Doccur>
</ACCR09>
<ACCR09>
<CurrencyISO>USD</CurrencyISO>
<Amt_Doccur>21.25</Amt_Doccur>
</ACCR09>
</IdocData>
<IdocData>
<CHEO9>
<CompCode>1100_20047</CompCode>
<DocDate>6/23/2014</DocDate>
<RefDocNo>13120000117B</RefDocNo>
</CHEO9>
<GL09>
<GLAccount>700355</GLAccount>
<TracsactionDate>4/12/2014</TracsactionDate>
<CostCenter>1100_20047</CostCenter>
<WBSElement
/>
<Assisgmnet>CASH</Assisgmnet>
<ItemNos>2</ItemNos>
</GL09>
<AP09>
<EmpID>ZTAD1</EmpID>
<VendorNo>ZNA590</VendorNo>
</AP09>
<ACCR09>
<CurrencyISO>USD</CurrencyISO>
<Amt_Doccur>21.25</Amt_Doccur>
</ACCR09>
</IdocData>
</ns0:Send>
But after performing flat file debatching , I got three message as follows:
Ist msg:
<?xml version="1.0" encoding="utf-8"
?>
<ns0:Send xmlns:ns0="http://Interplx.DestinationSchema">
<IdocData>
<CHEO9>
<CompCode>1100_20047</CompCode>
<DocDate>6/23/2014</DocDate>
<RefDocNo>13120000117B</RefDocNo>
</CHEO9>
<GL09>
<GLAccount>700355</GLAccount>
<TracsactionDate>4/12/2014</TracsactionDate>
<CostCenter>1100_20047</CostCenter>
<WBSElement
/>
<Assisgmnet>CASH</Assisgmnet>
<ItemNos>2</ItemNos>
</GL09>
<AP09>
<EmpID>ZTAD1</EmpID>
<VendorNo>ZNA590</VendorNo>
</AP09>
<ACCR09>
<CurrencyISO>USD</CurrencyISO>
<Amt_Doccur>21.25</Amt_Doccur>
</ACCR09>
</IdocData>
</ns0:Send>
2nd msg:
<?xml version="1.0" encoding="utf-8"
?>
<ns0:Send xmlns:ns0="http://Interplx.DestinationSchema">
<IdocData>
<CHEO9>
<CompCode>1100_20047</CompCode>
<DocDate>6/23/2014</DocDate>
<RefDocNo>13120000117A</RefDocNo>
</CHEO9>
<GL09>
<GLAccount>700355</GLAccount>
<TracsactionDate>4/12/2014</TracsactionDate>
<CostCenter>1100_20047</CostCenter>
<WBSElement
/>
<Assisgmnet>CASH</Assisgmnet>
<ItemNos>2</ItemNos>
</GL09>
<AP09>
<EmpID>ZTAD1</EmpID>
<VendorNo>ZNA590</VendorNo>
</AP09>
<ACCR09>
<CurrencyISO>USD</CurrencyISO>
<Amt_Doccur>21.25</Amt_Doccur>
</ACCR09>
</IdocData>
</ns0:Send>
3rd msg:
<?xml version="1.0" encoding="utf-8"
?>
<ns0:Send xmlns:ns0="http://Interplx.DestinationSchema">
<IdocData>
<CHEO9>
<CompCode>1100_20047</CompCode>
<DocDate>6/23/2014</DocDate>
<RefDocNo>13120000117A</RefDocNo>
</CHEO9>
<GL09>
<GLAccount>700355</GLAccount>
<TracsactionDate>4/12/2014</TracsactionDate>
<CostCenter>1100_20047</CostCenter>
<WBSElement
/>
<Assisgmnet>CARD</Assisgmnet>
<ItemNos>2</ItemNos>
</GL09>
<AP09>
<EmpID>ZTAD1</EmpID>
<VendorNo>ZNA590</VendorNo>
</AP09>
<ACCR09>
<CurrencyISO>USD</CurrencyISO>
<Amt_Doccur>21.25</Amt_Doccur>
</ACCR09>
</IdocData>
</ns0:Send>
Please give me how can I get two message ? One
for 13120000117A(Ref
Doc No) and other for 13120000117B(Ref
Doc No).
Prakash -
Reading data in the attachment of a CRM Order
Hi,
I have a requirement to read the data in a PDF that is attached to a CRM Order. The Order in my case is a Task Order. Please let me know if there are any function modules or methods that can be used to retrive the data in the attachment.
Thanks
Sheena.You can achieve it by using XSLT mapping.
You can fetch values from either header part or body part.
Some XSLT resources:
xpath functions in xslt mapping
Design time Value-mappings in XSLT
File to Multiple IDocs (XSLT Mapping)
Grouping XML with XSLT - From Muenchian Method To XSLT 2.0
Using ABAP XSLT Extensions for XI Mapping
Dynamic file name(XSLT Mapping with Java Enhancement) using XI 3.0 SP12 Part -II
Regards
Liang
Maybe you are looking for
-
Stock report( closing of today opening of tomorrow)
Dear Experts can anybody help me in getting a stock report the parameters are: Opening Ballance - ( Qty -Value ) , Issue during a period -(Qty- Value ) , Rceipt during a period( Qty-Value) Closing Stock(Qty-Value) my one of the client requriment c
-
How to print ADDRESS in SAP Script
Hi All, I want to print address using ADDRESS command in SAP script. I am using folowing code: ADDRESS PARAGRAPH AS TITLE &ADRS-ANRED& NAME &ADRS-NAME1&, &ADRS-NAME2&, STREET &ADRS-STRAS& POBOX &ADR
-
Using logical and while processing graphics
Hi all. I've seen a lot of code like this: public void method(byte r, byte g, byte b) { r = r & 0xFF b = b & 0xFF g = g & 0xFF <some processing code> }Could anybody explain the reason of using such strange operation? In math it means that we do nothi
-
Camera RAW 6.5 Update Fail
I have Photoshop Elements (Version 6.1.0.250) on my PC and I'm trying to install the updates (Elements 9.0.3 Update & Photoshop Camera RAW 6.5) but they keep failing continuously. What can I do?
-
Capturing a set amount of data point.
Hello, I am using LabVIEW v7.5 for a project I am currently working on and am recording signals from 6 physical channels. I have a couple of questions about the write to spreadsheet VI. First, when I write to a spreadsheet, transpose it, then open