No key field found for creation of DataSource - Classification Datasource

Hello,
While trying to create a clasiffication datasource based on 0PLANT_ATTR, when i assign a characteristic and push the DataSource button, i get the following message:
No key field found for creation of DataSource
Diagnosis
During generation of a classification or configuration DataSource, only those key fields for the object table (field "Obj.Tabelle") that are already present in the basis DataSource transferred to the extract structure.  This is the case when none of the key fields of the object table were found in the structure of the basis DataSource.
System response
A DataSource cannot be created without key fields. The action was cancelled.
Procedure
Check whether you have selected the correct basis DataSource and object table. For more information, please see SAP Note 569849.
Do you know what can be the problem?
Thank you and regards

Hi Alberto,
plants are a special case. The key which is used for the classification 
of plants (object type BETR) is not the same as the key which is used in
datasource 0PLANT_ATTR.
BETR has key LOCNR (Site). That's a customer related to a plant. The    
customer number will be extracted in field LOCNR.
0PLANT_ATTR extracts the plant in its key field WERKS.
Transaction CTBW and the generic extraction program for classifications 
don't know the relationship between LOCNR and WERKS. So they cannot map     
them.
I do recommend a solution which would add the mapping between
LOCNR and WERKS:
1. Create please the classification datasource as intended, but use     
datasource 0RT_LOC_MGR_ATTR as basis datasource. It's the only          
datasource of the content where LOCNR is a key field. So                
0RT_LOC_MGR_ATTR is used as a dummy here, to allow transaction CTBW to  
create the classification datasource. It's not necessary to extract     
data with datasource 0RT_LOC_MGR_ATTR.
2. Extend please the extract structure of the created classification    
datasource. Add please field WERKS using component type WERKS_D. Make   
this field visible.
3. Fill field WERKS in the extractor user exit EXIT_SAPLRSAP_002. WERKS 
can be read from table KNA1 by using the customer number extracted to   
LOCNR to select on field KNA1-KUNNR.
4. Transaction CTBW_META on the BW system isn't able to append the      
characteristics from the classification datasource to infosource        
0PLANT, because the keys are different. So create please a new info     
source with CTBW_META. This allows CTBW_META to create the info objects 
for the characteristics used in the classification datasource.
5. Add please the characteristics used in the classification datasource 
to infosource 0PLANT manually. You will find the info object names of   
the characteristics by looking up the characteristic datasources which  
are assigned to the classification datasource in transaction CTBW. From 
these names you can derive the info object names:                       
1CL_A... -> C_A...
6. Disconnect the infosource which has been created with CTBW_META from 
the classification datasource.
7. Connect please the classification datasource to infosource 0PLANT    
Use following info object:
info object   field
0PLANT       WERKS
The info object names for the characteristics are explained in step 5.
8. Add an infopackage to infosource 0PLANT for the classification       
datasource.
Now the extraction of classifications of sites should work.
Best regards,
Rolf
P.S. I saw the system messed it up and doesn't display any new and empty lines. Sorry, I hope you still can read it.
Edited by: Rolf Doersam on Mar 26, 2010 6:56 PM

Similar Messages

  • SFTP Issue in OSB invocation resulted in an error: com.maverick.ssh.SshException: ssh-dss Key Not Found for host hostname,ip

    I created a Proxy Service to do pull file and push it to sftp server
    known_hosts file is present on OSB server.
    It has abcserverhostname,IP ssh-rsa AA................. ==
    I created a business service to do SFTP push to sftp server (remote) - Its not working.
    <Error> <SFTPTransport> <BEA-381826> <Key Not Found for host hostname,10.124....>
    com.maverick.ssh.SshException: ssh-dss Key Not Found for host hostname,10.124.....
      at com.bea.wli.sb.transports.sftp.client.KnownHostVerifier.onUnknownHost(KnownHostVerifier.java:37)
    My Business Service
    End Point URI : sftp://sftpserverhostname:22/directorypath
    Authetication Mode : user name, password.I have created a Service Account for sftpserver and imported in Business Service.
    Do I need to give anything else in known_hosts file ?
    and hostname can be any random name?
    <Dec 11, 2013 1:45:37 PM GMT+08:00> <Error> <SFTPTransport> <BEA-381801> <Error occured for endpoint com.bea.wli.sb.transports.TransportException: com.maverick.ssh.SshException: ssh-dss Key Not Found for host hostname,10.124....
    com.bea.wli.sb.transports.TransportException: com.maverick.ssh.SshException: ssh-dss Key Not Found for host
      at com.bea.wli.sb.transports.sftp.connector.SFTPTransportProvider.sendMessage(SFTPTransportProvider.java:161)
      at com.bea.wli.sb.transports.sftp.connector.SFTPTransportProvider.sendMessageAsync(SFTPTransportProvider.java:111)
      at sun.reflect.GeneratedMethodAccessor566.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      Truncated. see log file for complete stacktrace
    Caused By: com.maverick.ssh.SshException: ssh-dss Key Not Found for host eirnode2,10.124.10.16
      at com.bea.wli.sb.transports.sftp.client.KnownHostVerifier.onUnknownHost(KnownHostVerifier.java:37)
      at com.sshtools.publickey.AbstractKnownHostsKeyVerification.A(Unknown Source)
      at com.sshtools.publickey.AbstractKnownHostsKeyVerification.verifyHost(Unknown Source)
      at com.maverick.ssh2.TransportProtocol.C(Unknown Source)
      at com.maverick.ssh2.TransportProtocol.processMessage(Unknown Source)
      Truncated. see log file for complete stacktrace

    BEA-381826 suggest that there is any issue with your public key in known_host file, can you cross verify it again. Also can you check if known_host file has appropriate permissions and I am assuming it is in /OSB_DOMAIN/osb/transports/sftp folder.
    Hostname,IP algorithm publickey are the hostname, ip, and public key of SFTP server.
    As per troubleshooting guidelines
    The Key not found for IP, host error message indicates that the known_hosts file does not contain an entry that corresponds to the specified IP-host combination. If the entry exists, then try with another algorithm key; for example, if the earlier attempt was with an RSA key, try again with a DSA key.
    Cheers,
    Sahil

  • Key Field Value for File Adapter Sender Wildcard

    Hello everybody, is there a way to use a wildcard for the property of NamA.keyFieldValue in the cc for a Fils Sender????, here's an example why, I need to take some Files via PI 7.0 and my key filed can change according to the file an example is that in a file can be HF28 and in another file can be HF29, the only character that is going to be constant is the H, I would really appreciate any suggestions, thanks in advance.
    Regards,
    Julio Cesar

    Hi Julio
    File sender adapter will read the file using FCC
    Key Field Value entry is mandatory if the key field name is set. Otherwise, the entry can be ignored
    http://help.sap.com/saphelp_nw70/helpdata/EN/34/393071e9b998438ddb8ce97cd617a1/frameset.htm
    Content Conversion ( The Key Field Problem )
    Thanks
    Gaurav Bhargava

  • How many primary key fields  allowed for one table?

    hi,
    when i creating a table , how many primary key fields are allowed for one table.
    please any one give ans
    thanks

    Just checked it,  Its 255, not 155.  You can have as many key fields as you want, but you can not go over the 255 byte length for the total of all key fields.  You will get a warning for over 120, as it says that there is limited functionality with a key over 120 in length.
    Again, this is a total length of all key fields.
    Regards,
    Rich Heilman

  • Key field values for file content conversion at sender communicationchannel

    Hi all,
    I am working on  scenario File to Idoc.In this scenario at the sender side we configure the file content conversion for .CSV file.
    In the flat file i am having more than one orders, XI will pick the file and creates a separate Idoc for each sales order at r/3.
    We have similar fields "Order Item Number" both header and item.
    If we got '00000' on the Header item then it should create a new idoc at the r/3 side other wise it will create line item.
    Order item number will be 00000 for header but it will differ from order item to item.
    source structure
    Order Header
    Order type
    Sold-to-code
    PO number
    Order item number
    Order date
    AdresName1
    AdresName2
    Street and House number
    Postal Code
    City
    Country Code
    Filler
    Order Item
    Order type
    Sold-to-code
    PO  number
    Order item number
    Order date
    Product code
    Order quantity
    Item text
    Filler
    Now I have some questions....
    I don't have standard filed values to give the key fileds at source structure.
    I need to create the Idoc at r/3 system for each individual record.
    Is it possible to create new idoc with out using the Key filed value?
    If it is possible then how can i proceed with fcc?
    please give me your valuable suggestions
    Best Regards,
    satya
    Edited by: satyatanuku on Mar 3, 2010 1:41 PM
    Edited by: satyatanuku on Mar 3, 2010 1:42 PM
    Edited by: satyatanuku on Mar 3, 2010 1:44 PM

    Hi,
    Just check the Content Conversion Parameters-  Recordset Structure.
    If you have filled in this parameter with
    Header,1,Item,1
    then change it to
    Header,1,Item,3
    Regards
    Chandra

  • How to include key field in classification datasource?

    Hello,
    How can I include key fields in a new classification datasource?
    When i try to generate my classification datasource i get this error:
    No key field found for creation of DataSource
    Diagnosis
    During generation of a classification or configuration DataSource, only those key fields for the object table (field "Obj.Tabelle") that are already present in the basis DataSource transferred to the extract structure. This is the case when none of the key fields of the object table were found in the structure of the basis DataSource.
    Hence the datasource does not get generated.
    Thank you very much and regards.

    Hello Prem,
    Yes, the characteristisc are in the system. I also saved these charateristics, they are in N status at the moment.
    The problem is when i click on Datasouce buttom to generate the datasource, this is when I get the error message i mention above.
    I tried to do an example with 0MATERIAL_ATTR with obj. table MARA and class cat 001 and i had no problem.
    Then i try to do it with 0PLANT_ATTR obj table BETR and class cat 030 and i get this key problem.
    Can this be related to the fact that MARA table has got a key and BETR does not have one?
    Thank you and Regards.

  • How to set a key field in a local provider for BW workspace

    Hi Experts,
    I've created a local provider through BOBJ analysis for excel / Workspace designer in a BW workspace. However, all the dimensions by default are not having the key field enabled and I'm not able to enable the key field through BW workspace. Also I see the Fact Index Without Key is enabled by default in technical settings, which is not allowing me to select "Fact Index with Key" either. When I go to edit mode, it says "Analytic Index XXX can only be changed in workspace designer". I even tried to go into workspace designer and by selecting the necessary local provider, I coudn't find an option under Local Provider->Reload Provider->Reload (With Changes)->Choose File->Edit Columns to enable the key field(s) for the dimensions.
    Can you please help to locate how to enable the key field for dimensions in local provider.
    Thank you in advance.
    Regards,
    Karthik

    There's nothing to solve. If Reader (XI only) is used only PDF files can be selected. This is how it's supposed to work (although I agree it's silly and should be changed).

  • Diferent key field names within a recordset

    Hi
    Can we have different key field names for records within a recordset.
    When i give different key field names for Header and detail records in a recordset i get the error below: -
    message not processed: com.sap.aii.messaging.adapter.trans.TransformException: Transformer Conversion3.0.5227 Error initializing Class: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found (4408) Parameter 'xml.keyFieldName' is missing (4403) ; nested exception caused by: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found (4408) Parameter 'xml.keyFieldName' is missing (4403)
    Thanks

    Hello Pratihchi,
                   One keyfield name is allowed, eventhough we have different records per recordset. Because we can differentiate the rows based on the keyfieldvalue and those value we need to mention in the fieldname. Check below link which contains the example on this.
    https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/5393- [original link is broken] [original link is broken]> [original link is broken] File Adapter->Sender File Adapter for Content Conversion
    Regards.
    Prasanna.

  • Changing Non key field to Key field in a custom table

    Hello Abap gurus:
    I have a requirement in which i need to change a non key field in my custom table(Z TABLE) to key field.
    For example; i have field sequence as
    field 1  key field
    field 2 key field
    field 3 key field
    field 4 non-key field
    field 5 non-key field
    field 6 non-key field
    field 7 non-key field.
    i want to change field 7 as key field.
    Can i do perform operation??
    when i am tryingto perform bove operation it is taking long time to get the table activated.
    Could any one please help me in getting this resolved.
    regards,
    Sravanthi.

    Use DB Utility (se14) to perform alter table or conversion. The latter is used when atemps to perform first operation fails. Which one is used, really depends on system and current DB table state (i.e. if has any content and what is being adjusted).
    The way Max suggested is similar to [conversion process|http://help.sap.com/saphelp_nw04/helpdata/EN/cf/21f1b8446011d189700000e8322d00/content.htm] which system takes care of itself.
    Refer [Adjusting Database Structures|http://help.sap.com/saphelp_nw04/helpdata/EN/cf/21f1ab446011d189700000e8322d00/content.htm] and already given link to conversion.
    Please also consider potential errors while doing conversion . This can lead to data loss, so you should think of some backup to prevent that.
    Regards
    Marcin

  • Sender Adapter - Content Conversion Key Field Query

    Hi,
    I have a flat file of the following structure I am attempting to convert to XML using a file sender adatper:
    H1,H2,H3,H4
    D1,D2,D3,D4,D5,D6
    D1,D2,D3,D4,D5,D6
    D1,D2,D3,D4,D5,D6
    T1,T2,T3,T4
    Within the Content Conversion tab I have a Recordset Structure of:
    Header,1,Detail,*,Trailer,1
    i.e one header record, multiple detail records and one trailer as per the above example.
    It would seem that according to errors generated via Communication Channel Monitoring that this sort of Recordset Structure requires the Key Field Name to be set. I have searched around the forum and looked at the help.sap.com site and I'm struggling to understand what is required here.
    Anyone help ?

    >>It would seem that according to errors generated via Communication Channel Monitoring that this sort of Recordset Structure requires the Key Field Name to be set. I have searched around the forum and looked at the help.sap.com site and I'm struggling to understand what is required here.
    Yes you need to set key field value for your Header, Detail and Trailer
    Example:
    Header.keyFieldValue    H1
    Detail.keyFieldValue     D1
    Trailer.keyFieldValue   T1

  • How to resolve ora issue-parent key not found!

    Hi,
    Once the import is done,when i tried to enable the constraints,am getting ORA-02298: cannot validate (%s.%s) - parent keys not found for some of the constraints,i had already raised a new thread,but when i tried to resolve this issue based on the solution provided there,i couldn't....
    http://www.shutdownabort.com/errors/ORA-02298.php
    i have tried in so many ways-
    -reimporting the parent table alone.
    -fresh export of all tables with option consistent=y
    but the records are matching between source and target tables.

    based on this issue,is there any simple query to findout the missing records in parent table,i don't have access for child_table,parent_table views.
    FYI- am using traditional imp/exp command to accomplish data import and export activities,i tried with the following query,but not getting any output
    select 'select '||cc.column_name-
    ||' from '||c.owner||'.'||c.table_name-
    ||' a where not exists (select ''x'' from '-
    ||r.owner||'.'||r.table_name-
    ||' where '||rc.column_name||' = a.'||cc.column_name||')'
    from dba_constraints c,
    dba_constraints r,
    dba_cons_columns cc,
    dba_cons_columns rc
    where c.constraint_type = 'R'
    and c.owner not in ('SYS','SYSTEM')
    and c.r_owner = r.owner
    and c.owner = cc.owner
    and r.owner = rc.owner
    and c.constraint_name = cc.constraint_name
    and r.constraint_name = rc.constraint_name
    and c.r_constraint_name = r.constraint_name
    and cc.position = rc.position
    and c.owner = '&table_owner'
    and c.table_name = '&table_name'
    and c.constraint_name = '&constraint_name'
    can anyone suggest to fix it using some other option.

  • No active writeable datasource found for user creation, check your Persiste

    HI SAP Guru's
    Suddenly when I am login in Portal with J2EE_ADMIN or any user , I am getting error
    You are not authorized to access this application; contact your system administrator
    and when I am going to create user in identity management I am getting below error
    Current user has user creation permissions in the UME, but cannot create users in the back-end system (data source). The original and possibly untranslated message was: "No active writeable datasource found for user creation, check your Persistence Configuration.".
    I have searched all related treads in SDN but no success
    Please help.
    Thanks & Regards
    Vinay Patel

    Dear all,
    I was searching the community because I had this same error and there was no answer of how it was fixed. So I'm sending how I fixed today in a customer environment.
    1. Go to portal  http://<portal>/webdynpro/dispatcher/sap.com/tcsecumewdumeadmin/UmeAdminApp
    - select configuration
    - folder "sap system based in abap"
    - do the conection test
    If the test fails, log on in client 001 and change user SAPJSF:
    - assign role SAP_BC_JSF_COMMUNICATION (only this one) and one profile that has permission to RFC logon
    - you can change the password too
    STOP/START ABAP+JAVA
    Go again to the portal above and test connection again. The tests should now be OK.
    2. Go to portal  http://<portal>/irj
    - Log on with administrator user
    Now you should be able to create an user.

  • No table entries found for specified key

    Hi All,
    I have developed a program to upload data from flat file with the help of GUI UPLOAD. It is succesfully updating data in my Z-table.
    Whenever I tried to view the content of table for specific field, message shows No table entries found for specified key. However if I add * as a suffix, it shows the data & when I directly Execute table it also displays the data.
    I have also cross checked the spaces before or after the specific content, no space found.
    Only two fields are creating this issue Individually (one of them is key field)
    Regards
    Mukul Maheshwari

    Hi Dear ,
    Here i had implemented program go through it you can understand easily.
    While creating table give one field as primary as you know that.
    tables zdata1.
    data it_tab type TABLE OF zdata1 WITH HEADER LINE.
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        FILENAME                      = 'C:\Documents and Settings\E50039\Desktop\data.txt'     ***************File path
       HAS_FIELD_SEPARATOR           = 'X'
      TABLES
        DATA_TAB                      = it_tab
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LOOP AT it_tab.
    zdata1-no1 = it_tab-no1.
    zdata1-name = it_tab-name.
    zdata1-empid = it_tab-empid.
    insert zdata1.
    ENDLOOP.
    Flat file
    1 name1 empid1
    2 name2 empid2
    note: Give the tabspace between values in flat file.
    Edited by: Aditya.G on Oct 12, 2011 10:22 AM

  • Prerequsites for deciding Key fields and data fields

    Hi
    I would like to know the criteria to decide upon KEY fields and Data fields for an infoprovider.

    Hi,
    What is a Key field in a Database and How should I choose one?
    Keys are crucial to a table structure for many reasons, some of which are identified below:
    They ensure that each record in a table is precisely identified.
    They help establish and enforce various types of integrity.
    They serve to establish table relationships.
    Datafields may be Charecteristics and it may be keyfigures
    Regards,
    Marasa.

  • Show different key fields for different caracteristics in the column.

    Hi, experts
    I am creating a query where there are 4 colomns reprensenting 4 different dates. But I would like to display diffferent key fields for them. For example, under DAY 1, i would like to diplay KeyField 1, for DAY2, DAY3 and DAY4, KeyField 2 et 3 will be added under them.
    To do that, i made these key fields "Constant selection" and made some definition in the cells-------
    On the line of DAY1 in the colomn KeyField 2 and KeyField 3, I made them "Always Hide".
    But I didn't get what i wanted as the two columns (KF2 et KF3) still appear in the report, even if there are no data in these two columns.
    Is it possible to realise this requirement:
    DAY1   DAY2          DAY3
    KF1     KF2    KF3   KF2     KF3
    Thanks in advance!!!!

    There is no need to define a cell for this, use a restricted key figure:
    KF1 needs to be restricted by Day1
    KF2 restrict it by Day2 and so on,
    and use those restricted figure in the key figure section, but to make the column more descriptive use a text variable for the name of the columns.
    this should be easier than cell definition.
    thanks.
    Wond

Maybe you are looking for

  • Error When Creating New User in UME - GRC 5.3, but works via Backend

    All, When I try to create a new user in the User Management (UME), I get a very generic error message: "An error occurred; contact your system administrator". However, if I create the new user in the ABAP - backend first then he/she will show up in t

  • Building XPath with the XML having the Namespace using PL SQL

    While trying to build the path of each node, when the XML has no namespace in it , the below code works fine providing the result 1~/ 2~/person/ 3~/person/age/ 4~/person/homecity/ 5~/person/name/ 6~/person/homecity/lat/ 7~/person/homecity/name/ 8~/pe

  • ODP not showing up in provider list

    Hello all, I just finished installing odt, and while it looks as though I have some functionality, when I try to configure a SqlDataSource, Specify a new connection in the visual studio server explorer, Drag and drop a DataTable adapter, or any other

  • Video dimensions on .avi files?

    Hey guys. Sorry for the double post (I wasn't sure which category I should ask this, so I asked in the "Using Mac OS X Leopard" and "User Tips" forums). Just out of curiosity, what is the best way to check the video dimensions of a .avi file? I know

  • LXDE: managing folders on the desktop

    Hi, I've made a discovery: folders on the desktop are real folders, no 'labels'. If you delete them, they go, contents and all. On my brand new desktop there are two icons: 'My Documents' and 'KDE', the latter being the contents of my ~/Desktop direc