Problem in data source mapping - CAF entity service.

Hi,
I created an external service for the bapi given below.
It has 2 tables as input parameters.
In entity service I created attributes(for input parameters) for table1 and table2. but in data source i couldn't map more than one attribute to the MATNRSELECTION and PLANTSELECTION.The attributes of the bapi are under the same collection.
I'm using NWDS version 7.0.06.
BAPI_MATERIAL_GETLIST (To List all Materials for a Particular Plant)
Input Parameters:
Table1: MATNRSELECTION
MATNRSELECTION-SIGN
MATNRSELECTION-OPTION
MATNRSELECTION-MATNR_LOW
Table 2: PLANTSELECTION
PLANTSELECTION-SIGN
PLANTSELECTION-OPTION
PLANTSELECTION-PLANT_LOW
Regards,
Shobhendra

in your entity if you did create 2 attributes for one material number and one for plant, you can map them to the corresponding MATNRSELECTION-MATNR_LOW and PLANTSELECTION-PLANT_LOW.
For the sign and option, you should uncheck the IsNull parameter in the "Entity to External Operation parameters" mapping window of the Datasource Tab of your entity. And you should set default values like sign = I and option = EQ or something like that.
But if you want to pass a list of material numbers or plants, I do have a recollection from last year experiments of some limitation using collections as input parameters. maybe somebody else had better success with that

Similar Messages

  • 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.

  • 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 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

  • 'Select a measure:' stuck on 'Loading...' in Dashboard Designer KPI Dimensional Data Source Mapping

    [using SharePoint 2013 Enterprise SP1]
    I am trying to create a KPI in Dashboard Designer, but am getting a timeout. I have been doing this for a while on my site; this is not the first. I haven't had this problem before.
    I created a new KPI and clicked on the Data Mappings column value, which is a hyperlink, to bring up the Dimensional Data Source Mapping dialog. I switched to a Data Connection in the site I just created (DC works perfectly and can retrieve sample data).
    When I click the "Select a measure:" drop-down menu, I get the message "Loading..." and after a while (a minute? two?) a dialog pops up with:
    The request took too long to complete. SharePoint is currently unavailable or experiencing heavy traffic. Try again later.
    This is a test SP server and I'm the only one on it, so there is no load. Also as mentioned, I am able to verify the Data Connection without problem. I am not having any issue with any of my other few dozen KPIs/Data Connections. Any suggestions as to how
    to troubleshoot?

    Hi cgtyoder,
    According to your description, my understanding is that you got an error when you created a KPI in Dashboard Designer.
    Please try to recycle the PerformancePoint Services Application Pool account, compare the result.
    Please go to C:\inetpub\wwwroot\wss\VirtualDirectories\the port of web application, adjust the HttpRuntime executionTimeout for the Web Application by modifying the web.config, now PerformancePoint report stability is much better:
    <httpRuntime executionTimeout="600" maxRequestLength="51200" />
    Note: before you change the web.config file, please make a bakcup for the file.
    If this issue still exists, please go to the log file to find more information about this issue.
    I hope this helps.
    Thanks,
    Wendy
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Wendy Li
    TechNet Community Support

  • 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.

  • Problem when creating CAF Entity Service finder Methods

    Guys,
    Can any one please suggest me appropriatly to the below problem.
    I am using NWDS 7.06. I have no problem when creating CAF project, Application Service and Entity Service even.
    But in the Entity Service:
    1. Add a string or longtext attribute.
    2. try to create a custom finder method in operations tab, during that operation i am  not finding the attribute which i have created in step1.
    That means i am not able to create the my own finder methods with parameters.
    I was able to do that in some version long ago but i have forgotten that NWDS version.
    summary of Problem Is: " Cannot create custom methods with custom parameters in Entity Service"
    Can you please suggest me the right version or a solution to this problem on urgent basis please.
    I promise you that i will give you full points to you who ever gives me the right solution.
    Please mail your suggestions to [email protected]

    Guys,
    I have solved the problem successfully. Thanks for your attention.

  • Problem while creating Complex Attirbutes of Entity Service in CAF Applicat

    I am Creating one CAF Application.
    while creating Entity Service i have Used one Complex Attribute. but in Application Services Implementation part when am assigning value to this Complex Attribute.it gives error that no method exist.
    Kindly provide some information on how to use Complex Attributes while creating Entity Service.
    Can i use NWDS2.0.11 for CAF Application?

    Guys,
    I have solved the problem successfully. Thanks for your attention.

  • Problem in activating the data source using a web service

    Hi all,
    I have created a web service with Logical and Source System names and i have selected nothing in the Type and Release.
    Activated the created web service.
    Later i tried creating a data source based on this web service source system and tried activating the data sources.
    But it is throwing an error saying that error generating the Web Service /BIC/CQWEB_SER_000020000 and error while activating the data source.
    Can any one say why is this happening and is there any pre requisites to be done while creating the web service?
    what is the use of Type and Release while creating the webservice?
    Thanks,
    Pra.

    Hi
    Please consider reference tables also while creating view, otherwise it won't accept when there are amount and currency fields.
    Please have a look at the below url
    https://www.sdn.sap.com/irj/sdn/advancedsearch?query=genericdatasourceusingview&cat=sdn_all
    thanks,
    Teja

  • Error when Building DC Project for CAF Entity Service

    Hi All,
    I got the following error message when Im building my CAF DC Project for Entity Services:
    01.02.2008 12:09:10 /userOut/Development Component (com.sap.ide.eclipse.component.provider.listener.DevConfListener) [Thread[ModalContext,5,main]] ERROR: ewrdata/metadata: Failed to read component definition from local file MyComponents:com.cas.elisa.gp/ewrdata/metadata : Cannot read component definition. File does not exist: C:\Documents and Settings\tfelp4\.dtc\LocalDevelopment\DCs\com.cas.elisa.gp\ewrdata\metadata\_comp\.dcdef (Cannot read component definition. File does not exist: C:\Documents and Settings\tfelp4\.dtc\LocalDevelopment\DCs\com.cas.elisa.gp\ewrdata\metadata\_comp\.dcdef)
    But  ".dcdef" file exists, its an XML file.
    My NWDS environment is 7.0.13.
    I used the tutorial exactly how it was written in the tutorial from SAP:
    http://help.sap.com/saphelp_nw04s/helpdata/en/05/3a0741b5b7ee6fe10000000a1550b0/frameset.htm
    What could be the problem?
    Thanks for helping me...
    Steve

    Hi Chandan,
    Can you do person.getRelatedModelObjects() and get the contact object, to check whether it is null, also check in the CAF DB whether the data you entered is present.
      I am not sure the code is actually adding the contact model object to person.
    Go thru this SDN Blog on usage of the CMI API's, there is a link for CMI documentation in it which might help you get the right code for adding the contact object.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/cef4f43e-0d01-0010-db84-ede25c874115.
    award points if  info is helpful
    Regards,
    Anish

  • Table Name Issue of CAF Entity Service

    Hi All
    I have a problem in the following scenario :--
    I have created a CAF project named xflit_01 in local development. Another CAF project xflit_02 is created in local development of another machine's NWDS but both the project has a same entity service name,'Flight'. But one interesting observation from persistency tab of the entity service'Flight' is that for tables generated for both the entity services are same name, 'XAP_XFL_FLIGHT0001' where "XAP_XFL_" is namespace and "FLIGHT0001" is names. Both entity services are mapped with same external service.
    Next I have deployed that two projects such as xflit_01 and xflit_02 in same central WAS from different machine's NWDS one by one. but how two tables with same name, 'XAP_XFL_FLIGHT0001' would be handle by WAS? But after the deployment we need to configure external service. So in External Service configuration window we are getting error when the link Service Registry is clicked.    
    Any idea will highly be appreciated.
    Thanks
    Chandan

    Solved by myself. Reason is for same db and CAF table naming convention

  • CAF DB Update for CAF Entity Service from Web Dynpro

    Hi all,
    I have created an entity service in CAF called “Contacts’ which contains the following attributes.
    phoneNo
    cellNo
    emailID.
    Another entity service called "Person" is created. This contains the following attributes.
    personId
    personName
    personAddr
    contactsRef. (Cardinality -> 0..n , Relational Type -> Composition)
    That means Contacts entity service is used within Person entity service. Now it is working fine within CAF service browser. Now the Web Dynpro DC of CAF application is used within another custom Web Dynpro DC project. I want to store data from Web Dynpro.
    Within the context of component controller of  Web Dynpro the structure is like
    APerson
         |_ personId
         |_ personName
         |_ personAddr
         |_ contactsRef       
                    |_ phoneNo (Under contactsRef)
                    |_ cellNo (Under contactsRef)
                    |_ emailID (Under contactsRef)
    So I have written the following code within web dynpro custom method.
    APerson person = PersonServiceProxy.create();
    java.util.List ls = new ArrayList();
    for(int i=0; i<4;i++)
    AContacts contact = ContactsServiceProxy.create();
    contact.setCellNo("9092130156");
    contact.setEmailID("[email protected]");
    contact.setPhoneNo("432258");
    contact.getAspect().sendChanges();
    ls.add(contact);
    person.setRelatedModelObjects("contactsRef",ls);
    person.setPersonID("9999");
    person.setPersonName("xyz");
    person.setPersonAddr("ABC, KOL");
    wdContext.nodeAPerson().bind(person);
    person.getAspect().sendChanges();
    CAFServiceFactory.getServiceFacade(idendityDefinition.class);
    After saving the data from Web Dynpro I am trying to test it from CAF service browser. But I am getting only the parent row. I mean only the value of personId, personName and personAddr fields which I have stored from Web Dynpro. But no value is coming within the table for Contacts entity service for composition relation.
    Could anybody help me how can I solve my problem?
    Thanks & Regards
    Chandan
    Message was edited by:
            Chandan Jash

    Hi Chandan,
    Can you do person.getRelatedModelObjects() and get the contact object, to check whether it is null, also check in the CAF DB whether the data you entered is present.
      I am not sure the code is actually adding the contact model object to person.
    Go thru this SDN Blog on usage of the CMI API's, there is a link for CMI documentation in it which might help you get the right code for adding the contact object.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/cef4f43e-0d01-0010-db84-ede25c874115.
    award points if  info is helpful
    Regards,
    Anish

  • Refreshing the Data Source View in Analysis Services

    I have added columns to the SQL Database table that is used as a dimension in an Analysis Services Cube.  The new columns will be used as additional Property Fields for the dimension.  When I attempted to refresh the Data Source view so that the additional columns are present, I am given the following error:
    System.Data
    Property not accessible because 'Parent Columns and Child Columns don't have type-matching columns'
    I have done nothing to the columns used for the parent of child and the error message provides nothing to gon on. Does anyone have any ideas on this?
    Gary

    Olga,
    Thanks for your response.  I will try and answer your questions
    1) I have not tried removing the columns yet.  I will try that this afternoon but have limited hope.  The two columns I added are simple text columns that will be used as attributes in the dimension.  I have made no change to the parent or child columns.
    2) The table I modified is the source table for a parent-child dimension.
    3) The reference to the "check list" does not take me to any kind of check list.
    4) The parent-child dimensions I am trying to modify have been in use for months and the parent and child columns do have the dame data types.
    5) I have also check the data types between the dimension table and the fact table.  they use the same data types (small int).
    6) I have not made a collection for the parent key, it is a single column. The remainder of your last paragraph is not clear to me. Can you give me an example.
    I am fairly inexperienced with Analysis Services, please talk slow and use small words  :-)
    Thanks again for your help!
    Gary

  • Error while building the DC for CAF entity services

    Hi all,
    I am trying to create entity services in CAS and following the following help document from help.
    http://help.sap.com/saphelp_nw04s/helpdata/en/05/3a0741b5b7ee6fe10000000a1550b0/frameset.htm
    But While building  I am getting following imports errors:
    Error:
    com.sap.caf.rt.bol.IPersistentBusinessObject cannot be resolved or is not a valid superinterface     
    com.sap.caf.rt.services.eventing cannot be resolved (or is not a valid type) for the field CarJDO
    com.sap.caf.rt.bol.da.jdo.JDODADataAccessService cannot be resolved or is not a type
    changedData cannot be resolved     ,CarJDO.java
    com.sap.caf.rt.bol.da.DataAccessFactory.DATASOURCE_LOCAL_DA cannot be resolved     CarJDO.java     
    The method removeACL(String, String) is undefined for the type CAFPermission     CarServiceBean.java     
    loadByCustomKeys(Car) is undefined for the type IDataAccessService     CarServiceBean.java     
    Can anyone help.

    Hi all,
    I am trying to create entity services in CAS and following the following help document from help.
    http://help.sap.com/saphelp_nw04s/helpdata/en/05/3a0741b5b7ee6fe10000000a1550b0/frameset.htm
    But While building  I am getting following imports errors:
    Error:
    com.sap.caf.rt.bol.IPersistentBusinessObject cannot be resolved or is not a valid superinterface     
    com.sap.caf.rt.services.eventing cannot be resolved (or is not a valid type) for the field CarJDO
    com.sap.caf.rt.bol.da.jdo.JDODADataAccessService cannot be resolved or is not a type
    changedData cannot be resolved     ,CarJDO.java
    com.sap.caf.rt.bol.da.DataAccessFactory.DATASOURCE_LOCAL_DA cannot be resolved     CarJDO.java     
    The method removeACL(String, String) is undefined for the type CAFPermission     CarServiceBean.java     
    loadByCustomKeys(Car) is undefined for the type IDataAccessService     CarServiceBean.java     
    Can anyone help.

  • SharePoint 2013 - SQL Server 2012 PPIV - using a PPIV workbook as a data source - getting PPIV web service error

    I created a PowerPivot (SQL Server 2012 SP1) workbook and uploaded it to SharePoint 2010 Portal and started using it as a data source in an excel file. This worked fine and we saw no issues with it until we moved to SharePoint 2013 environment.
    I uploaded the same PowerPivot workbook (source workbook) to SharePoint 2013 Portal and now trying to use it as a data source. I tried to change connection properties so that I could use the new portal address for the workbook. When
    I try to save my changes, I see that OLAP queries are getting fired "Refreshing OLAP cube" shows up in the status bar, but eventually after running these OLAP queries (I would say after a minute), I get the following error -
    Couldn't find anything specific in SharePoint logs or maybe I wasn't looking for the right thing.
    Has anyone seen this issue? Why would PPIV service throw an error after running for a while? Is it a timeout issue of some kind? How can we take care of this?
    Thanks,
    Sonal

    ULS log showed the following exception: The maximum number of allowed sessions per user has been exceeded.
    Under Excel Services global settings, max limit is set. Default is 25, increasing it resolved this issue.
    Thanks,
    Sonal

Maybe you are looking for

  • How to listen with tv off

    II've got the tv using hdmi And the audio out going to my audio deck.  Before the last update I was able to play a show and turn off the TV set so that I could just listen to the show. Now if I turn off the TV the program stops.  What gives?  Apple a

  • Can I use Apple TV on a LG ru-60PZ61 HDTV it dose not have HDMI plug

    Can I use Apple TV with a LG RU-60PZ61 TV it dose not have a HDMI plug

  • Exeception caused by Call Library Node

    I'm getting a serious error  with LV DSC 7.1. I was making some changes to the scf file but when I went to save it I got the following error. An exception occurred within the external code called by a Call Library Node. This may have corrupted LabVIE

  • Confused! LaCie FireWire 800 PC Card

    Greetings! I purchased an Iomega 250 GB external hard drive. Because my notebook doesn't have an 800 Mbps port I also purchased a LaCie FireWire 800 PC card. I was aleady to hook all of this up today, when I discovered that the LaCie card has 2 FireW

  • Working with a user defined list

    I should point out before I start, we have only really just got SharePoint and are trying to mirror things we used to do in Excel.  I really dont have any technical coding experience.  So if possible can we stick to OOTB functionality, but if that is