Current position:  Home > Default > FileName in ABAP XSLT Mapping

FileName in ABAP XSLT Mapping

Time:October 11
Advertisement
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
Advertisement
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?

Reg ABAP-XSLT mapping

2015-10-11

Hi All,        One of my inetrfaces i am using ABAP-XSLT mapping some times i am getting the following erre "Error while calling mapping program ZXXXX_XXX (type Abap-XSLT, kernel error ID CX_XSLT_RUNTIME_ERROR) No valid source context supplied"

ABAP-XSLT mapping.

2015-10-11

Hi ALL,           I am using i scinario in my project of type IDOC to PI to SOAP . In this one my mapping is of type ABAP-XSLT . the interface is runnign fine for all the idocs except one idoc. When that particula idoc comming from r/3 it is giving s

Call RFC  In ABAP XSLT

2015-10-11

Hello Experts,       I have a requirement where in i need to call RFC(Which is created in R/3 system) In ABAP XSLT Mapping(defined iN xi system). Can some one help me to achieve this?? **ITS URgent**** Thanks and Regards, Prakash Babu.Hi James,      

XSLT Mapping with Java Enhancement

2015-10-11

Hi All I am working on XSLT Mapping with Java Enhancement. To do this scenario i have followed the following link. http://help.sap.com/saphelp_nw04/helpdata/en/55/7ef3003fc411d6b1f700508b5d5211/frameset.htm As per the above link I have created Source

XSLT-Mapping oder Message Mapping (grafisches Mapping)?

-0001-11-30

Hallo, which mapping type is the best? xslt oder message mapping? JensHi, In terms of perfromance , XSLT is supposed to be very bad and is to be avoided whenever possibl.e Graphical Mapping is the best when it comes to performance of the mapping. But

ABAP , JAVA And XSLT Mapping Doc's

2015-10-11

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

XSLT mapping to retrieve FileName from FILE SENDER adapter

2015-10-11

Hi I have an File Sender adapter scenario where I have switched on Adapter-specific message attributes (FileName). In my XSLT mapping program I need to RETRIEVE the filename and map it. Can anyone help please? Thx in advanceHi Bohamo Refer the follow

XSLT Mapping on ABAP Engine

2015-10-11

Hi All, I am trying to implement an XSLT mapping on the ABAP Engine. I went to the Transformation Workbench(SE80).I have created 4 levels of packages (Structure->Main->then 2 more levels) and  included Package Interface SAI_TOOLS in 'Use Accesses' t

Need Filename in XSLT Mapping.

2015-10-11

Hi , I am doing File to IDOC scenario. I am using XSLT mapping. My Target fielld is having  " File Name " field. I need to pass the source file name to that field. I am using XSLT Mapping. How to call the Filename and map the value to that field

Graphical Mapping Vs XSLT mapping Vs Java Mapping Vs ABAP Mapping

2015-10-11

Hi Experts,           I have a question regarding different message mapping options available in XI namely Graphical Mapping XSLT mapping Java Mapping ABAP Mapping Q1: Which amoung the above mappings is the best and why? Q2: On what cases Graphical,

Calling abap method in xslt mapping?

2015-10-11

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 PrasadHello, Please see the code below. This is how

Java ,abap and XSLT mapping

2015-10-11

Hi all,            can any one provide some material on java ,ABA and XSLT mapping(as i got requirement on my current project).. thanks in advance. regards krish..Hi    All mapping related links There is no hard and fast rule for using the mapping te

Raise error in an external-function of XSLT-mapping (ABAP)

2015-10-11

Hi, we implemented a xslt-mapping (ABAP) in PI with external-functions. It's a great feature and works fine. Now, we have to implement an error handling: The external-functions are reading data from an abap table. We have to stop the mapping (if a va

Message Mapping ...  ABAP ,XSLT and JAVA

2015-10-11

HI Friends I have a general question ... but it will confuse me a lot .... my question is we have four types of message mappings 1) GUI ( and UDFs) 2) ABAP 3)XSLT 4) JAVA when we have plenty of options in GUI (and User defined functions also)  to def

Java Mapping, XSLT Mapping, ABAP Mapping

2015-10-11

Hi Experts,                  Could any one explain what is the main features of the following Mapping. How to pick the mapping? Java Mapping - When to use and what is the advantage. ABAP Mapping - When to use and what is the advantage. XSLT Mapping -

Change Filename using XSLT mapping without variable subtitution

2015-10-11

Hi, My scenario is IDOC to file...i am using XSLT mapping, i want to change the filename format to OUT_<Purchase Number>_<DDMMYYYYhhmmss>_KKKK.txt, i cannot use UDF function as i do XSLT mapping i also i cannot use variable substitution as the

XSLT Mapping Related

2015-10-11

Hello Experts, In a scenario we are sending Purchase orders and Purhase Order change from SAP to SNC through XI. Currently we are using Orders03 message type for IDOC. The requirement is to use Orders05 message type for IDOC. What changes would be ne

XSLT mapping code to replace ns1: tag as plm: in XML file in PI mapping

2015-10-11

Hi I am sending XML file to HTTP server as below format <?xml version="1.0" encoding="UTF-8" ?>    - <ns1:Responses xmlns:ns1="http://"> -    <ns1:Response Application="SAP">     <ns1:field1>

XSLT mapping, how can I include a Runtime Constants in target message

2015-10-11

Hi, I would like in my XSLT mapping, to have an attribute include the MessageID. From my understanding of the online help [http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/content.htm|http://help.sap.com/saphelp_nw04/hel