CAF Entity date mapping

Hi Experts,
I have created an entity service with remote persistensy(web service).I am mapping a data field from entity service to a date filed in external service(web service).In web service, date is declared as java.sql.date. i mapped to minimum value in entity service.But I am getting an exception.
Can you plz tell me what is the roblem?.
Thanks
Sampath.G

Hi Sampath,
please try to use timestamp in CAF. In this case you have all issues related to a date datatype. This works for me...
Hope this helps,
regards,
Rene

Similar Messages

  • Removing/updating data through CAF entity service

    Does anyone know a way to remove/update data through a CAF entity service from a web dynpro which uses the webdynpro model of the CAF project ?

    Hi Nicolaij,
    This example describes how UPDATE and DELETE works under SP8.
    Hopefully it helps.
    Regards
    Kamil
    UPDATE of entity called "Bank"
    =======================
    ABank recordBank;
    recordBank = BankServiceProxy.read(“000000024”);
    recordBank.setCountryId(„Germany“);
    IAspect aspectList = recordBank.getAspect();
    aspectList.sendChanges();
    DELETE from entity called "TransferID"
    ============================
    ATransferID recordTransferID;
    recordTransferID = TransferIDServiceProxy.read(„123115651“);
    IAspect aspectList = recordTransferID.getAspect();
    IAspectRow aspectRow = aspectList.getAspectRow(0);
    aspectList.removeAspectRow(aspectRow);
    aspectList.sendChanges();

  • How to sort web dynpro table wich data bind to CAF Entity Service

    Hi
    I created UI Table based on Model Node (CAF Entity).
    When I try to sort this Table with using TableSorter, I  get following in the trace log:
    The error is: com.sap.caf.rt.exception.CAFBaseRuntimeException: Aspect does not support changing rows via its list interface
    Have I met CAF limitation, or do I do something wrong?

    Hi Nikolai,
    if you use the implementation
    <code>
    IServiceFacade serviceFacade = CAFServiceFactory.getServiceFacade(ts2Definition.class);
    </code>
    it means you use the typed access.
    Possible in this sneak the
    <code>
         IServiceFacade serviceFacade = CAFServiceFactory.getServiceFacade();
    </code>
    does not work.
    Try the following way - it must work.
    <code>
         private IServiceFacade getServiceFacade()  {
              final String method = "getServiceFacade()";
              entering(method);
              if (m_serviceFacade==null) {
                   try {
              CoolConnectionProperties properties = new CoolConnectionProperties()
                   public String getCoolHost()
                        return "caf";
                         m_serviceFacade = CoolUtils.getServiceFacade(properties);
                   } catch (CoolConnectionPropertiesException e) {
                        wdComponentAPI.getMessageManager().reportException(e.getMessage(),false);
                        CAFUIPublicLogger.traceThrowable(Severity.ERROR, method, e) ;
                   } catch (CoolUtilsException e) {
                        wdComponentAPI.getMessageManager().reportException(e.getMessage(),false);
                        CAFUIPublicLogger.traceThrowable(Severity.ERROR, method, e) ;
              exiting(method) ;
              return  m_serviceFacade;
    </code>
    Also do not sort in query. Sort the model node after you aspect binded. Use the method
    node.sort(your_comparator) ;
    the comparator like this:
    <code>
         public class YourComparator implements Comparator
           public int compare(Object o1, Object o2)
              IWDNodeElement nodeElement1 = (IWDNodeElement) o1 ;
              IWDNodeElement nodeElement2 = (IWDNodeElement) o2 ;
              String name1 = nodeElement1.getAttributeAsText(_attrName) ;
              String name2 = nodeElement2.getAttributeAsText(_attrName) ;
              if (name1 == null)
                   return -1 ;     
              if (name2 == null)
                   return 1 ;     
              if (_direction == "up")
                   return name1.compareToIgnoreCase(name2) ; 
              else if (_direction == "down")
                   return -name1.compareToIgnoreCase(name2) ;
              return 0 ;
           public void initilize(String attrName, String direction)
              _attrName = attrName ;
              _direction = direction ;
           private String _attrName ;
           private String _direction ;
    </code>
    Best regards,
    Aliaksei.

  • How to design CAF Entity service?

    hello,
    here is my question.
    how to design CAF Entity service?
    i got employees data and departments data.
    an employee can join over one department, and of course, a department had many employee.
    in tradition RDBMS(relational database management system), i'll create three tables and named "Employee", "Department" and "DepEmp". the table "DepEmp" is a kind of table for N to N relaction.
    but when i use CAF's entity service, i can't do like RDBMS.
    i can create three entity services, named "Employee", "Department" and "DepEmp". i can make service refence(pull service from left side of windows), but the information about Key(in properties) cannot be "true".
    how can i do?
    is there a different normalization way i have to learn.

    thank you so much, it really help.
    but when the issue more complicated.
    a employee can join multiple departments, and he/she got different job title in each department. case will like fallow.
    Vic is a software engineer in XX company's IT department, and he is a MIS engineer in XX company's HR department.
    the db( i'm sorry for take this for example) structure will like..
    =======================================
    table:employee
    column:
    employeeCode PK
    name
    phone
    table:department
    column:
    departmentCode PK
    name
    location
    table:jobTitle
    column:
    titleCode PK
    name
    description
    table:deptEmployee
    column:
    employeeCode PK FK
    departmentCode PK FK
    titleCode PK FK
    =======================================
    my SAP NetWeaver Developer Studio is version 7.0
    1. how i make sure that three keys be mapped each other?(empCode,deptCode,titleCode)
    2. is there have any "IUD abnormality" risk?
    3. if there have, how can i avoid it?
    thank you again, i'm sorry for ask much, because the way to design CAF Entity Service is that i didn't learn before. it really make me confused.
    have a nice day

  • CAF entity coupled with application service activation problem

    Hi Experts,
    I have an existing CAF entity service to which i had added an additional attribute.
    I have the assosiated application application setdataservice,which has a custom method to add data to the entity service (mass upload).
    In the custom method i have added the code to set data for the addtional attribute.
    I had generated the project and build the dc locally,
    The buid is fine with no error's .
    But when I activate the request the activity fails with "cannot resolve symbol" for the new method even though the local build is sucessful.
    Any idea why this is occuring,
    ERROR: /NWDI/usr/sap/DIP/JC37/j2ee/cluster/server0/temp/CBS/c6/.B/28783/DCs/spe.com/portal/prc_core/ejbmodule/_comp/ejbModule/com/spe/portal/prc_core/appsrv/setdataservice/SetDataServiceBean.java:3434: cannot resolve symbol [javac] ERROR: symbol : method setFixPromvalue (double) [javac] ERROR: location: class com.spe.portal.prc_core.besrv.int_promocodes.Int_PromoCodes [javac] ERROR: promoCode.setFixPromvalue(fixPromValue); [javac] ERROR: ^ [javac] 1 error Error: /NWDI/usr/sap/DIP/JC37/j2ee/cluster/server0/temp/CBS/c6/.B/28783/DCs/spe.com/portal/prc_core/ejbmodule/_comp/gen/default/logs/build.xml:111: Compile failed; see the compiler error output for details. at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:938) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:341) at org.apache.tools.ant.Target.performTasks(Target.java:369) at org.apache.tools.ant.Project.executeTarget(Project.java:1214) at com.sap.tc.buildplugin.techdev.ant.util.AntRunner.run(AntRunner.java:112) at com.sap.tc.buildplugin.DefaultAntBuildAction.execute(DefaultAntBuildAction.java:61) at com.sap.tc.buildplugin.DefaultPlugin.handleBuildStepSequence(DefaultPlugin.java:213) at com.sap.tc.buildplugin.DefaultPlugin.performBuild(DefaultPlugin.java:190) at com.sap.tc.buildplugin.DefaultPluginV3Delegate$BuildRequestHandler.handle(DefaultPluginV3Delegate.java:66) at com.sap.tc.buildplugin.DefaultPluginV3Delegate.requestV3(DefaultPluginV3Delegate.java:48) 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:324) at com.sap.tc.buildtool.v2.impl.PluginHandler2.maybeInvoke(PluginHandler2.java:350) at com.sap.tc.buildtool.v2.impl.PluginHandler2.request(PluginHandler2.java:102) at com.sap.tc.buildtool.v2.impl.PluginHandler2.build(PluginHandler2.java:76) at com.sap.tc.buildtool.PluginHandler2Wrapper.execute(PluginHandler2Wrapper.java:58) at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:1723) at com.sap.tc.devconf.impl.DCProxy.make

    Hi again,
    I've deleted the two methods (or just commented them) I had and have readded them by choosing the Override Method option in the Source menu of JDeveloper 10.1.3. I've addet the methods prepareForActivation and prepareForPassivation too.
    When I execute the application, with breakpoints into the four methods (I attach the code below), I see that it prepares for pasivation and pasivates. When I do any action, I see it prepares for activation, but the method activateState is never reached.
    I have no other overriden methods in the class. Any idea of why the activateState doesn't execute?
    Thanks,
    Carles Biosca
    BBR Ingeniería de Servicios
       protected void activateState(Element element) {
           super.activateState(element);
       protected void passivateState(Document document, Element element) {
           super.passivateState(document, element);
       protected void prepareForActivation(Element element) {
           super.prepareForActivation(element);
       protected void prepareForPassivation(Document document, Element element) {
           super.prepareForPassivation(document, element);
       }Message was edited by:
    cbios

  • How to use a structure in CAF entity service

    Hi All
    I want to use a structure as datatype of a complex attribute in a CAF entity service. I tried to use a dictionary structure created in the dictionary part
    of the CAF project and added it to the public part of this DC.But I can't find it in the list of data structures while trying to mention datatype for a complex attribute in an entity service. Can any body suggest how to do it.
    Cheers
    Sudip

    Hello Sudip,
    You can create a complex structure by doing the following:
    1.  From the Attributes Tab, right click on your Entity and select "Create Attribute"
    -  Enter an attribute name and description
    -  select "Complex Attribute" checkbox
    -  select "Finish"
    2.  Right click on the newly created complex attribute and select "Create Sub Attribute".  Do this for each attribute in your structure.
    This complex structure can now be used in your CAF application and also CAF UI patterns.
    Creating complex attributes from the data dictionary is only usually used for creating enumeration types.  When doing this, you have to use the CAF enumeration editor to populate the values.  The "How to guide" that Jan refers to describes this.
    Regards,
    Austin.

  • Adaptor meta data &mapping templtes

    hi
    1. explain about adaptor meta data &mapping templtes what does use with them?
    2.what is exchange fault data and exchange log data under data types
    3.what are web as apart from 6.2 and 6.4?
    4.describe about sap xi 3.0 like SP's what are types
    5.about content
    pls give details mentioned above .
    thanks & regards

    >>1. explain about adaptor meta data &mapping templtes what does use with them?
    Adapter Metadata is the foundation configuration for the Adapters used in XI for message transfer. The functions provided allow either the creation of new Adapters or the modifications of existing ones.
    Just like you can reuse data types in different message types, you can also save parts of message mappings as Mapping Templates and reuse them elsewhere. Once you have saved a mapping template it serves as a copy template that you can then load into other message mappings and modify to fit your requirements.
    >>2.what is exchange fault data and exchange log data under data types
    Fault message types contain data types defining application errors. Application errors are errors that occur on the inbound side of a message transfer when the application could not process successfully.
    >>3.what are web as apart from 6.2 and 6.4?
    The Web Application Server is a platform for efficient development and allows you to implement Web applications. It builds upon proven and stable application server
    technology and Internet-based infrastructure from SAP.
    >>4.describe about sap xi 3.0 like SP's what are types
    check http://service.sap.com
    >>5.about content
    The contents of the Integration Repository are collectively known as XI Content (Process Integration Content); XI content is the integration knowledge that is required for describing collaborative processes (collaboration knowledge).
    For an overview of the XI Content currently provided by SAP, see SAP Service Marketplace at http://service.sap.com/solutions  -> SAP NetWeaver  ->  SAP NetWeaver in Detail  ->  Process Integration  ->  SAP Exchange Infrastructure  ->  SAP XI in Detail  -> XI Content Catalog.

  • Data mapping between sybase and xml

    I want to make a data mapping between sybase relational data result set and xml.
    I am using the function ForXmlTree for this purpose, I have the entire documentation about the synatx and usage of it, but i need to know what support does JAVA have for it.
    What files need to be installed .
    This is an example of using the function
    java jcs.xmlutil.ForXmlTree �i forxmltree-spec [-o output-script-file] \
    [-x output-document-file  -S server-name]
    does anyone know where can i find the jcs.xmlutil package. If so let me know.
    Thanks in advance
    Sandeep

    PRPS-PSPNR = AFVU-PROJN.
    also you can use this fm.
    BAPI_PROJECT_GETINFO

  • Data mapping

    Hi guys,
                what is data mapping? I don't think this is XI mappings.is this something related to EDI
    Thanks
    Sud

    Sud,
    It all depends on the context where u are using these terms. As per the XI Mappings there is nothing like data mapping.
    In my client place they will call the Transformation document as Data Mapping sheet. It's nothing but the data mapping between the source and the target structure. I mean how the source structure need's to be transformed to the target will be defined in the data mapping sheet.
    raj.

  • Inbound Idoc Data mapping sheet

    Hi experts,
    I need a data mapping sheet of Inbound Idoc that will help me for mapping the segments (header, Item) both for creating material, vendor, customer etc.
    That sheet will help for mapping tables and fields that are mandatory for that segments.
    Thanks & Regards.
    Ankur Garg.

    The process code you assigned to the inbound IDoc, has to be assigned to a function module which processes this IDoc, right? Now, if you use a function module of your own (CUSTOM FM!), you can do all the 'printing' you want.
    So there is no option for printing by default (standard), but you will have to do it your self.
    Another option would be to use a User exit. It seems there is a standard User exit (SIDOC001), or even a  BAdI which you can use. I haven't used it myself, so can't help you there.
    Edited by: Micky Oestreich on Mar 9, 2009 8:43 AM

  • Invoice IDOC data mapping

    plz help in mapping of these two fields in INVOIC02 IDOC
    BSCHL     Posting Key
    GJAHR     Fiscal year
    thanks ..
    plz send me if you have any info about data mapping and processing a idoc...
    pts ll be given to all helpful answers
    Message was edited by: sharadha sharma

    INVOIC02 is for billing document. If you are looking for accounting document then i think you should be looking at ACC_DOCUMENT02.

  • Data Mapping Document

    Hi,
    I am part of a Data Migration project involves source system (SAP). And target Systems (peopleSoft And JDEdwards). now we want to do Data Mapping for these Source And Target Systems. Any Body Provide me with some Data Mapping Documents How to map the Fields Between these systems. Thanks in advance.
    Thanks
    kiran.B

    Hi Kiran,
    We are also converting from Peoplesoft to SAP, for HR. Can you please share your mapping document, if any, to following email address.
    shettyvk(at the rate)gmail(dot)com
    Thanks...
    Vinay

  • Data Mapping Templates for NON-RTA Systems

    Hi all,
    I'm designing n extractor for my NON-SAP System.
    I've been reading the Appendix B: Data Mapping Templates for Non-RTA Systems from Configuration Guide - SAP GRC AC 5.3.
    I have a couple of questions regarding the size of two fields in table ACTION PERMISSION OBJECTS TEMPLATE
    Is correct the size that the documents says about fields:
    ACTION (document says it's 20 but in other tables is 50)
    PERMISSION (document says it's 10 but in other tables is 100
    ACTVT (document says it's 10but in other tables is 50)
    Thank you in advanced.

    Hi Luis,
    Yeah i will follow the recomendations but i'm updating some files to RAR and i've seen another kind of inconsistency such as in the table User File Template. Recomendation says that both FNAME field and LNAME field are 50 size each one but in my case i can update a FNAME 51 size and a LNAME 49, i mean between FNAME and LNAME it's 100 size.
    Cheers.

  • Data mapping from xRPM 4.0 to BI 7.0

    Hi,
    Is there a place where I can get the data mapping rules from xRPM 4.0 to BI 7.0.
    help.sap.com doesn't seem to have the data mapping rules.
    I checked the BI content for xRPM 3.30 which has some rules.
    Any help or suggestions will be appreciated.
    Thanks,
    Vish

    Hi
    As per my understand if u want to assign data source to any target(Mapping each field to each info object).
    1.Some times when u create a tranformation u will not find a single rule.In this case u have to map manually
    sol : 1. SE11  2.Give the table name : RSTRFIELDSH
    3.Go to contents
    4. In the transfer structure : give u r data source and excute it
    4.U can able to see which fild is related which info object.
    Thanks & Regards
    Ramkanth

  • Data mapping to SAP B1 using SDK

    is there any way around to do the data mapping from other system database to SAP B1
    database without using field to field mapping?
    ex: we want to migrate from other system to B1 we need to transfer their old data to a new one..and of course the database structure is not the same..and it would be a lot of task if we migrate their old PO to B1 (i'm thinking using field to field mapping so we must know the data structure from the old system and provide the information needed when we want migrate it to B1)
    is there any thoughts?
    hope u understand what i mean
    PS: all the migrate things is using SDK
    thanks,
    erick

    Hi Erick,
    I think, using DI API should be better.
    I know that, all data in the database is not supported.
    But, most simple idea is,
    1. Get objects from old company database
    2. review the data by SDK (validating and user field mapping)
    3. add modified objects to new company database
    This should be most same, and you can process many process automatically in process 2.
    Hope this helpful for you.
    Hyunil Choi.

Maybe you are looking for

  • Component Initialisation in web dynpro java

    Hi all, Iam new to web dynpro java.I am using two web dynpro component suppose A and B . Iam declaring the usage of B in A so that i can embedd one of the view in Component B.  I want to use the context in Component B in Component A . which component

  • Out of sync audio six channels

    Dear All, I have not had a problem with this before, but suddenly I have out-of-sync audio when mixing six channels in FCP. Using my Canon XL1-S, I recorded 4 channels of audio in 12 bit mode, 32 khz. I then added another two channels of audio from a

  • Adding Dot Net 4 msu to Win 7 deployment

    Immediately after win 7 deploys, I have an application I wrote in dot net that needs to run (it will handle installing all the required software for that machine).  It requires .Net 4 So I downloaded dotNetFx40_Full_x86_x64.exe and expanded the files

  • Error code:"4MOT/2/40000004: ODD" means what?

    I do the hardware test on my two iMac 24". Both show error code "4MOT/2/40000004: ODD". Does anybody know what it means?

  • WS32 - proper location for log4j.properties?

    Greetings, I am running WS3.2 and I have a log4j.properties file located in /resources/* within the IDE. As long as I manually copy the file into the "java/classes" directory the file is picked up at runtime. Ideally, Workshop should be automagically