on 01-10-2007 8:32 PM
Dear SDN,
In an integration scenario we are using sender File Adapter and a ABAP XSLT Mapping.
Is there any way to get the source FileName from such mapping. Im trying to use the adapter-specific message attributes, but it doesn't work, and I didn´t find an example, probably I and doing somthing wrong.
regards,
GP
Hi GP -
Personally haven't tried accessing ASMA from ABAP mapping, but apparantly there is an ABAP interface for it as mentioned in the following help link: http://help.sap.com/saphelp_nw04/helpdata/en/43/09b16006526e72e10000000a422035/frameset.htm
The interface <i>IF_MAPPING_DYNAMIC_CONF</i> is mentioned there. If you go to txn SE24 and put in IF_MAPPING_DYNAMIC_CONF and access the Interface documentation (button), there are more details there.
Regards,
Jin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Realized my previous post is probably irrelevant for your case. The only thing that comes close is probably here: http://help.sap.com/saphelp_nw04/helpdata/en/43/03fe1bdc7821ade10000000a1553f6/frameset.htm
The ASMA will definitely be in the message header (when configured in the sender adapter), but given that a ABAP XSLT runs on its own ABAP engine, its unclear whether the ASMA is accessible from it.
Regards,
Jin
Thank you for your help,
I just try to access the adapter-specific attibutes using:
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:key="java:com.sap.aii.mapping.api.DynamicConfigurationKey">
<xsl:variable name="filename" select="key:create('http://sap.com/xi/XI/System/File', 'Directory')" />
.....
</xsl:stylesheet>
but the following error raised:
<SAP:Stack>Error while calling mapping program YXSLT_TEST (type Abap-XSLT, kernel error ID CX_XSLT_RUNTIME_ERROR) Call of unknown function</SAP:Stack>
have you had this situation?
From what I can tell, since the ABAP XSLT runs on the ABAP engine, you won't be able to access the <i>com.sap.aii.mapping.api</i> related java classes which run on the Java engine. So the Java enhancement functions won't work for ABAP XSLT.
If using XSLT, why not use it the usual way (as an imported archive in IR)? Then you can use Java enhancements and ASMA.
Regards,
Jin
Hi,
for Adapter Specific Attributes refer this-
/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
Rgds,
Moorthy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
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.