SAP XI mapping.

Hello folks,
Guys i need few of the user defined functions which are mostly created and used by you guys which performing the mapping.
I have the basic understanding of what actually is a user defined function and the types of functions in it.
It would be great if you can send me the jave code (of your usd) and the purpose why you have to use it...
Points will surely be rewarded*
Thanking you Guys

Hi Sainath,
Refer the below link where I have provided few more information.
UDF
UDF are used for maping purposes.
1) To raise alert message.
Triggering by Calling a Function Module Directly.
/people/bhavesh.kantilal/blog/2006/07/25/triggering-xi-alerts-from-a-user-defined-function
2)  For Lookup purpose:
•     RFC lookup using JCO (without communication channel)
      /people/sravya.talanki2/blog/2005/12/21/use-this-crazy-piece-for-any-rfc-mapping-lookups
•     RFC lookup with communication channel.
                 /people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer
3) If u wanted to sned some values bases on input condition is satisfied.
Suppose for input value A i need to send result as Valid value and for other values i need to send values as Not a valid value.
input value a
for(i=0;i<a.length;i++)
    if(a<i>.equals("A"))
      result.addValue("Valid Value");
    else
      result.addValue("Not a Valid Value");
there can be many UDF based on requirements.
chirag
Edited by: Chirag Gohil on Apr 2, 2008 3:38 PM

Similar Messages

  • What jar for com.sap.aii.mapping is

    Dear
    i am testing with blow blog.
    /people/pooja.pandey/blog/2005/06/27/xslt-mapping-with-java-enhancement-for-beginners
    in this blog, java program use the following;
    import com.sap.aii.mapping.api.AbstractTrace;
    import com.sap.aii.mapping.api.StreamTransformationConstants;
    what .jar file name is?
    i could not find com.sap.aii.mapping on eclipse.
    thanks
    Denis

    Denis,
    You need the <b>aii_map_api.jar</b> file for this.
    You will get this in the following location on your XI server,
    <b>j2ee\cluster\server0\apps\sap.com\com.sap.xi.services</b>
    Upload the Jar, in your Project Build Path.
    Regards,
    Bhavesh

  • Error for package com.sap.aii.mapping.lookup

    Hi All
    I am writing a code for the DB lookup. When I import the package in the Message
    Mapping (Advance Function) I am getting an Error.
    C:/usr/sap/SXI/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map6af6f7d1335111dc9b51000c2967ead8/source/com/sap/xi/tf/_MM_File2JMS_.java:3: package com.sap.aii.mapping.lookup does not exist
    import com.sap.aii.mappingtool.tf3.;import com.sap.aii.mappingtool.tf3.rt.;import java.util.;import java.io.; import java.lang.reflect.;import com.sap.aii.mapping.lookup.; ^
    C:/usr/sap/SXI/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map6af6f7d1335111dc9b51000c2967ead8/source/com/sap/xi/tf/_MM_File2JMS_.java:57: cannot resolve symbol symbol : class Channel location: class com.sap.xi.tf._MM_File2JMS_ Channel channel = null;
    C:/usr/sap/SXI/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map6af6f7d1335111dc9b51000c2967ead8/source/com/sap/xi/tf/_MM_File2JMS_.java:58: cannot resolve symbol symbol : class DataBaseAccessor location: class com.sap.xi.tf._MM_File2JMS_ DataBaseAccessor accessor = null; ^
    Thanks
    Farooq.

    Hey satish I am getting same Error:
    C:/usr/sap/SXI/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map7801d381335311dc8660000c2967ead8/source/com/sap/xi/tf/_MM_File2JMS_.java:3: package com.sap.aii.mapping.lookup does not exist import com.sap.aii.mappingtool.tf3.;import com.sap.aii.mappingtool.tf3.rt.;import java.util.;import java.io.; import java.lang.reflect.;import com.sap.aii.mapping.lookup.;import java.io.*; ^ C:/usr/sap/SXI/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map7801d381335311dc8660000c2967ead8/source/com/sap/xi/tf/_MM_File2JMS_.java:57: cannot resolve symbol symbol : class Channel location: class com.sap.xi.tf._MM_File2JMS_ Channel channel = null; ^ C:/usr/sap/SXI/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map7801d381335311dc8660000c2967ead8/source/com/sap/xi/tf/_MM_File2JMS_.java:58: cannot resolve symbol symbol : class DataBaseAccessor location: class com.sap.xi.tf._MM_File2JMS_ DataBaseAccessor accessor = null; ^ 3 errors

  • Strange SAP XI mapping UserDefine function - 'syncTexts' and 'first'

    Hi,
    In the SAP standard OrderCreate_OrdersOrders05 XI map, there is a strange node logic at /ORDERS05/IDOC/E1EDP01/E1EDP19, the source is /OrderCreate/OrderCreateBody/OrderCreateDetails/OrderCreateProductLineItem/ProductIdentification. There are SAP UserDefined function 'syncTexts' and 'first' in the mapping logic.
    Does anyone have any idea why there is such userdefine logic in the map? it's actually causing problem in the data mapping and if I remove those functions it works, but think there should be some reason why SAP code the logic like this....
    anyone knows?
    Thanks!
    Archer

    Hi Archer,
    You are talking about SAP standard map. So it is shipped with a certain SWVC and namespace.
    How should I find it without this information? I cannot look in every SWVC...
    Regards
    Stefan

  • Catalog integration in MM (html - SAP-field mapping)

    Hi Experts! When integrating Catalog with MM (ME21N and ME51N), the only customizable entry in the IMG is the call-structure. Anyone who knows the transaction codes  / tables for HTML-SAP-field mapping (OCI) for this scenario ?? (For PM/CS/PS-orders this is available, but I have not managed to find this for MM)...
    brgs ziggy

    to pull Metadata from CMS repository into MM, you will have to configure the CMS Integrator and run that CMS Integrator, this you can do from the CMC
    as Werner mentioned SAP BW Integrator is being added for next MM release
    its not possible to import Metadata from Excel Sheet into MM, you will need a Integrator to do that, MM supports Integrator for CMS, Data Services, RDBMS, and there are few more Integrators that are provided by MITI (it requires a separate license)
    I don't think it will be possible to mimic the impact and lineage

  • Sap road map

    Dear all
    could anybody tell me Sap road map ?
    pls urgent , tell me as soon as possible
    Regards with
    Rams

    Dear Sir,
    SAP ROAD MAP is nothing but guide how you follow( to be followed)
    You just go through you can understand
    I would like to share with all of you the following Road Map which explains in brief and envisages  modus operandi .
    Goals:
    •     To brought-up you to the level of interview phase
    •     To place you with Industry within a short span of time
    Road Map :
    The road map explains the ways and the processes that are used as tools to  achieve the goals stated above :
    1.Assessment of Strengths and Weakness
    This phase involves  an interview with object of identifying
    •The areas in which you have possessed the  expert knowledge in SAP FI/CO modules
    •The areas wherein your SAP FI/CO skills are to be improved to the levels that are expected by the Industry
                 This  process will present to  you with a feed back of where you are now and what shall be the desired  skill set for you with object of getting the job at earliest .
    2.Resume Preparation
    At the end of this phase, you will have your resume in your hand . This resume  is nothing but a window of your SAP FI/CO skills that you are going to market. In other words, this constitutes a set of milestones to achieve .
    3.Set the Time frame
    This phase requires preparation of time frame to achieve the goals envisaged by this document
    4.On line Training
    This phase ensures you to improve your skills that are identified in the first phase.
    To render this phase to get success , you have to secure dedicated broad band (internet ) connectivity  with a SAP R/3  installed system.
    5.Collection of  FAQs
    In this phase , you will have a list of FAQs that are critical for your success in the interview
    6.Assessment of  mid term progress
    This phase provides you with the feed back on your performance before the interviews. It is meant to provide  you  with what progress has been so far made , shortfalls and remedies.
    7.Mock Interviews
           In this phase, you will under gone through  a chain of mock interviews with object of getting necessary  confidence to face interviews effectively.
    8.Resume is floated
    Your resume is floated using all channels available at that time which includes among other things direct references . You need not think of this process as it will be done by me. You will have the  notice of the companies to which your resume has been forwarded and the time and the venue of the interviews .
    9.Opportunity to Evaluate  yourselves
    Every interview is a mile stone for you and   you have to cross a number of mile stones ( interviews )  to ultimately to get an opening for you in the SAP.  Each interview provides an opportunity  to assess yourself, provides the feed back and how to  prepare for the  next interview. I will provide post interview assistance which is very critical for the ultimate success .
    10.To sea the light on the other side of the tunnel !
    You have to work with dedication , discipline and patience to sea that you are a professional SAP FI/CO consultant. You have to remember always that there is no short-cut except with dedication and hard work for the success in the SAP carrier.
    Hope this clarify you
    Regards
    Harikishan

  • Configure SAP LDAP mapping for MS-ASD

    Hello,
    I 'm configuring an LDAP connector from my MS-AD to my SAP-4.7 ABAP system so the user account from the MS environment gets synchronized with my SAP system.
    I have configured the connection and created some mapping already but I have still some questions about the settings:
    1. With the report I'm able to synchronize an MS_AD account with my SAP environment. For the first test I only add one account name so all other existing accounts are not changed. When the MS-AD account not exists on SAP the account is created like the mapping. I have also the option in this report to delete the user account from the SAP system when the account doesn't exist any more in the MD-AD. How could I prevent that some special user accounts on the SAP system are note deleted even when they are not available in the MS-AD?
    2. With the mapping function MAP_SPLIT_CHAR  a variable by a certain character into two ore more SAP fields like telephone number and telephone extension. Is it possible to split the content of a variable by a fixed amount of characters?
    For example the user location is written like ABC.XZZ
    ABC is the building number and X is the floor number and ZZ is the chamber.
    3. With the mapping function MAP_conc_CHAR I'm able to combine to MS-AD fields into one SAP filed. Is it possible to combine a constant value with a field from MS-AD?
    4. I'm able to insert multiple parameters or user roles by using the function MAP_CONSTANT. I add one attribute and the constant values as parameters. For a couple of parameters I have to insert a MS-AD field. How could I combine inserting constant parameters with some MS-AD fileds
    Example
    The Parameters CAC and BUK are fixed to the company code. But the parameter PER must be set to the employee number. This value I get from the MS-AD .
    5. For the Employee mapping to SAP-HR I have also to configure the Stucture and fields. Does any one have an overview of structure names and field names from the employee structure? It couldn't be asked with the F4 option which could be user with the user mapping.
    Manny thanks in advanced for the answers.
    Kind regards,
    Richard Meijn

    Hi,
    1.
    create a user group for the special users and another user group for "real" users. Restrict the synchronization report to the second user group.
    2.
    You can write your own mapping functions. You will need a developer key in your system and some ABAP knowledge. Create your functions with SE80 or SE37. It is easy to create a function
    3.
    The same: create your own mapping function.
    4.
    It might be possible to fill the different parameters from different AD values depending on the parameter name. Use the ABAP statement "CASE". But there is no such function. You have to write it by yourself.
    But think about what you really want to do. Do you want to invent an Identity Management? There are already a lot of tools. The SAP answer "SAP Netweaver Identity Management" was already mentioned.
    Regards
    Rainer

  • SAP IDoc mapping to Quadrem xCBL 3.0 format?

    Hi there,
    We currently have an XI scenario whereby PO's and RFQ's are sent to a Quadrem system that requires the message to be in xCBL 3.0 format. I have seen that SAP provide some standard XSLT's that can convert the SAP IDoc into xCBL 3.5. (namespace - http://sap.com/xi/EBP)
    To counter this currently we first run the SAP standard XSLT mapping to xCBL 3.5 and then run a Java mapping to convert that result into xCBL 3.0.......
    My question is: Is there a SAP standard XSLT that can convert into the xCBL 3.0 format?
    Would you recommend enhancing the SAP standard XSLT from SAP so that it caters for the xCBL 3.0 format? Obvioulsy I would prefer to just use standard SAP though....
    Any ideas?
    I would appreciate any advise or push in the right direction...thanks
    Regards
    Lynton

    Hi Chris,
    Sorry for the late response....I work at multiple clients.
    What we currently do is use the standard mappings from SAP to get the IDoc into xCBL 3.5 format and use some Java mappings to take out or add in any other fields to that mapping....
    To be honest I would love to have a GRAPHICAL mappings for this, it would be so much easier to maintain.......
    Any ideas on what you think would be the easiest way to get this right?
    Thanks
    Lynton

  • SAP - Oracle mapping deployment problem

    Source system: A development SAP 3.4 system that works on a Oracle 8.0.5 database.
    Target system: Windows XP, Oracle 9.2.0.4
    OWB: 9.2
    After I designed an my easy one-table mapping, I registered both locations:
    LOC_SRC_SAP:
    schema_name: system
    service_name: TD0
    host_name: 200.39.17.243
    port_number: 1527
    LOC_TAR_STAROSA
    schema_name: wbtar
    service_name: wbserver.us.oracle.com
    host_name: jxg02176.us.oracle.com
    port: 1522
    and had deployed dblink: CON_STAROSA and a single table, I've got the following error after the mapping deployment.
    17:52:20 [515445] java.sql.SQLException: No more data to read from socket
    17:52:21 [515445] java.sql.SQLException: No more data to read from socket.
    17:52:21 [515445] java.sql.SQLException: Io exception: Connection aborted by peer: socket write error
    17:52:21 [515445] java.sql.SQLException: Io exception: Connection aborted by peer: socket write error
    17:52:21 [515445] java.sql.SQLException: Io exception: Connection aborted by peer: socket write error
    18:02:09 [F4FB3] oracle.wh.runtime.platform.adapter.InfrastructureException: RPE-01003: An infrastructure condition prevented the request from completing.
    - Io exception: Connection reset by peer: socket write error
    I've got the following conclusions:
    1. Is it a database version problem? If it's true, At least what is the closest version I should try?, so it won't cause a considerable impact on the sap system and therefore the pl/sql mapping statement can be able to extract data from a 8.x version.
    2. Or what would occur if I install an Oracle 8.1.7 odbc or jdbc on the target system, so this socket problem would not happen any more?
    Any suggestion can be helpful.
    Jesus
    [email protected]

    Jesus,
    I am looking into this. I don't believe it's a database version problem - let me investigate with development.
    Regards:
    Igor

  • SAP Database map

    Hello team
    I need support with SAP database because need a map for can see it
    Thanks....

    Hi Sriram , I Need a DB relationship map of SAP Data Base I mean its needed with more graphic more to see this is more easy for my
    For Example:
    http://www.ender.es/wp-content/uploads/2010/03/modelo_entidad_relacion_matriculacion1.png
    Something like that
    In SAP B1 exist any this

  • SAP Field Mapping to I-Doc INVOIC

    Hi,
    I am looking for a documentation of mapping for I-Doc INOVICE02. Would like to know which SAP Standard fields (VBAP, VBAK) are going to be mapped in which I-Doc Segment, field for INOIVCE (Outbound).
    Does anybody know where I can find this?
    Thanks and best regards
    Isabella

    Hi Isabella
    I've just been through the same exercise, although with a different idoc/tables.
    The best advice I have is that if the segment field name is the same as the table field name, then you've found a match.
    It's a bit hit and miss, I know, but I couldn't find a neater way.
    James

  • ADP to SAP table maps

    Experts,
    I am looking for table relationships between ADP and HCM infotypes, for loading employee master data from ADP into SAP. I do have an 1800+ page document with all the tables in ADP, however, I was hoping there should be one map available...
    Edited by: NW on Sep 23, 2009 9:58 AM

    Experts,
    I am looking for table relationships between ADP and HCM infotypes, for loading employee master data from ADP into SAP. I do have an 1800+ page document with all the tables in ADP, however, I was hoping there should be one map available...
    Edited by: NW on Sep 23, 2009 9:58 AM

  • SAP message mapping

    Hello,
    Why do we monitor message mappings error on ABAP stack : sxmb_moni since the mapping is converted into jar file in the background within SAP ,so why we dont monitor in java stack : RWB ? I am just bit confused. Could someone explain?
    Thank you

    We monitor the Pipeline steps in ABAP stack (SXMB_MONI).....one of which is Interface Determination.
    As Interface Determination inturn refers to the mapping program we are able to see it there.....actually a JRFC call is maintained between ABAP and JAVA stack through which the data passes between these two components
    Regards,
    Abhishek.

  • Location of com.sap.aii.mapping.api on PI 7.1.

    Hello,
    just tried to extract the above mentioned jar. file for development of java mappings on my local machine. I can find the jar on XI 3.0 in j2ee\cluster\server0\apps\sap.com\com.sap.xi.services (as also described in some tutorials) however in release 7.1. it does not seem to be there. Has the path structure changed in the new release and where can I find the standard libraries on 7.1.?
    Thank you for your information.

    Hi Florian,
    Please see the path mentioned in this wiki:
    https://wiki.sdn.sap.com/wiki/display/XI/Where%20to%20get%20the%20libraries%20for%20XI%20development
    Regards,
    ---Satish

  • How to remove target node if source field value is empty SAP PI Mapping

    Hello,
    how to remove target node if source field value is empty in graphical Mapping.
    Like if
    MIddle name in source filed is empty, I would like to eliminate target field from out put XML.
    Thank you
    John

    Hi Jhon,
    If you want to remove all empty tags and you dont to complicate your message mapping, you can use a XSL, after the message mapping,  to remove all the empty tags:
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
        <xsl:template match="node()|@*">
            <xsl:copy>
                <xsl:apply-templates select="node()|@*"/>
            </xsl:copy>
        </xsl:template>
        <xsl:template match="*[not(@*|*|comment()|processing-instruction())
         and normalize-space()='' ]"/>
    </xsl:stylesheet>
    Regards

Maybe you are looking for

  • Dynamic Logo file names in PO XSL-FO stylesheet

    We have different company logo files for different operating units. Hence , we require to use a dynamic logo file name in XSL-FO template. When I use the below for a single file it works.      <fo:inline> <fo:external-graphic content-width="50pt" con

  • Creative Cloud app Windows 8.1 Black Screen.

    Hello. I recently downloaded the Creative Cloud on my Windows 8.1 in order to try some of adobe's CC products. The problem is that the app doesnt start, it just stays on a black screen, like that. I tried reinstallig it several times, but nothing see

  • Need Help for Nokia 6500 slide

    Hi all I'm A new Guy here , But I do really need help for hard reset my phone I already try *#7073# But It doesn't work , If Anybody know to make a hard reset please help

  • Are the brushes in Photoshop CC faster than CS6 - still need to use CS5 for large files

    Hey, Are the brushes in Photoshop CC any faster than Photoshop CS6. Here's my standard large file, which makes the CS6 brushes crawl: iPad 3 size - 2048 x 1536 About 20-100 layers A combination of vector and bitmap layers Many of the layers use layer

  • Apache vulnerabilities

    We've recently had some security consultants go through our environment and the report they've provided has advised that some high priority upgrades are required on our NetWare servers around the Apache versions. We are running NW65sp7, and the repor