Imported Archieves
Hi Experts
1.What is the use of Imported Archieves..? It is used in mapping...?
2.How to create an UDF?
Thanks in Advance..
Hi
Steps to create an UDF:
--> In the LHS of the graphical Editor u can find a Create New Function button.
--> Click on it and give a name for u UDF
--> Also specify the parameters to the UDF. Note that the input & Output type to the parameter is always String type
or
--> Create an Java class using IDE and archive the file
--> Upload the archived file into XI in IMPORTEDARCHIEVES of Integeration Repository
-->These uploaded functions can be used in the Mapping
<a href="/people/wojciech.gasiorowski/blog/2006/11/01/the-power-of-regular-expressions-in-graphical-mapping-xi Power of Regular Expression in Graphical mapping</a>
Regards
Santhosh
<a href="Remember to set the thread to solved when you have received a solution to set the thread to solved when you have received a solution</a>
Use a Good Subject Line, One Question Per Posting - Award Points
Similar Messages
-
Xslt mapping in Imported archieves
Hi all,
The requirement is that I need to use XSLT mapping for this I created message mapping copied as a .xslt file and imported in the imported archeives and then I removed the message mapping .
The problem is that when I try to use this XSLT mapping under the interface mapping as XSLT option I am getting a warning "message mapping name has no program"
Please let me know why this is happening.
Thanks,
SriHi,
as you said:
choose XSLT mapping
then choose your XSLT mapping name
save and activate
Regards,
michal -
Problem with imported archives
Hi all,
I have created Message mappings(this I have to delete once get the sucess),Interface mapping.I need to use XSLT mapping so I copied the Message mapping output to XSLT file Organization_2_PSTCS_Department_XSLT.xslt and when Imported into imported archieves.
When I try to use this mapping I am getting the message as in SUB .Alternatively if i use the message mapping I am getting sucess.
Please let me know what is the problem.
Thanks,
SriniHi,
>>>>>>I need to use XSLT mapping so I copied the Message mapping output to XSLT file Organization_2_PSTCS_Department_XSLT.xslt and when Imported into imported archieves.
you copied the output ? (you mean the result of message mapping?)
this has no sense as message mapping has nothing to do with
xslt mappings
you need to create your xslt mapping yourself and then import it
you cannot create xslt mapping from message mapping
Regards,
michal
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a> -
How to import externally defined mapping programs in to Imported archieves? could anybody help me....
Thanks in advance,
ManojHi Manoj,
XI supports 4 types of mappings
1. Message mapping
2. XSLT MApping
3. JAVA Mapping
4. ABAP Mapping.
If you go with message mapping or ABAP mapping no need to use imported archive. If you want to implement XSLT or JAVA mapping then only you need to import those programmes into imported archives. when import the external programms(XSLT or JAVA) to the Imported archives then should keep those file as a ZIP. The ZIP files only can import to the Imported Archives.
Thanks,
Satish -
What is the Use of Imported Archives in Mapping Objects
Hi All,
What is the Use of Imported Archives in Mapping Objects ( IR )
Regards
VamsiHi Vamsi,
When we are doing JAVA , XSLT mappings we have to do import archievs
after developing the JAva mapping in NWDS and create jar file come back to IR under imported archieves we will import the jar file.
Similarly XSLT als make the zip and import under imported archieves
Also when we have any java packages ,import it under archieves and make them to use in UDF
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
/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i
/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii
/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-iii
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.highlightedcontent?documenturi=%2flibrary%2fxi%2fxi-design_configuration%2ffileValidationsinSAPXI-ACaseStudy.pdf
Check this thread...
Reusability of User-defined Functions
Check this thread...
Re: User-defined function in multiple Message Mappings
Using external JARs in Web Dynpro Dev.Component
see sap documentation:
http://help.sap.com/saphelp_nw04s/helpdata/en/4c/b2ad3de2d76b3be10000000a114084/frameset.htm
Cheers...
Vasu
<b>** REward POints if found useful **</b> -
Any website for XSLT AND ABAP mapping
Hi XI experts,
I am looking for any good website/Material for XSLT and ABAP Mapping with examples.
So experts if you any one of you have any clue , i would appreciate it , if you post the info here .
Regds,
Ram.Hi,
For XSLT mapping, please try to create msg types for sender and recv, import these two into XML Mapforces (This is a software which enables us to do mapping this you can download from altova mapforce site) , do mapping in that mapforce , late click on XSLT icon , one XSLT file will be c reated that file , prepare zip and late come to xi , import under imported archieves,do Interface mapping by selecting the XSLT mapping option, select imported archieve..
See below examples..
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/01a57f0b-0501-0010-3ca9-d2ea3bb983c1
http://www.troobloo.com/tech/xslt.toc.shtml
http://www.w3schools.com/xsl/
http://www.w3.org/TR/xslt
http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/frameset.htm
https://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-code-samples/generic%20xslt%20mapping%20in%20sap%20xi%2c%20part%20i.pdf
/people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping
Required XSLT Mapping tips!
Regards
Chilla.. -
Hi All,
I did xslt mapping out side and imported jar file into repository under import archieves.
After that how do I make use of it? I mean where do we say this is source and route the target to this message type etc?
Where do you actually do mapping in XI ?
I appreciate any input.
Thanks,
RaviThanks for your reply.
To make it simple and easy to debug this. I am using MappingExample.zip (which has xslt jar, java jar and aii_map_api.jar) and imported to 'Import Archieve'.
When I try to do read interface in Interface Mapping, I could not find the XSLT mapping when I try to use Mapping program (name/namespace) ?
Can you tell me exactly how this xslt mapping is visible here?
Thanks
ravi -
Hi,
I have a requirement where in there is a field str where I need to load the XSD schema and pass to the target. There are some 10 tables and each of them have a different XSD . All of these I have loaded under imported archieves. Now I need to write a UDF to call these and pass on to the target.Can some one help me with this.
It is like if the table name is A then pass <str>Schema<str/> for that and so on for all the 10 of them..
Can some one please help me with the UDF logic as I am facing difficuilty in achieving this.
Thanks
AmitHi Harshvardhan,
The requirement is there are a set of tables defined in the legacy side and there is a URL which is used to make a call from PI and update the tables based on the XSD schema field.
I mean the output would be something like
<table> ABC <table/>
<Str>Will contain the XSD of that table<Str/>
table>YYY<table/>
<Str>XSD of this table <Str>
and it will repeat for other tables.
I am not sure how to populate the schema XSD of the target table into this Str field as there is nothing that is coming from the source side. I mean how can this XSD be built in PI if there is no input from the source side. I am of the opinion that this cant be handled . But in case I am wrong in my understanding please clarify.
I hope I am clear in explaining . In case you need clarifications please let me know.
Thanks
Amit -
Organization_2_PSTCS_Department_XSLT has no program
Hi all,
I have created Message mappings(this I have to delete once get the sucess),Interface mapping.I need to use XSLT mapping so I copied the Message mapping output to XSLT file Organization_2_PSTCS_Department_XSLT.xslt and when Imported into imported archieves.
When I try to use this mapping I am getting the message as in SUB .Alternatively if i use the message mapping I am getting sucess.
Please let me know what is the problem.
Thanks,
SriniHi all,
I have created Message mappings(this I have to delete once get the sucess),Interface mapping.I need to use XSLT mapping so I copied the Message mapping output to XSLT file Organization_2_PSTCS_Department_XSLT.xslt and when Imported into imported archieves.
When I try to use this mapping I am getting the message as in SUB .Alternatively if i use the message mapping I am getting sucess.
Please let me know what is the problem.
Thanks,
Srini -
How to read XML Values using JAVA
Hi FRNDS,
I uploaded one XML File in imported Archieves, i have to read the value form XML uisng JAVA code,
using XSL able to read like xsl variable name='TimeZone' select =$linkDoc//...........*
But using java i have to read the value from XML,is it possible to read the value??
please give me some sample code.
regards,
Raja SekharBut using java i have to read the value from XML,is it possible to read the value??
Check the below JAVA code from help:
http://help.sap.com/saphelp_nwpi71/helpdata/en/55/7ef3003fc411d6b1f700508b5d5211/content.htm
you can ignore the XSLT part and configure only the JAVA code...check if this suits your needs.
Regards,
Abhishek. -
XSTL is not displaying in interface mapping
I've created a XSLT transformation, next I've zipped *.xslt file into *.zip and imported (it is visible in Imported Archives). When I click "Display program" icon, I see popup with valid code.
In message mapping I want to use this imported transformation. When I'm selecting XSL and then when I'm trying to select any XSLT I'm not able because nothing is displayed. When I tried to use drag and drop technique to paste my imported xslt I got an message:
"IA_XSLT_PROXY_req has no program", where IA_XSLT_PROXY_req is a name of imported archieve.
Any idea what is going on?Hi,
Did you selected the option of XSL Mapping in Interface Mapping. Please select it from drop down list from where you select the ABAP MApping / Java Mapping. It will be in left side of lower window in Interface mapping. Please check it out.
For more info about it you can refer to this weblog.
/people/aashish.sinha/blog/2008/01/17/step-150-by-150-step-simple-approach-for-xslt-mapping
Regards
Aashish Sinha
PS : reward points if helpful -
Data shown under reciever mail using mail adapter
hi.
i have created a file to mail interface ,created an imported archieve and i did tested
but i have got the data in mail as
Please find the attached document:
<table><tr BGCOLOR="#CCCC99"></tr><td></tr>005000002200 </td><tr></table>
where 005000002200 only is the data .
how can i remove all the othere stuff.
cheers.
sita ramHi.
hte foloowing is the my imported archieve program.
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="http://www.Coj.co.za/FileToProxyTriggeringFile">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" />
<xsl:variable name="break"><br></xsl:variable>
<xsl:variable name="tableB"><table></xsl:variable>
<xsl:variable name="tableE"></table></xsl:variable>
<xsl:variable name="trB"><td></xsl:variable>
<xsl:variable name="trE"><tr></xsl:variable>
<xsl:variable name="tdB"></tr></xsl:variable>
<xsl:variable name="tdE"></td></xsl:variable>
<xsl:variable name="nbsp">&nbsp;</xsl:variable>
<xsl:variable name="thB"><tr BGCOLOR="#CCCC99"></xsl:variable>
<xsl:template match="/">
<ns1:Mail xmlns:ns1="http://sap.com/xi/XI/Mail/30">
<Subject>ABSA EFT confirmations</Subject>
<From>[email protected]</From>
<To>[email protected]</To>
<Content_Type>text/plain</Content_Type>
<Content>
<xsl:text xsl:space="preserve">Please find the attached document:</xsl:text>
<xsl:value-of select="$break" />
<xsl:value-of select="$break" />
<xsl:value-of select="$tableB" />
<xsl:value-of select="$thB" />
<xsl:value-of select="$tdB" />
<xsl:for-each select ="ns0:MT_FILESEND/REC/ROW">
<xsl:value-of select="$trB" />
<xsl:value-of select="$tdB" />
<xsl:value-of select="string1" />
<xsl:value-of select="$nbsp" />
<xsl:value-of select="$tdE" />
<xsl:value-of select="$trE" />
</xsl:for-each>
<xsl:value-of select="$tableE" />
</Content>
</ns1:Mail>
</xsl:template>
</xsl:stylesheet>
and the output thati got is
Please find the attached document:<br><br><table><tr BGCOLOR="#CCCC99"></tr><td></tr>005000004624 </td><tr></table>
and i can see the message in sxmb_moni.
and the FCC parametes that iam using is
ROW.endSeparator 'nl'
ROW.fieldNames string1
ROW.fieldFixedLengths 500
ROW.fieldSeparator 'nl'.
wwaiting for u r reply.
cheers.
sita ram. -
Hi Experts,
developing the new scenario for XSLT.
Here i need to write the condition in XSLT. Pls let me know if you have any idea on this....
Condition : i<10 and i>1
Note : Here i need to know inplace and postion..like how to write the code in XSLT.
Reward points for helpful answers...
Regards,
Yeswanth.Hi Yeswanthraj,
For XSLT mapping, please try to create msg types for sender and recv, import these two into XML Mapforces (This is a software which enables us to do mapping this you can download from altova mapforce site) , do mapping in that mapforce , late click on XSLT icon , one XSLT file will be c reated that file , prepare zip and late come to xi , import under imported archieves,do Interface mapping by selecting the XSLT mapping option, select imported archieve..
See below examples..
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/01a57f0b-0501-0010-3ca9-d2ea3bb983c1
http://www.troobloo.com/tech/xslt.toc.shtml
http://www.w3schools.com/xsl/
http://www.w3.org/TR/xslt
http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/frameset.htm
https://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-code-samples/generic%20xslt%20mapping%20in%20sap%20xi%2c%20part%20i.pdf
/people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping
Required XSLT Mapping tips!
Reward points if helpful.
Regards
Vani. -
Hi,
I would like to send a email using UDF.
Requirement: if xyz == "9" then send a email and also pass the value .......
else directly pass the value
I want to do it without Looksups, exclusively using Java code inside UDF.
has anyone done this earlier? Can someone help me?
thanks,
Venkat.
Edited by: Venkat A on Jul 22, 2009 10:58 PM>
Venkat A wrote:
> I have following doubts in the actual code.
> 1. "<mailhost>" - What should I enter the value for this?
this is your mail server .. ex. smtp.yahoo.com etc
> 2. do I need to provide a sender ID that is existing? I mean if I provide the xi.adm at dev.com... does it really need to exist in real?
it can be anything that you want to be in the from id of your email
> 3. How do I use imported archieve?i mean I have a normal MM now. how do I link that imported achieve?
>
> Thanks,
> Venkat.
>
> Edited by: Venkat A on Jul 23, 2009 12:03 AM
in the UDF give you package name in the imports section ... the screenshot of the UDF in the link also shows this -
I am getting a new computer and would like to move mail and its settings, folders, etc. without moving all of my programs and users settings. I would like to end up with a clean install except for mail. Is that possible with migration assistant or is there another way such as importing archieves for each mailbox folder. Is there a pst file that contains the rules, and account info?
Thanks for any suggestions.waldhaus1 wrote:
I am not sure why that is relevant but they are:comcast.net, mcn.org, gmail.com, yahoo.com, earthlink.net, and mac.com. The gmail is being accessed as an imap server. Comcast won't do imap. I am not sure about the others.
Thanks
It's relevant because all Apple mail accounts are Imap, which would have made it easy, but ... all the Imap accounts do not need to be transferred, POP accounts (comcast, earthlink and yahoo, maybe) will need to be exported from wherever they are and reimported.
PST files are Outlook only, if you are using Outlook you could buy emailchemy and let it do this for you.
Maybe you are looking for
-
CF9 installation on Windows Server 2008 R2 64 bit
Our company is looking purchase CF9 standard edition and install it on a Windows Server 2008 Std. Edition R2 64bit. Does anyone forsee any problems as far as compatibility is concerned?
-
Hello, I'm trying to develop EJBs 2.0 for my company. creation and EJB deployment works fine, but when I try to look up my EJB, I get a NamingException. EAR is deployed on a Websphere Application Server 5.1, and I would like to communicate with my EJ
-
Focus Stacking in CC 2014 No Longer Works (Rant)
I just spent HOURS on 2 different computers trying to do Focus Stacking for 2 jobs I'm working on which I couldn't get to work. I just used it a couple of weeks ago without a problem. (And yes I do use the correct procedure :Files>Scripts>Load Files
-
SAP BW Routimes,,,
<Moderator Message: Please search before posting, there are a lot of threads related to that, additonally you will find blogs> Hi all, I am new to SAP BI,and need help in writing routine,, Can anyone provide me help in understanding it or suggest me
-
Hi, I have a scenario where source and target system are same. send order data through BAPI via ALE as per [Unchecked Deliveries|http://help.sap.com/crmcg_en/6c/d321ef6e1111d4b554006094b9b9dd/content.htm] I am first time sending data using BAPI via A