Error in UDF

Hi Experts,
I am trying to trigger alert using UDF in message mapping.
My UDF looks like this.
*Map map = container.getTransformationParameters();
String msgID = (String) map.get("MessageId");
Channel channel = LookupService.getChannel("Alert_Call_Receiver_BS","Alert_Call_Receiver_CC" );
RfcAccessor accessor = LookupService.getRfcAccessor(channel);
String rfcxml ="<?xml version="1.0" encoding="UTF-8"?><ns0:SALERT_CREATE xmlns:ns0="urn:sap-com:document:sap:rfc:functions"><IP_ALIAS/><IP_APPLICATION_GUID/><IP_CAT>ALERT_EMAIL</IP_CAT><IP_XML_CONTAINER/><IT_CONTAINER><item><ELEMENT>OBJECT_TYPE</ELEMENT><TAB_INDEX>0</TAB_INDEX><ELEMLENGTH>1</ELEMLENGTH><TYPE>C</TYPE><VALUE>"v_OBJECT_TYPE"</VALUE></item><item><ELEMENT>OBJECT_ID</ELEMENT><TAB_INDEX>0</TAB_INDEX><ELEMLENGTH>10</ELEMLENGTH><TYPE>C</TYPE><VALUE>"v_OBJECT_ID"</VALUE></item></IT_CONTAINER></ns0:SALERT_CREATE>";
InputStream inputStream =new ByteArrayInputStream(rfcxml.getBytes());
XmlPayload payload = LookupService.getXmlPayload(inputStream);
Payload rfcOutPayload = null;
rfcOutPayload = accessor.call(payload);
return v_OBJECT_TYPE;*
When I do a check of my message mapping, I am getting error
Source code has syntax error:  /usr/sap/XIS/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Mapf74ccc40c02211dec6c4cecf0000a002/source/com/sap/xi/tf/_ENOVIA_Error_MT_Alert_Call_MT_.java:63: ';' expected String rfcxml ="<?xml version="1.0" encoding="UTF-8"?><ns0:SALERT_CREATE xmlns:ns0="urn:sap-com:document:sap:rfc:functions"><IP_ALIAS/><IP_APPLICATION_GUID/><IP_CAT>ALERT_EMAIL</IP_CAT><IP_XML_CONTAINER/><IT_CONTAINER><item><ELEMENT>OBJECT_TYP.
I have not imported any thing for this UDF. Can you pleasae suggest if the error is due to missing imports?
If so please suggest the requred imports.
Thanks and best regards,
Prasad

Try with this
String rfcxml ="<?xml version=\"1.0\" encoding=\"UTF-8\"?><ns0:SALERT_CREATE xmlns:ns0=\"urn:sap-com:document:sap:rfc:functions\"><IP_ALIAS/><IP_APPLICATION_GUID/><IP_CAT>ALERT_EMAIL</IP_CAT><IP_XML_CONTAINER/><IT_CONTAINER><item><ELEMENT>OBJECT_TYPE</ELEMENT><TAB_INDEX>0</TAB_INDEX><ELEMLENGTH>1</ELEMLENGTH><TYPE>C</TYPE><VALUE>"+v_OBJECT_TYPE+"</VALUE></item><item><ELEMENT>OBJECT_ID</ELEMENT><TAB_INDEX>0</TAB_INDEX><ELEMLENGTH>10</ELEMLENGTH><TYPE>C</TYPE><VALUE>"+v_OBJECT_ID+"</VALUE></item></IT_CONTAINER></ns0:SALERT_CREATE>";
Escape characters and string concatenation characters are added

Similar Messages

  • Message Mapping activation error-Source code has syntax errors in UDF

    Hi all,
    I wrote a small UDF for sum of 2 numbers:
    import
    udf.*
    public String getsum(String a, String b, Container container) throws StreamTransformationException{
    int c = Integer.parseInt(a);
    int d = Integer.parseInt(b);
    int e = packageDemo.getSum(c,d);
    return e+"";}
    In imported archives, i imported pack.jar
    In D:\udf , I have packageDemo.java, packageDemo.class, aii_map_api.jar, pack.jar(has the other 3)
    packageDemo.java :-
    package udf;
    public class packageDemo{   
        public static int getSum(int a,int b)
            int c= a+b;
            return c;
    Did i miss anything?? Icant activate message mapping for 2 errors:-
    1.package udf does not exist
    2.Function getsum, Line 3:
    cannot find symbol symbol : variable packageDemo location: class com.sap.xi.tf._xml_mm_int e = packageDemo.getSum(c,d); ^Note: /usr/sap/P7R/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Mapd4214d3099dc11dd9470001d090e4bbe/source/com/sap/xi/tf/_xml_mm_.java uses or overrides a deprecated API.Note: Recompile with -Xlint:deprecation for details.Note: /usr/sap/P7R/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Mapd4214d3099dc11dd9470001d090e4bbe/source/com/sap/xi/tf/_xml_mm_.java uses unchecked or unsafe operations.Note: Recompile with -Xlint:unchecked for details.2 errors
    Edited by: NagaDurga Nannapaneni on Oct 16, 2008 1:07 PM

    Hi ,
    Think the error is coming because the content in imported archive is not being taken into message mapping at all...so package, class, method ..nothing is identified.
    Can anyone suggest the solution..
    Thanks,
    Durga

  • Message Mapping error in UDF

    I am receiving errors when trying to activate my MM.  I believe the issues are in one of two UDF's.  These UDF's do work in another MM without error.  Below are the error's and UDF's.
    ERRORS:
    Activation of the change list canceled Check result for Message Mapping MM_WPDBBY_WPDBBY01_TO_POS_WAWAFILE | http://wawa.com/xi/erp/pos:  Starting compilation  Source code has syntax error:  /usr/sap/XID/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map5420e070cabe11dcab4b00306ef38da9/source/com/sap/xi/tf/_MM_WPDBBY_WPDBBY01_TO_POS_WAWAFILE_.java:3291: cannot resolve symbol symbol : variable container location: class com.sap.xi.tf._MM_WPDBBY_WPDBBY01_TO_POS_WAWAFILE_ map = container.getTransformationParameters(); ^ /usr/sap/XID/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map5420e070cabe11dcab4b00306ef38da9/source/com/sap/xi/tf/_MM_WPDBBY_WPDBBY01_TO_POS_WAWAFILE_.java:3293: cannot return a value from method whose result type is void return constant; ^ 2 errors
    UDF's:
    public String getSender(Container container){
    String constant;
    java.util.Map map;
    // get constant map
    map = container.getTransformationParameters();
    constant = (String) map.get (StreamTransformationConstants.SENDER_SERVICE);
    return constant;
    IMPORTS:  com.sap.xi.mapping.parse.dom.;javax.xml.parsers.;java.io.;com.sap.aii.mapping.lookup.;org.w3c.dom.*;
    public String getSeqNum(String fileType,String objNum,String Sender,Container container){
    String request = "<ns0:ZRFC_NUMBER_GET_NEXT xmlns:ns0=\"urn:sap-com:document:sap:rfc:functions\"><NR_RANGE_NR>" + fileType + "</NR_RANGE_NR><OBJECT>" + objNum + "</OBJECT><QUANTITY/></ns0:ZRFC_NUMBER_GET_NEXT>";
    InputStream isRequest = new ByteArrayInputStream(request.getBytes());
    SystemAccessor accessor = null;
    String num  = null;
    try{
         // 1. Determine a channel.
         Channel channel = LookupService.getChannel(Sender, "R_RFC_ERP");
         // 2. Get a system accessor for the channel.
         accessor = LookupService.getSystemAccessor(channel);
         // 3. Create a payload according to the data type which the adapter expects.
         //    Use service.getBinaryPayload() for binary payload,
         //    and service.getTextPayload() for text payloads.
         Payload payload = LookupService.getXmlPayload(isRequest);
         // 4. Execute lookup.
         Payload response = accessor.call(payload);
         //Parse response
         DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
         DocumentBuilder builder = factory.newDocumentBuilder();
         InputStream resStream = response.getContent();
         Document doc = builder.parse(resStream);
         Element sequence = doc.getDocumentElement();
         NodeList number = sequence.getElementsByTagName("NUMBER");
         //Extract Number
         num = DOMUtil.getSimpleElementText((Element) number.item(0));
    } catch (Exception e) {
         return e.getMessage();
    } finally {
         try {
              if (accessor != null) accessor.close();
         } catch (Exception e) {
              return e.getMessage();
    GlobalContainer gc = container.getGlobalContainer();
    gc.setParameter("Num", num);
    return num;
    Any help is appreciated.
    Regards,
    Darrell

    Fauver,
    Just to narrow down the problem first remove the first udf and only use the 2nd user defined function. Also in the 2nd udf you have to change this line:
    try{
    // 1. Determine a channel.
    Channel channel = LookupService.getChannel(Sender, "R_RFC_ERP");
    In the above line instead of Sender you use the business service or business system where R_RFC_ERP RFC communication channel is created in Integration Directory. So you are hardcoding it first.
    Once you have done this changes do save and test it once again. If this works then you can change back to original and your first udf needs to be checked.
    Regards,
    ---Satish

  • Cannot resovle the Symbol error in UDF - Java mapping - RFC Lookup ?

    Hi Friends ,
    We are working on Java mapping  -  UDF for RFC Lookup . It is giving the Cannot resolve Symbol for all imported archive java class files even if we give again all imported files in import section of UDF we are still getting the same cannot resolve error  .
    We are using SP 12 of XI 3.0 . What could be the reason ?
    Thanks.,
    V.Rangarajan

    Hi,
    Can you try to open imported archive in IR and check if the path(folder structure like com.abc.xyz.etc) for classes is same as in import statement in UDF.Since we had experienced the same problem.
    Thanks.
    Regards,
    Shweta

  • After 8.8 Upgrade Invalid Column Name error on UDF in Sales Order

    I have upgraded a dtaabase from 2005A to 8.8 SP00 PL15.
    I encountered a UDF/UDT warning (Note 1360832) in the Pre-Upgrade CHeck but proceeded in any case.
    After the upgrade as soon as I enter the BP in a Sales Order, I get the following error.
    [Microsoft] [SQL Server Native Client 10.0] [SQL Server] [Invalid Column Name U_CampPB1.2)
    [Microsoft] [SQL Server Native Client 10.0] [SQL Server] Statement 'Withholding Tax'  (OWHT) could not be prepared.
    This UDF was one of many reported in the Upgrade Wizard Log File as having an incorrect Type.
    " Type is different; Should be A, Is M".
    There are hundreds of instances of this message in the log.
    I don't know whether the error is related to the Type is different warning.
    I don't get the error when I add an AR Invoice.
    In addition I cannot find any documentation on the different UDF Type codes.

    Hi,
    should you have any errors before or after upgrade, log a message to a support. That's the best solution.
    JimM

  • OIM 11gR2: error migrating UDFs

    Hi all,
    I added some UDFs in my test environment and then migrate them in production environment.
    To achive this I searched more details about on the web and I found this post UDF migration in oim11gr2
    I followed the post and so I exported and imported these UDFs using Deployment Manager (Export/Import User Metadata).
    Considering that in my test environment I had already published the sanbox containing the UDF customization, I redo the web interface customization manually and so I added the UDF in user create/modify/view forms again.
    Doing some test, I noticed that during user creation, one of the UDF just added does not work: more in details its value was not stored in the corresponding databese table column.
    Can anyone help me, please?
    Thanks in advance,
    Daniele

    Hi
    Did you use pack and unpack command for configuration?
    Creating and Starting a Managed Server on a Remote Machine - 11g Release 1 (10.3.6)
    Regards
    Shashank k

  • Error Executing UDF

    Hello,
    I have a source message like
    <Source>
    <Field>CSV</Field>
    </Source>
    Value of Field can be either CSV or XML. I have to check if the Field has value CSV or XML and also if the Field exists.
    I am able to do it using standard functions in mapping, but I want to check it using a UDF.
    For the first part (check CSV or XML) I wrote a UDF:
    if((!var1.equals("CSV")) || (!var1.equals("XML")))
    return "fail";
    else
    return "pass";
    Even if Field = CSV or XML, the UDF returns fail (it should return pass). What is wrong in the UDF?
    Also how should be the UDF if I have to check for existence of Field?
    Field --> UDF --> TargetField
    If source Field does not satisfy the conditions then TargetField should not be generated.
    ~Thanks.

    Hello,
    Please try the below if condition:
    if( !(var1.equals("CSV")) || !(var1.equals("XML")))
    Also how should be the UDF if I have to check for existence of Field?
    You can use Exists node function.
    If source Field does not satisfy the conditions then TargetField should not be generated
    Use IF without else function. If you are using UDF, use
    result.addValue(ResultList.SUPPRESS);
    -Rahul

  • Handling errors in UDFs

    This question was posted in response to the following article: http://help.adobe.com/en_US/ColdFusion/10.0/Developing/WSc3ff6d0ea77859461172e0811cbec22c2 4-7d00.html

    The p tag inside cfform should be removed.
    "so that it the calling ColdFusion page catches it" should be "so that the calling ColdFusion page catches it."
    For the last code, </cftry> needs to be inside of the code box.

  • UDF Problem in message mapping

    Hi,
    I have proxy to file scenario where i am getting mapping error
    Runtime exception during processing target field mapping /ns0:DataManagement/payrollArea. The message is: Exception:[java.lang.NullPointerException] in class com.sap.xi.tf._DataManagement_to_DataManagementM4_ method SetFileName$[, com.sap.aii.mappingtool.tf3.rt.Context@1861efad].
    There is one UDF Set file Namewhich t is throwing  error.
    UDF Setfilename
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File", "FileName");
    String targetFileName="DMS_" + a + ".dat";
    conf.put(key,targetFileName);
    return a;
    Please help me in this issue.
    Thanks in Advance

    Hi,
    This error will not come while actual run of scenario.
    During Testing Message mapping, this might be coming to you, but while actual run scenario will work fine.
    and one more thing ...
    please your code inside try .. catch block of java code
    try
    /* your actual code */
    catch(Exception e)
    String exception = e.toString();
    return exception;
    Hope this will help you.
    Regards
    Prabhat Sharma.

  • Payroll Run processing error out with PTO element

    I have created new payroll and trying to process first payroll of employee but when we are processing with PTO element it is getting error out below error.
    UDF Error in formula PTO_NONEXEMPT_VACATION_ORACLE_PAYROLL at line 45: Value exceeded allowable range (line 133 of XXRAC_PTO_HD_ANNIVERSARY_BALANCE)
    Thank You
    Nitin Maheshwari

    Benjamin,
                   there are several ways to reprocess the structure of a SSAS 2005 object.
                   In my example I use an SSIS 2005 processing task in an ETL package, but the simplest way is:
                   Log on to the database using SQL Server Management Studio 2005; Open the cubes tree under your database, and right-click one of the cubes; Choose "Process" from the context menu and then another window will open. This window should show your cube name and then some options; Under "Process Options", change the default option (I think it's "Process Full") to "Process Structure". Click "OK" and the structure of your cube should be reprocessed, correcting the error.
                   Some observations: You might have to do this first for all the dimensions, because the cubes depend on them, and you also might have to do it one object at a time through this method. Through an SSIS 2005 package, you are able to do this in batch using a special SSAS processing task.
                   Let me know if you solved your problem.
    Bruno

  • Write log file on error

    With alert configuration we can send notify user when there is an error.
    Is there a way to write a log file when there is an error (assume no BPM used).

    There are a couple of things you can do to create a log file:
    1. You can create a custom alert and trigger it by generating an exception in your message mapping. This can be done using a user defined function. In the same user defined function you can call a communication channel to write the error log file.
    2. You can create 2 interfaces the first one is your main interface, in that interface donot error out the interface in the message mapping. Populate a certain error value in the target and use that value in another message map to create another map with the error
    IntfA -
    > UDF (Error --> X) ---> Target (<field Z>X</field>). --> IntfB
    IntfB -
    > Check value for X in field Z to populate the eror records to the target structure --> intFC.
    Same condition u need to put in the rcvr determination so that it doesnot give an error.

  • Can't remove a user defined field with DI API.

    Hi,
    I'm using the code below to remove a user field.  However, the first time I run it, I get the message that:
    "Ref count for this object is higher then 0"
    The second time I run it, I get the message that:
    "No matching records found (ODBC -2028)"
    As you can see, I am killing the UserFieldsMD object.  In fact, when the function is entered, the object is nothing but later instantiated with oCompany.
    The result in both cases is that the field doesn't get removed.  What am I missing?  Any ideas?
    Thanks,
    Mike
        Public Function RemoveUserField(ByVal FieldName As String, ByVal TableName As String, ByRef ErrMsg As String) As Boolean
            Dim Result As Boolean = False
            Dim Err As Integer
            Dim oUserFieldsMD As SAPbobsCOM.UserFieldsMD
            Try
                If Not FieldExists(TableName, FieldName) Then
                    Result = True
                Else
                    oUserFieldsMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields)
                    With oUserFieldsMD
                        .TableName = TableName
                        .Name = FieldName
                        Err = .Remove
                        If Err Then
                            oUtilCompany.GetLastError(Err, ErrMsg)
                            If ErrMsg = "No matching records found (ODBC -2028)" Then
                                Result = True
                            Else
                                ErrMsg = "Was not able to remove field " & FieldName & " from table " & TableName & " programmatically." & vbCrLf & _
                                         "Please remove it manually using the Tools menu."
                            End If
                        Else
                            Result = True
                        End If
                    End With
                End If
            Catch ex As Exception
                Throw ex
            Finally
                KillObject(oUserFieldsMD)
            End Try
            Return Result
        End Function
        Public Sub KillObject(ByRef Obj As Object)
            If Not Obj Is Nothing Then ObjectRelease(Obj)
        End Sub
        Private Sub ObjectRelease(ByRef Obj As Object)
            'This routine releases objects that were acquired with oCompany.GetBusinessObject().
            System.Runtime.InteropServices.Marshal.ReleaseComObject(Obj)
            Obj = Nothing
            GC.Collect()
        End Sub

    Hi Mike,
    The issue with your code is that you are not calling the GetByKey method of the field object. Until you do this the FieldID property is 0 so when the Remove method is called it will not try and remove the correct UDF (if you run SQL profiler then you'll see that SBO is looking for the UDF based on the table and fieldID values).
    Something like the following works for me:
    private void DeleteUDF(string sTableID, string sFieldName)
        SAPbobsCOM.UserFieldsMD sboField = (SAPbobsCOM.UserFieldsMD)_sboCompany.GetBusinessObject(BoObjectTypes.oUserFields);
        try
            int iFieldID = GetFieldID(sTableID, sFieldName);
            if(sboField.GetByKey(sTableID, iFieldID))
                if (sboField.Remove() != 0)_sboApp.SetStatusBarMessage("Error removing UDF: " + _sboCompany.GetLastErrorDescription(), SAPbouiCOM.BoMessageTime.bmt_Short, true);
        finally
            System.Runtime.InteropServices.Marshal.ReleaseComObject(sboField);
            sboField = null;
            GC.Collect();
    private int GetFieldID(string sTableID, string sAliasID)
        int iRetVal = 0;
        SAPbobsCOM.Recordset sboRec = (SAPbobsCOM.Recordset)_sboCompany.GetBusinessObject(BoObjectTypes.BoRecordset);
        try
            sboRec.DoQuery("select FieldID from CUFD where TableID = '" + sTableID + "' and AliasID = '" + sAliasID + "'");
            if (!sboRec.EoF) iRetVal = Convert.ToInt32(sboRec.Fields.Item("FieldID").Value.ToString());
        finally
            System.Runtime.InteropServices.Marshal.ReleaseComObject(sboRec);
            sboRec = null;
            GC.Collect();
        return iRetVal;
    Note that the parameter sAliasID is the field name without the U_ prefix.
    Kind Regards,
    Owen

  • Issue with SRM SEVER IC 7.01 Mapping content

    HI,
    We have imported the SRM SERVER 7.01 and SRM SERVER IC 7.01 onto our PI system. And copied the follwoing mappings from namespace 'http://sap.com/xi/SRM/SupplierEnablement/Global/IC' to our Software Component Version.
    1. MM2SUSOrderCreate
    2. SUS2MMOrderResponse
    After makking some changes in the filed we checked the mapping, but it throwing the following error from UDF.
    1)Function another, Line 3:
    not a statement  if (a.equals("001")) Object iter =storage.fullNameMap.get("/ORDERS02/IDOC/E1EDP01/E1EDP19/KTEXT");                       ^
    Function another, Line 3:
    ';' expected  if (a.equals("001")) Object iter =storage.fullNameMap.get("/ORDERS02/IDOC/E1EDP01/E1EDP19/KTEXT");                              ^ 2 errors
    2) Source text of object Message Mapping: MM2SUSOrderCreate | http://pg.com/xi/pdm/b2b/global/suppconn/sus has syntax errors:
    Function checkDescr, Line 2:
    cannot find symbol symbol  : variable context location: class com.sap.xi.tf._MM2SUSOrderCreate_    String value = context.getIterator(0).getValue();                   ^
    3) Function name2, Line 2:
    cannot find symbol symbol  : variable context location: class com.sap.xi.tf._MM2SUSOrderCreate_    IResIterator iter= context.getIterator(0);                       ^ Note: /usr/sap/GDD/DVEBMGS01/j2ee/cluster/server0/./temp/classpath_resolver/Mapdcccc054aec611e0c313000000cab07a/source/com/sap/xi/tf/_MM2SUSOrderCreate_.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. 2 errors
    4) Source text of object Message Mapping: SUS2MMOrderResponse | http://sap.com/xi/SRM/SupplierEnablement/Global/IC has syntax errors:
    Function textTest, Line 6:
    array required, but java.lang.String found
        buf.append(a<i>);
                    ^
    Function textTest, Line 10:
    cannot find symbol
    symbol  : variable result
    location: class com.sap.xi.tf._SUS2MMOrderResponse_
       result.add(ausg);
       ^
    Could any one please help me out on this?
    Regards,
    Baskaran K

    Hi Baskaran,
    I am using the SRM std. content too and getting the below errors after copying into my SWCV and activating.
    4) Source text of object Message Mapping: SUS2MMOrderResponse
    |http://sap.com/xi/SRM/SupplierEnablement/Global/IC has syntax errors:
    Function textTest, Line 6:
    array required, but java.lang.String found
        buf.append(a<i>);
                    ^
    Function textTest, Line 10:
    cannot find symbol
    symbol  : variable result
    location: class com.sap.xi.tf._SUS2MMOrderResponse_
       result.add(ausg);
       ^
    Can u please let me know what changes have you done to make it working.
    Thanks
    Neha

  • Alert category - SALERT_CREATE

    Hi Al,
       When we define alert rule/Alert catefogy in  SAP PI, nomally it internally calls SALERT_CREATE report. How should i call customized ABAP report from an alert category?
    When i checked in alert category under Administration Data , i could find application pac which always has SALERT..What does it mean? Is it possile to change this so that alert category will call our customized ABAP report?
    Thanks
    Rajesh

    So you are terminating the mapping in case if your source payload does not contain the data for particular field and sending the error via alert...
    In order not to receive multiple alerts for this..either to remove the alert in UDF or should not end the message mapping in error if udf condition is not satisfied...(continue the mapping dont throw the alert in exception..instead use in try block itself.)
    if mapping should not be continued..for this error and if you remove alert in UDF,still  you can use enable trace in UDF and can find the cause of the error in moni..after receiving the alert using alert rule...(only thing will be error message will not be like what you will frame...)
    HTH
    Rajesh

  • Mapping case

    Hello XI world...here is my problem...I'm mapping a BAPI to XCBL Format..nearly everything is ok...but one thing :
    In my BAPI i have a node for item and i have a node at the same level for item text.
    In the Xcbl format, the item text node is a child of item node.
    Here a little drawing :
    ITEMS
                 i1
                 i2
                 i3
    TEXT_ITEMS
                i1 text_item_i1
                i3 text_item_i2
    And this sould go to the XCBL Format
    XCBL_ITEM
               i1
               XCBL_TEXT_ITEM
               text_item_i1
               i2
               XCBL_TEXT_ITEM
               i3
               XCBL_TEXT_ITEM
               text_item_i3
    Do you have any idea to perform such a mapping ?

    Hi,
    In this case you need to use Context UDF.Here i am sending the sample UDF logic,you go through it and let me know if you get any errors
    This UDF you need to use in TEXT_ITEMS filed mapping
    Context UDF takes 2 inputs,first input is your ITEMS and 2nd is TEXT_ITEMS.
    lets say they are item[] and text[]
    then copy this code
    for(int k=0;k<item.length;k++)
         for(int j=0;j<text.length;j++)
             if(text[j].startsWith(item[k])
               result.addValue(text[j].replaceFirst(item[k],""));
             else
               result.addValue("");
    please let me know if you get any problems with this code.
    Cheers,
    Jag

Maybe you are looking for

  • No success moving iTunes library to external hard drive

    I'm trying to move my iTunes library to an external hard drive to free up some space on my laptop.  I'm working on a Macbook running OSX 10.8.2 and trying to transfer the library to a WD My Passport for Mac (which is optimized for Mac OS Extended). 

  • Line items to be clubbed and shown as single record in BEX output

    Hi All I needed help in BEX The late days are calculated on basis of clearing date , due date which is not shown in output Currently I have output as Plant  Customer   Amount  Late Days A         C1            100          20 A         C1           

  • Face Metadata accessible and/or can it be batch deleted?

    Is there there a way access and/or batch delete "Face" data? Many of my old (pre-digital) photos are scanned from the originals in photo albums. I also have taken a digital photograph of each album page to keep in Aperture for reference. I don't want

  • USSD request cannot be sent

    When I am taping USSD request *300# in my iPhone 3GS (4.3.5) it even is not sent to Operator. When I am taping USSD request *300*1# I got error 'Unknown performing request. Unknown Error'.

  • Trying to use Dropbox for iTunes.

    iTunes Music moved OK. iTunes doesn't seem to let you use Library files anywhere other than the original location. What about the Album Artwork folder? Can it be successfully moved to Dropbox?