Get dynamic filename in a Java Mapping (NOT UDF)

Hi,
we are using a Java Mapping step in XI (not UDF). We need to have access to the filename. In the File Adapter we set the message attributes and can see the filename value in the SXMB_MONI.
We use the following code fragment to have access to the filename:
Container container = new Context(new FunctionWrapper(0));
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
String sourceFileName = conf.get(key);
This doesn't work. We think the declaration of the container class is wrong. Does anybody have some information about using the dynamic attributes in Java Mappings?
Thanks in advance
Michael

import com.sap.aii.mapping.api.*;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.HashMap;
import java.util.Map;
public class JavaProgram
    implements StreamTransformation
    public JavaProgram()
    public void setParameter(Map map)
        param = map;
        if(param == null)
            param = new HashMap();
    public void execute(InputStream inputstream, OutputStream outputstream)
        try
            DynamicConfiguration dynamicconfiguration = (DynamicConfiguration)param.get("DynamicConfiguration");
            DynamicConfigurationKey dynamicconfigurationkey = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File", "FileName");
            String s = dynamicconfiguration.get(dynamicconfigurationkey);
         //Your logic
        catch(Throwable throwable)
            throwable.printStackTrace();
    private Map param;

Similar Messages

  • Java Mapping (not UDF) and Adapter-Specific Message Attributes

    Hello everybody,
    is it possible to create an Adapter-Specific Message Attributes in a java Mapping?
    I found in the SAP Help that the API com.sap.aii.mapping.api.DynamicConfiguration allows only to read, change or delete the attributes.
    best regards.
    Adnane Elgoute

    Hi,
    try the follwoing code
    import com.sap.aii.mapping.api.*;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.util.HashMap;
    import java.util.Map;
    public class JavaProgram
        implements StreamTransformation
        public JavaProgram()
        public void setParameter(Map map)
            param = map;
            if(param == null)
                param = new HashMap();
        public void execute(InputStream inputstream, OutputStream outputstream)
            try
                DynamicConfiguration dynamicconfiguration = (DynamicConfiguration)param.get("DynamicConfiguration");
                DynamicConfigurationKey dynamicconfigurationkey = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File", "FileName");
                String s = dynamicconfiguration.get(dynamicconfigurationkey);
             //Your logic
            catch(Throwable throwable)
                throwable.printStackTrace();
        private Map param;

  • HT1338 I'm getting a message that my Java is not updated, but when I run the update check, I'm told all is updated. Some web materials won't open because my Java is not updated. What do I do?

    I'm getting a message that my Java is not updated, but when I run the update check, I'm told all is updated. Some web materials won't open because my Java is not updated. What do I do?

    Hi Ginny,
    There are no more updates for Java from Apple for 10.5.8, the only way to get a Java upgrade is updating your OSX.
    Snow Leopard/10.6.x Requirements...
    General requirements
       * Mac computer with an Intel processor
        * 1GB of memory (I say 4GB at least, more if you can afford it)
        * 5GB of available disk space (I say 30GB at least)
        * DVD drive for installation
        * Some features require a compatible Internet service provider; fees may apply.
        * Some features require Apple’s MobileMe service; fees and terms apply.
    Which apps work with Mac OS X 10.6?...
    http://snowleopard.wikidot.com/
    It looks like they do still have it:
    http://store.apple.com/us/product/MC573Z/A?fnode=MTY1NDAzOA
    And it's been reported that if you have a MobileMe account Apple will send one free.

  • Java Mapping - Not able to compile .Java file

    Hi Experts,
    I am working with a sample scenario which involves Java Mapping. For this I created MappingClass.java file, After compiling the .Java file .Jar file would be used for Java Mapping by using Imported Archives.
    After compiling the MappingClass.java file, I am getting the errors as below.
    --> Java errors after compilation
    C:\j2sdk1.4.2_13\bin>javac MappingClass.java
    MappingClass.java:4: package com.sap.aii.mapping.api does not exist
    import com.sap.aii.mapping.api.AbstractTrace;
                                   ^
    MappingClass.java:5: package com.sap.aii.mapping.api does not exist
    import com.sap.aii.mapping.api.StreamTransformationConstants;
    --> End of java errors
    In the MappingClass.java file, I had given followed imports.
    import java.util.*;
    import com.sap.aii.mapping.api.AbstractTrace;
    import com.sap.aii.mapping.api.StreamTransformationConstants;
    Could some one please guide me to resolve this issue.
    Thanks in advance.
    ..Sree

    Hi
    I had copied " aii_map_api.jar " file in my Java Class path folder.. i.e " C:\j2sdk1.4.2_08\bin "     AND    " C:\j2sdk1.4.2_08\lib " folders too.. and even in C:\ i.e Root Drive also.
    After trying to Compile my java file (ex : MappingClass.java), still I am getting the errors.
    Errors shown as below.
    --> Errors
    C:\mytest>javac MappingClass.java
    MappingClass.java:2: package com.sap.aii.mapping.api does not exist
    import com.sap.aii.mapping.api.AbstractTrace;
                                   ^
    MappingClass.java:3: package com.sap.aii.mapping.api does not exist
    import com.sap.aii.mapping.api.StreamTransformationConstants;
                                   ^
    MappingClass.java:6: cannot resolve symbol
    symbol  : class AbstractTrace
    location: class MappingClass
        private static AbstractTrace trace = null;
                       ^
    MappingClass.java:12: cannot resolve symbol
    symbol  : class AbstractTrace
    location: class MappingClass
            trace = (AbstractTrace)inputparam.get(
                     ^
    MappingClass.java:13: cannot resolve symbol
    symbol  : variable StreamTransformationConstants
    location: class MappingClass
                       StreamTransformationConstants.MAPPING_TRACE );
                       ^
    5 errors
    --> End of Errors
    Could some one please guide me to resolve this issue.
    Thanks in advance.
    ..Sree

  • Java Mapping (Not Working)

    Hi....
    I have done java mapping using file to file scenario....
    I have created two data types, two message types, two message interfaces... in imported archives i have imported
    dom4j-1.6.1.zip and itext.jar files..
    i have written my java code like this:
    package com.xmltopdf;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import com.lowagie.text.xml.XmlToPdf;
    public class MyXmlToPdf {
    public MyXmlToPdf(String inputFile, String outputFile){
    try {
    XmlToPdf xtp = new XmlToPdf();
    System.out.println("Ravi");
    xtp.parse(new FileInputStream(inputFile), new FileOutputStream(outputFile));
    }catch(Exception e ) {
    System.out.println(e);
    in message mapping i have invoked "MyXmlToPdf(String,String) constructor like this:
    MyXmlToPdf xmt= MyXmlTOPdf("C:
    source
    filetofile.xml","C:
    source
    file.pdf");
    return "";
    and i have configured my communication channel, reciever determination, sender aggrement, reciver aggrement, and interface determination.....
    so please tell me whether my code is correct or not... if its correct why i am not getting the pdf file.. if its not correct please tell me whats wrong in my code...
    Thanks & Regards
    Ravi Shankar B

    Hi ,
    select XMLTOOLKIT option in Operation mapping and execute it.
    I am not sure we can call java program in XSLT Program,but alternative is copy the code and use it in XSLT mapping it self,that means your XSLT program will become with JAVA extensions.
    then in Operation mapping level select SAPXMLTOOL kit option and execute it. i hope it will work. if it is not working then you have deploy some JAXP files on server,because the way execution of XSLT Mpaping program got changed,like when eve you executing XSLT with extnasions( if you are not using XMLTOOL kit option) then you have to use latest version of JAXP.JDK files.
    Regards,
    Raj

  • Java mapping or UDF required for a requirement!!!

    I am doing idoc to file scenario and stuck with the mapping in the following case. I think an UDF or JAVA mapping will do the bill. can some one help me in this regard please.
    IDoc message type, IDoc basic type, IDoc extension
    PAYEXT.PEXR2002.ZEXR2002.
    <u><b>conditions:</b></u>
    IF E1IDB02 BA-FIIKWAER = CNY
          then MID(E1EDKA1 BE-NAME1,12,11)
    IF E1IDB02 BA-FIIKWAER <> CNY and LEN(E1EDKA1 BE-NAME1)<=35
         then MID(E1EDKA1 BE-STRAS,1,35)
    IF E1IDB02 BA-FIIKWAER <> CNY and LEN(E1EDKA1 BE-NAME1)>35
         then MID(E1EDKA1 BE-NAME1,36,35)
    This will be mapped to "Info Line 1" field in file.
    Thanks,
    Kiran

    Hi Mr.Kiran,
    here is the code
    pass the following fields to Context UDF
    1.E1IDB02-FIIKWAER
    2.E1EDKA1-NAME1
    3.E1EDKA1-STRAS
      for(int k = 0;k<FIIKWAER.length;k++)
         if(FIIKWEAR[k].equalsIgnoreCase("CNY"))
            result.addValue(NAME1[k].substring(11,12));
         else if(!(FIIKWEAR[k].equalsIgnoreCase("CNY"))&&(NAME1[k].length() <= 35))
           result.addValue(STRAS[k].substring(1,35));
         else if(!(FIIKWEAR[k].equalsIgnoreCase("CNY"))&&(NAME1[k].length() > 35))
          result.addValue(NAME1[k].substring(35,36));

  • To Get Dynamic filenames while using sync get FTP Adapter?

    Instead of looping and getting filenames after file listing...
    i am thinking to use flow N.instead of while loop after filelisting..
    i am able to find, different file names in the assign activity, before the invoke activity which is assigned to Sync get adapter.
    but the sync get adapter is getting same file names in all the parallel flows.
    i can see it can successfully transfer one file, but fails with rest of those.
    is there any possibility, to pass file names dynamically to the sync get adapter..

    I want to conform you again, i want to use FLOW N instead of while..
    In whileloop the logic works fine, but when it comes to FLOW N , its failing
    as requested, code is fallows
    <assign name="Assign_InputDetails"
    xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/">
    <copy>
    <from expression="bpws:getVariableData('Invoke_FileListing_OutputVariable','filelist','/ns2:filelist/ns2:file[position()=$i]/ns2:filename')"/>
    <to variable="Filename"/>
    </copy>
    <copy>
    <from expression="bpws:getVariableData('Invoke_FileListing_OutputVariable','filelist','/ns2:filelist/ns2:file[position()=$i]/ns2:directory')"/>
    <to variable="InputDir"/>
    </copy>
    </assign>
    <invoke name="Invoke_GetInovice"
    inputVariable="Invoke_GetInovice_InputVariable"
    outputVariable="Invoke_GetInovice_OutputVariable"
    partnerLink="GetSourceFiles"
    portType="ns4:SynchRead_Inovice_ptt"
    operation="SynchRead_Inovice"
    bpelx:invokeAsDetail="no">
    <bpelx:inputProperty name="jca.ftp.FileName"
    variable="Filename"/>
    <bpelx:inputProperty name="jca.ftp.Directory"
    variable="InputDir"/>
    </invoke>
    where i in [position()=$i] is index variable declared in FLOW N

  • I have OSX 10.7 Lion I set up a separate email account for my wife.  Now when she tries to enter a website we get the following error message:  Java Script: Not Null validator already loaded.  The website never opens and it is difficult to get out of:

    I have OSX 10.7 Lion.  I set up a separate email account for my wife.  All of a sudden when she tries to enter and website from email we get the following error message.  JavaScript;  The notnull validator has already been loaded.  From there we can't seem to go any where.  When you hit OK it just keeps appearing and the only way to get out of it is to quit Safai.  If you try and got directly to Safari you get the same error message and can't go any further.  Please help.

    What you are experiencing is 100% related to Malware.
    Sometimes a problem with Firefox may be a result of malware installed on your computer, that you may not be aware of.
    You can try these free programs to scan for malware, which work with your existing antivirus software:
    * [http://www.microsoft.com/security/scanner/default.aspx Microsoft Safety Scanner]
    * [http://www.malwarebytes.org/products/malwarebytes_free/ MalwareBytes' Anti-Malware]
    * [http://support.kaspersky.com/faq/?qid=208283363 TDSSKiller - AntiRootkit Utility]
    * [http://www.surfright.nl/en/hitmanpro/ Hitman Pro]
    * [http://www.eset.com/us/online-scanner/ ESET Online Scanner]
    [http://windows.microsoft.com/MSE Microsoft Security Essentials] is a good permanent antivirus for Windows 7/Vista/XP if you don't already have one.
    Further information can be found in the [[Troubleshoot Firefox issues caused by malware]] article.
    Did this fix your problems? Please report back to us!

  • How to set adapter specific message attributes on Pi 7.1 inside a Java map.

    Hello,
    how can I set adapter specific message attributes in a Java mapping on PI 7.1.? The TransformationInput grants access to the DynamicConfiguration but the TransformationOutput doesn't. I have found threads refering to the old way of implementing Java mappings (e.g. Get dynamic filename in a Java Mapping (NOT UDF)). But there doesn't seem to be one refering to the actual PI.
    Kind regards,
    Heiko

    Using DynamicConfiguration from the TransformationInput works.

  • Map not recognized during runtime

    While running a test (during runtime), the map is not being recognized
    by the system. We have cleared SLD Cache in IR and ID, and using
    SXI_CACHE several times and during runtime we still get the following
    error about the map not being found. The error is as follows:
    Runtime error Unable to find resource a1ebddd0-0d05-11dd-a1d7-
    eecb0a0a3d7e in the following software component versions:
    urn:ariba.com:xi:Procurement:CreatePurchaseOrdercom/sap/xi/tf/_MM_TX_WSPurchaseOrderPush_RequestM~-1
    <Trace level="1" type="B">CL_MAPPING_XMS_PLSRV3-ENTER_PLSRV</Trace>
    <Trace level="2" type="T">......attachment XI_Context not found </Trace><Trace level="3" type="T">Mapping already defined in interface
    determination </Trace>
    <Trace level="3" type="T">Object ID of Interface Mapping
    15D05B740F5D39BCBACC32BCA4E1FCE7 </Trace>
    <Trace level="3" type="T">Version ID of Interface Mapping
    A1EBDDD00D0511DDA1D7EECB0A0A3D7E </Trace>
    <Trace level="1" type="T">Interface Mapping
    urn:ariba.com:xi:Procurement:CreatePurchaseOrder
    IFM_TX_WSPurchaseOrderPush_2_Z_ARIBA_KT_PO_CREATE </Trace>
    <Trace level="3" type="T">Mapping Steps 1 JAVA
    com/sap/xi/tf/_MM_TX_WSPurchaseOrderPush_RequestMessage_2_Z_ARIBA_KT_PO_CREATE_REQUEST_ </Trace>
    <Trace level="3" type="T">MTOM Attachments are Transferred to the
    Payload </Trace>
    <Trace level="3" type="T">Dynamic Configuration Is Empty </Trace>
    <Trace level="2" type="T">Mode 0 </Trace>
    <Trace level="3" type="T">Search
    com/sap/xi/tf/_MM_TX_WSPurchaseOrderPush_RequestMessage_2_Z_ARIBA_KT_PO_CREATE_REQUEST_.class
    (urn:ariba.com:xi:Procurement:CreatePurchaseOrder, -1) in swcv a1ebddd0-0d05-11dd-a1d7-eecb0a0a3d7e. </Trace>
    <Trace level="3" type="T">Search
    com/sap/xi/tf/_MM_TX_WSPurchaseOrderPush_RequestMessage_2_Z_ARIBA_KT_PO_CREATE_REQUEST_.class (-1) in swcv a1ebddd0-0d05-11dd-a1d7-eecb0a0a3d7e
    without namespace. </Trace>
    <Trace level="1" type="T">Unable to find resource
    com/sap/xi/tf/_MM_TX_WSPurchaseOrderPush_RequestMessage_2_Z_ARIBA_KT_PO_CREATE_REQUEST_.class in the following software component versions:
    a1ebddd0-0d05-11dd-a1d7-eecb0a0a3d7e
    Thrown:
    com.sap.aii.ib.core.mapping.execution.ResourceNotFoundException: Unable
    to find resource
    com/sap/xi/tf/_MM_TX_WSPurchaseOrderPush_RequestMessage_2_Z_ARIBA_KT_PO_CREATE_REQUEST_.class in the following software component versions:
    a1ebddd0-0d05-11dd-a1d7-eecb0a0a3d7e
    at com.sap.aii.ib.server.mapping.execution.JavaMapping.load
    (JavaMapping.java:148)
    at com.sap.aii.ib.server.mapping.execution.JavaMapping.executeStep
    (JavaMapping.java:67)
    at com.sap.aii.ib.server.mapping.execution.Mapping.execute
    (Mapping.java:60)
    at com.sap.aii.ib.server.mapping.execution.MappingHandler.map
    (MappingHandler.java:87)
    at com.sap.aii.ib.server.mapping.execution.MappingHandler.map
    (MappingHandler.java:71)
    at
    com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:119)
    at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleRequest
    (MappingRequestHandler.java:72)
    at com.sap.aii.ibrun.sbeans.mapping.MappingServiceImpl.processFunction
    (MappingServiceImpl.java:79)
    at sun.reflect.GeneratedMethodAccessor511.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke
    (DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at
    com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal(RequestInvocationContext.java:46)
    at
    com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:166)
    at
    com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatesTransition.invoke(Interceptors_StatesTransition.java:19)
    at
    com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
    at
    com.sap.engine.services.ejb3.runtime.impl.Interceptors_Resource.invoke
    (Interceptors_Resource.java:71)
    at
    com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
    at
    com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.doWorkWithAttribute(Interceptors_Transaction.java:38)
    at
    com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.invoke(Interceptors_Transaction.java:22)
    at
    com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
    at
    com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:189)
    at
    com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatelessInstanceGetter.invoke(Interceptors_StatelessInstanceGetter.java:16)
    at
    com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
    at
    com.sap.engine.services.ejb3.runtime.impl.Interceptors_SecurityCheck.invoke(Interceptors_SecurityCheck.java:21)
    at
    com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
    at
    com.sap.engine.services.ejb3.runtime.impl.Interceptors_ExceptionTracer.invoke(Interceptors_ExceptionTracer.java:16)
    at
    com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
    at
    com.sap.engine.services.ejb3.runtime.impl.DefaultInvocationChainsManager.startChain(DefaultInvocationChainsManager.java:133)
    at
    com.sap.engine.services.ejb3.runtime.impl.DefaultEJBProxyInvocationHandler.invoke(DefaultEJBProxyInvocationHandler.java:164)
    at $Proxy279.processFunction(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke
    (NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke
    (DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at
    com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:183)
    at
    com.sap.engine.services.rfcengine.RFCJCOServer$J2EEApplicationRunnable.run(RFCJCOServer.java:267)
    at com.sap.engine.core.thread.impl3.ActionObject.run
    (ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute
    (SingleThread.java:182)
    at com.sap.engine.core.thread.impl3.SingleThread.run
    (SingleThread.java:280)
    </Trace>
    <Trace level="1" type="E">CL_XMS_PLSRV_MAPPING~ENTER_PLSRV</Trace>

    In which system you are facing this problem?
    If it is Developement system then do the following steps and then try again.
    1. In your interface mapping remove the message mapping first and then activate the interface mapping.
    2. Do some dummy change in your message mapping or rename the message mapping by copying it and activate it.
    3. Now use this message mapping in your interface mapping and activate IM.
    If it doesn't work delete all objects and recreate them. (or may be rename them ).
    One more important thing... Check your Interface Determination and make sure the outbound & inbound message interfaces are exactly same as used in Interface Mapping.

  • LINKAGE ERROR in Java Mapping

    Hi Friends,
    I am getting LINKAGE ERROR when executing JAVA mapping as its not able to reference AbstractTransform class provided by SAP PI API.
    This problem occurs in particular environment for this particular mapping. For other environments this is working fine.
    I assume it has something to do with Java Library reference which is mis-configured during transport. Can anyone let me know how and where the library path is configured for Imported Achieves in SAP PI 7.1.
    We are using java 1.5 for building and creating java achieves.
    Many thanks,
    SK

    Hi Sumant,
      This error occurs when the jdk version of XI server and the library version you used to develop the mapping are incompatible. Make sure you use the same version as of the server
    have a look in SAP Note 755302
    Regds,
    Pinangshuk.

  • Java Mapping problem...

    Hi Guru’s,
    I am using the Java mapping in my XI system and it works fine in my Development.
    I just moved all my objects in to QA and I am getting some problem in my Java mapping.  It is not behaving like the dev the output format.
    Is their anything have to do for Java mapping while importing in to the QA system.
    I did the file transport and imported in to my QA.
    Please give me your comments and solution to resolve this issue.
    Thanks,
    Jane.

    Getting the below error in my response.
    - <ResponseMessage>
    - <Status>
      <StatusCode>500</StatusCode>
      <StatusText>Error while parsing the input</StatusText>
    - <Errors>
    - <Error type="Error">
      <ErrorMessage>Fatal Error: Internal server error - 1187224995259871</ErrorMessage>
      </Error>
      </Errors>
      </Status>
      </ResponseMessage>
    Thanks,
    Jane.

  • JAVA MApping errors

    Hello,
             I have got following errors in sxmb_moni :
    Error Details:
    Trace level="1" type="T">Java mapping com/capgemini/bc/mappings/order/ZORA_DPO_TRANSFER_2_XMLSQLCoreInsert has thrown a StreamTransformationException.</Trace>
      <Trace level="1" type="T">com.sap.aii.mapping.api.StreamTransformationException: execute(): ZORA_DPO_TRANSFER to MT_XMLSQL_PO_INSERT java mapping failed : buildDistribution(): getExpenditureType(): can not find expenditure type in NP1ST for pattern FR-85000000-4 at com.capgemini.bc.mappings.order.ZORA_DPO_TRANSFER_2_XMLSQLCoreInsert.execute(ZORA_DPO_TRANSFER_2_XMLSQLCoreInsert.java:461) at com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:64) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:92) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:90) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:95) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleRequest(MappingRequestHandler.java:68) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceImpl.processFunction(MappingServiceImpl.java:79) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceObjectImpl0_0.processFunction(MappingServiceObjectImpl0_0.java:131) at sun.reflect.GeneratedMethodAccessor554.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187) at $Proxy151.processFunction(Unknown Source) at sun.reflect.GeneratedMethodAccessor2875.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:107) at com.sap.engine.services.rfcengine.RFCJCOServer.handleRequestInternal(RFCJCOServer.java:113) at com.sap.engine.services.rfcengine.RFCJCOServer$ApplicationRunnable.run(RFCJCOServer.java:157) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172) Root Cause: com.sap.aii.mapping.lookup.LookupException: buildDistribution(): getExpenditureType(): can not find expenditure type in NP1ST for pattern FR-85000000-4 at com.capgemini.bc.mappings.order.ZORA_DPO_TRANSFER_2_XMLSQLCoreInsert.buildDistribution(ZORA_DPO_TRANSFER_2_XMLSQLCoreInsert.java:289) at com.capgemini.bc.mappings.order.ZORA_DPO_TRANSFER_2_XMLSQLCoreInsert.execute(ZORA_DPO_TRANSFER_2_XMLSQLCoreInsert.java:436) at com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:64) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:92) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:90) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:95) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleRequest(MappingRequestHandler.java:68) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceImpl.processFunction(MappingServiceImpl.java:79) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceObjectImpl0_0.processFunction(MappingServiceObjectImpl0_0.java:131) at sun.reflect.GeneratedMethodAccessor554.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187) at $Proxy151.processFunction(Unknown Source) at sun.reflect.GeneratedMethodAccessor2875.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:107) at com.sap.engine.services.rfcengine.RFCJCOServer.handleRequestInternal(RFCJCOServer.java:113) at com.sap.engine.services.rfcengine.RFCJCOServer$ApplicationRunnable.run(RFCJCOServer.java:157) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)</Trace>
    Please suggest How can I get overcome from the above mentioned error.
    Thanks in advance,
    Sandip Adhikary

    The error could be related to the structure used in java mapping not matching with the structures provided in interface mapping OR the data is not proper/ inadequate.
    Regards,
    Prateek

  • Getting the path  of the java file your code is in

    Hey,
    How can I get the full path of where my java file is on my computer in my java code?
    Something like this is what I want:
    this.getFilePath();
    Thanks! / Ellen

    I posted a utlity class to help you do this awhile back:
    http://forum.java.sun.com/thread.jsp?thread=425748&forum=31&message=1895876
    As far as the posters question of why you would want to do that, determining the correct location to read .properties files is a pretty decent reason. Another would be determining where a JAR file is located that needs to be updated with an auto-updater. And another is determining where to save data and/or log files. And another might be to do a checksum over various pieces of a JAR to make sure it hasn't been tampered with. And another....
    I think you get the point. Because Java does not have a command line entry point (i.e. the name of an executable that was used to start it's process), this is pretty much the equivalent.
    And for all of you that use relative pathnames (i.e. starting with ./), that is just waiting to bite you. You should NEVER make the assumption that the current path is where you think it is. Much safer to use the utility above so you know for sure where your class is installed.
    Cheers!
    - K

  • Managed system SOL~JAVA does not fulfill the Diagnostics prerequisites

    Hi Experts,
    I am getting error error while doing manged System configuration in Solman through solman_setup.In step 2 during prerequisite check I am getting error "Managed system SOL~JAVA does not fulfil the Diagnostics prerequisites" for java and abap too. In LMDB I checked the Host assigned to this technical system.Please refer screen shot for the entry. Please suggest where I am committing  mistake.
    Thanks
    Aditya

    Thanks Karthik & Kamil,
    During SLD preparation in System Preparation phase I had updated the CR/CIM of SLD but I committed a mistake that I applied the CR (From 8.x to 9.0) and then (From 9.x to 9.y) without doing it sequentially from (1.x to 2.0) then from (2.x to 3.0) and so on as per 669669. It didn't give any error.As of now it is showing CIM1.6.38 and CR 9.13. Is my current problem related to this?
                                                                                                                                                    Current error message is saying (The definition of Technical System 'SOL~ABAP' is not correct: 'SOL~ABAP': Technical System must be installed onat least one Host.) similarly for Java (The definition of
    Technical System 'SOL~JAVA' is not correct: 'SOL~JAVA': Technical System must be installed on at least one Host.).In LMDB I can see in technical system Abap and Java has host assigned to it.Plz suggest.
    Thanks
    Aditya Roushan

Maybe you are looking for

  • APEX 3.1.2 Interactive Report bug

    When you click on a column header of an Interactive Report, a dropdown menu appears which contains a text field that filters the list that is shown beneath it. When you TYPE some text into the field in Internet Explorer 7 and then select a value from

  • Document Tab page in Product Master(commpr01)?

    Hello CRM Gurus, I wolud like to know in which business context the Document Tab Page used in creation of Product Master. I see that i can attach any Document at my wish.of formats .doc,.xls,.pdf etc. But why is it given.? If i am creating an IP(Inte

  • What Message type and Process Code to use for Purchase Order Change in 4.6C

    I like to implement in SAP R/3 4.6C a scenario for Purchase Order Change, via inbound IDoc. I have been searching, but could not find what Message Type, Idoc Basic Type and Process Code to use. I can not imagine this functionality does not exist in 4

  • ITunes is Purple and Pink After Download

    After I downloaded the newest version of iTunes, everything appears normal, but the background colors where it used to be white. It's now purple and pink instead; it appears that everything that used to be white in iTunes is now purple and/or pink, a

  • Aperture locks up when Exporting Versions

    After upgrading from 2.1.2 to 2.1.3, whenever I export versions Aperture locks up until the export completes and I cannot do anything in the meantime. Sometimes this is accompanied by the SPOD and sometimes not. Also, the time taken to export varies