cancel
Showing results for 
Search instead for 
Did you mean: 

Calling abap method in xslt mapping?

Former Member
0 Kudos

Hi

I need to call abap method in my xslt mapping , i tried with

<sap:external-call >and <sap:external-function> .

But it is giving short dump error.

Can anybody give me proper syntax..

thanks

Prasad

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello,

Please see the code below.

  • This is how u call

<sap:external-function class="ZTEST_CLASS" kind="class" method="GETRECORDCOUNT" name="ns0:GetRecordCount">

<sap:argument param="XXXX" type="string"/>

<sap:argument param="YYYY" type="string"/>

<sap:result param="ZZZZ" type="string"/>

</sap:external-function>

<xsl:template match="/">

<xsl:param name="Counter">

*And this is how u call below...

<xsl:value-of select="ns0:GetRecordCount(A,B)"/>

</xsl:template>

</xsl:transform>

Regards,

Former Member
0 Kudos

Hi

Check the correct syntax for both in the following help doc

http://help.sap.com/saphelp_nw04/helpdata/en/76/084e3ce0f9fe3fe10000000a114084/frameset.htm

regards

krishna