Problem in hierarchy with sap table

One problem regarding tree hierarchy  with the sap bi table example zmaterial  which is  having  3 fields which should show as node and there data as sub node suggest me , how to do it I have look around the example but there are of simple node with string concept none of them is of sap table

Hi Sarfaraz,
Go throgh these example programs.
WDR_TEST_TREE
WDT_TREE_TABLE_BY_KEY
and also go throgh this blog.
Dynamic Tree in ABAP WebDynpro
also check this wiki
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/wdabap/organization%2bhierarchy%2bin%2btree%2bstructure%2bas%2bf4%2bhelp
Edited by: suman kumar chinnam on Oct 17, 2008 10:04 AM

Similar Messages

  • Problem using ViewObject with bc4j:table

    Hello !!
    This is the query of my ViewObject:
    select * from speiseplan order by jahr desc, kw desc;
    and everything works fine in the BC4J tester:
    jahr kw
    2003 52
    2003 7
    2003 3
    2002 51
    But in my uix page the rows are not correctly sorted:
    jahr kw
    2003 3
    2003 7
    2003 52
    2002 51
    What's going wrong here?
    Thanks for your help.
    Regards,
    Mareike

    Duplicate post.
    Original problem using ViewObject with <bc4j:table>

  • Problem creating database with SAP Netweaver 7 sp 12

    Hello all,
    I have retrieved a new license from the website.
    The problem that I now have is that when I try to create a table, I am prompted for an access key. I input the developer access key (29671482393151224771) and it doesn't work.
    Please, does anybody know how I can remedy this?
    Thanks.

    hi henry,
    you cannot modify the standard sap tables and if the prefix does not start with Y or Z..it will ask for access key ...so while creating a table add Y or Z to the table name...
    not only for table name but also for classess,programs,screens etc..
    thanks
    jaideep
    <b><REMOVED BY MODERATOR></b>
    plz close the thread if it is answered..
    Message was edited by:
            Alvaro Tejada Galindo

  • View with SAP tables fails with "No Owner" error

    Dear experts,
    We have created a view (VIEW_MARA_MAKT) on Information Steward (4.2 SP1) using SAP tables MARA and MAKT.  This view is working perfectly.  Next we create another view to join with our previous view (VIEW_MARA_MAKT) to table MARC.  The view validates correctly, but when trying to view the data we get the following error:
    Data Services execution failed for VIEW_MATERIAL_PLANT. Error :
    (14.2) 04-08-14 12:46:21 (E) (0432:6996) RES-020106: |SESSION JOB_VView_736_43f3f6da_b863_46d6_ad64_b4f432a939b0|DATAFLOW EABAPDF_VIEW736_0|STATEMENT <GUID::'4a0dddf9-c993-4577-9e9a-1e0adf2dc9e2::794ee432-24f4-4801-bccf-587ef489e934::65e45615-06f8-426f-abf2-61345f6c252f' READ TABLE ICCDS_21."".MARC OUTPUT(IS_VIEW_RDR_475_0)> Table <MARC> for owner <> was not found in the repository for datastore <ICCDS_21>. Import this table from the external source. If the name is case-sensitive in the database (and not all uppercase), enter the name as it appears in the database and use double-quotation marks around the name to preserve the case. (COR-10690)
    It appears that DS is not satisfied that there is no owner name sent from IS, but for SAP connections it is not possible to specify owner names when adding the tables to IS.
    Please can you give some recommendations to resolve this error.

    What you can do is to use a table of record.
    And create a block based on stored procedure.
    Below is a table of record and procedure for querying from multi-tables.
    If you want to update, insert, delete rows, you need to create 3 more procedures on the package. One for updating, another for inserting, and so on.
    I never done updaing part before. So I need to spend time for coding.
    If you want, I can post later as soon as I got it.
    CREATE OR REPLACE PACKAGE TEST5 AS
    TYPE REC1 IS RECORD (FIRST TEST1.FIRST%TYPE,
    SECOND TEST1.SECOND%TYPE,
    THIRD TEST2.THIRD%TYPE);
    TYPE TAB1 IS TABLE OF REC1 INDEX BY BINARY_INTEGER;
    PROCEDURE TEST1CREATE (P_TAB IN OUT TAB1);
    END;
    CREATE OR REPLACE PACKAGE BODY TEST5 AS
    PROCEDURE TEST1CREATE(P_TAB IN OUT TAB1) IS
    CURSOR C IS
    SELECT A.FIRST,A.SECOND,B.THIRD
    FROM TEST1 A, TEST2 B
    WHERE A.FIRST=B.FIRST;
    i NUMBER:=0;
    BEGIN
    OPEN C;
    LOOP
    EXIT WHEN C%NOTFOUND;
    i:=i+1;
    FETCH C INTO P_TAB(i).FIRST,P_TAB(i).SECOND,P_TAB(i).THIRD;
    END LOOP;
    END TEST1CREATE;
    END;
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Hercules:
    <HR></BLOCKQUOTE>
    null

  • Hierarchy with FWD "table  per child" FK column generation problem

    I just faced with the problem which is described though example below:
    Entity A is superype including subtypes B, C and it contains primary Id attribute which is inherited by the subtypes. There is also D entity which has 1:M relation to A. When the relation model is generated there is only one column represents this relation. It’s fine when FWD “Single table” in use, but in this case the single foreign key column serves the foreign key to the different tables (B & C). There is no error from the formal DDL, but logically this “foreign key” values are mutually exclusive as the uniqueness is set on supertype level and subtype instances should have different Id value. I’d suggest that the relation attribute produces two different foreign key columns, one per each constraint. Is it possible to do that in SQL DM?

    Hi,
    thanks for feedback. We have bug logged on that.
    Philip

  • RFC calls with SAP table insert - lock tables

    Hi,
    I have an external server program, which is calling a rfc function many times the same time with different transaction types. There are transaction types, which are downloading information from SAP (only send data back to the caller), and there are transaction types which are uploading data to SAP (inserting/updating data on SAP).
    The function calls are synchronous as the server needs to get feedback directly. The parallel work processes for RFC calls are limited, so a system overload can´t happen.
    The problem now is, if the server is down for while and going to be restarted, it´s opening parallel threads and calls the function in SAP at nearly the same time. That means, it will call the function with upload requests (table must be locked), and download requests the same time.
    In the upload requests, the table has to be locked, that it can´t occur that we get wrong entries...
    I can only enqueue the table with just two fields... I know, that is almost like locking the whole table, but it´s not possible to lock it in a different way.
    I tried to use the enqueue function with the parameter WAIT, but it didn´t help, as there where too many parallel calls and after some seconds, they were ending up with an error (Because the table has been locked by another call).
    It seems that it´s trying to lock the table again for all parallel calls at exactly the same time....
    The calls has to be synchronous, as the server needs to get the feedback directly. Any ideas how top solve this, that it handles all incoming calls parallel and waits for the table is unlocked again?
    Thank you for your help!

    Hi,
    thank you for your answer!
    I have investigated something new yesterday:
    I thought at the beginning, that the problem just occurs, when the system work processes are reached. The system has for example set up 15 dialog processes and the external server is calling the function 20 times in parallel. Then we normally need 5 dialog processes more. The system is taking then all 15 dialog processes and the locks got stucked.
    That means, that I´ll maybe only get 4 or 5 uploads, which have really been updated the tables. All the others couldn´t get the table locked for their process.
    But if I now let the server call the function just about 13 times in parallel, nearly all uploads have been updated the table!
    From my point of view, the lock from SAP gets stucked, when the limit of dialog processes is reached. It´s not working in the right way anymore...
    The same is happening, when you set up in the system, that only 10 work proecesses can be used by RFC. If I have more than 10, it´s going to be critical with the locks....
    WEIRD!
    Can anybody help me out of trouble?
    Thank you!

  • Problem in working with KLGroup Table

    Hey friends,
    I have a problem with the KLGroup table component.... this problem is quite unique and i have not experienced it before... i was using KLGroup table with jre13. To enter data into a cell, i had to single clikc on the cell and it would become editable. But when i migrated to the 15 version of java, the single click and cell editable feature has disapperaed... i dont know why.. but i have to double click to make the cell unlocked so that i can enter some data into the cell... in case of a single click the cell still remains uneditable and i am not able to enter any data into the cell... does anyone have any idea about this..
    Is this a problem with the jre as such or is the problem due to some event handling mechanisms that i must have wrongly implemented?
    Pls do ask me in case you need more information...
    Thanks,
    Raja

    Hi Sarfaraz,
    Go throgh these example programs.
    WDR_TEST_TREE
    WDT_TREE_TABLE_BY_KEY
    and also go throgh this blog.
    Dynamic Tree in ABAP WebDynpro
    also check this wiki
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/wdabap/organization%2bhierarchy%2bin%2btree%2bstructure%2bas%2bf4%2bhelp
    Edited by: suman kumar chinnam on Oct 17, 2008 10:04 AM

  • Problem  FIELD-SYMBOL with HASHED TABLE

    Hello gurus,
    I have a problem with the following code. It is called in method MB_DOCUMENT_BEFORE_UPDATE of badi MB_DOCUMENT_BADI. I need to read the serial numbers of all items. I tried to do it with a field symbol. The information I need is stored in the hased table (SAPLMIGO)LCL_MIGO_GLOBALS=>KERNEL->PT_GOSERIAL_KERNEL. The systems returns sy-subrc = 4 after the assign. Can anyone help me? Thanks!
    TYPES: BEGIN OF ty_s_goserial,
              selected TYPE xfeld,
              serialno TYPE    gernr,
            END OF ty_s_goserial,
            ty_t_goserial  TYPE STANDARD TABLE OF ty_s_goserial WITH
                                                     NON-UNIQUE DEFAULT KEY.
      TYPES: BEGIN OF ty_s_goserial_kernel,
                global_counter TYPE migo_global_counter,
                t_goserial TYPE ty_t_goserial,
            END OF ty_s_goserial_kernel.
    types: tyt_goserial TYPE HASHED   TABLE OF ty_s_goserial_kernel
                                     WITH UNIQUE KEY global_counter.
        fs_l_serialno = '(SAPLMIGO)LCL_MIGO_GLOBALS=>KERNEL->PT_GOSERIAL_KERNEL'.
        FIELD-SYMBOLS: <fs_serialno> type tyt_goserial.
        ASSIGN (fs_l_serialno) TO <fs_serialno>.
        IF sy-subrc = 4.
          WRITE: / 'Ouch...'.
        ENDIF.

    Hi,
    Try adding body operator..at the end as it is an internal table..
    (SAPLMIGO)LCL_MIGO_GLOBALS=>KERNEL->PT_GOSERIAL_KERNEL[]'.
    Thanks
    Naren

  • Find the idoc segment link with Sap Table

    Dear Abaers,
    I am new to Idoc. i have one Idoc (Orders01) for creating sales order.
    I had seen the t-codes WE 30 and WE 60 to know the field description.
    The fielddescription shows names like name1 name2 ort01 etc.
    i want to know what are the db tables involved for that particular idoc segment.
    Thanks in Advance,
    Arati

    Hi Arati,
    to get the description name:
    WE30 transaction and check the segments name available.
    With the segment name, go to WE31 and check the fields used and column 'Data element'.
    Double-click in data element (or inform in se11), you have the description value of the field.
    About the tables involved:
    Click in 'Where use list' os this data element.

  • BPEL with SAP integration problem.

    Hi,
    I have a serious problem to integrate with SAP and BPEL.
    I have to create a IDOC document in BPEL process.
    Can I create IDOC in BPEL process through SAP Adapter?
    Does anybody know about this?
    Thanks in advance.
    Regards,
    Jean.

    Looks like Process B is being called successfully, if it wasn't it wouldn't be in the BPEL Console.
    I suggest that you look at the Process B the in the flow in the BPEL Console. It looks like you may be assigning a variable that has not been populated.
    The reason why you cann't see a instance for Process A is because Process B has not returned a value, sucess or failure. Therefore Process A is still stitting there waiting. To confirm this go to your BPEL Console select the BPEL processes tab then the manual recovery. You should see a row for your Process A.
    cheers
    James

  • Error while Connecting report Best Practices v1.31 with SAP

    Hello experts,
    I'm facing an issue while trying to connect some of my reports from Best Practices for BI with SAP.
    It only happens when it's about info sets, the other ones that are with SAP tables go smoothly without a problem.
    The most interesting is I have already one of the reports connected to SAP info sets.
    I have already verified the document of steps of creation of additional database that comes with BP pack. They seem ok.
    Here goes what Crystal Reports throws to me after changing the data source to SAP:
    For report "GL Statement" one of the Financial Analysis one which uses InfoSet: /KYK/IS_FIGL_I3:
    - Failed to retrieve data from the database; - click ok then...
    - Database connector error: It wasn't indicated any variant for exercise (something like this after translating) - click ok then
    - Database connector error: RFC_INVALID_HANDLE
    For report "Cost Analysis: Planned vs. Actual Order Costs" one of the Financial Analysis one which uses InfoSet: ZBPBI131_INFO_ODVR and ZBPBI131_INFO_COAS; and also the Query CO_OM_OP_20_Q1:
    - Failed to retrieve data from the database; - click ok then...
    - Database connector error: check class for selections raised errors - click ok then
    - Database connector error: RFC_INVALID_HANDLE
    Obs.: Those "Z" infosets are already created in SAP environment.
    The one that works fine is one of the Purchasing Analysis reports:
    - Purchasing Group Analysis -> InfoSet: /KYK/IS_MCE1
    I'm kind of lost to solve this, because I'm not sure if it can be in the SAP JCO or some parameter that was done wrongly in SAP and I have already check possible solutions for both.
    Thanks in advance,
    Carlos Henrique Matos da Silva - SAP BusinessObjects BI - Brazil.

    I re-checked step 3.2.3 - Uploading Crystal User Roles (transaction PFCG) - of the manual where it talks about CRYSTAL_ENTITLEMENT and CRYSTAL_DESIGNER roles, I noticed in the Authorizations tab that the status was saying it hadn't been generated and I had a yellow sign, so then that was what I did (I generated) as it says in the manual.
    Both statuses are now saying "Authorization profile is generated" and the sign is now green on the tab.
    I had another issue in the User tab (it was yellow as Authorizations one before generating)....all I needed to do to change to green was comparing user (User Comparison button).
    After all that, I tried once more to refresh the Crystal report and I still have the error messages being thrown.
    There's one more issue in one of the tabs of PFCG transaction, it is on the Menu one where it is with a red sign, but there's nothing talking about it in the manual. I just have a folder called "Role menu" without anything in it.
    Can it be the reason why I'm facing errors when connecting the report to SAP infoSets? (remember one of my reports which is connected to an infoSet works good)
    Thanks in advance,
    Carlos Henrique Matos da Silva - SAP BusinessObjects BI - Brazil.

  • Named query with join tables

    I have two tables
    - Process_Master (EVENT_ID, EVENT_TYP, STATUS)
    - Rel_Event( EVENT_ID, USERID, EVENT_DATE, RMKS)
    They have one-to-one relationship linked by EVENT_ID.
    I would like to create a named query like below joining 2 tables together.
    Do I need to create any class descriptor first and how? I want this query to be available from the ADF data control so I can drag and drop this to my JSP page as a ADF table. I have no problem in working with single table. I have read thru the developer guide and try out many things like multitable info, aggregate mapping and couldn't figure out how this can be done. Please help!!!
    SELECT A.EVENT_ID,B.EVENT_DATE, A.STATUS, B.RMKS
    FROM PROCESS_MASTER A, REL_EVENT B
    WHERE A.EVENT_ID = B.EVENT_ID
    AND A.STATUS = 'P';
    ********/

    I have tried the below but fail to retrieve any rows. Please help!
    Expression aid = new ExpressionBuilder(ProcEventMaster.class).get("event_id");
    Expression bid = new ExpressionBuilder(RelEvent.class).get("event_id");
    ReportQuery reportQuery = new ReportQuery(ProcEventMaster.class,aid.equal(bid));
    reportQuery.addAttribute("a_id", aid);
    reportQuery.addAttribute("b_id", bid);
    reportQuery.addAttribute("eventDate",bid.get("event_date"));
    reportQuery.addAttribute("remarks",bid.get("rmks"));
    reportQuery.setSelectionCriteria(aid.get("status").equal("P"));
    List<RelEvent> results =
    (List<RelEvent>)session.executeQuery(reportQuery);session.release();
    return results;

  • Problem to connect SAP tables with Crystal report 2011

    Hi,
    I am new in Crystal report,
    I Install CR 2011 in my PC now when I make a new connection under path FIle->New->Blank Report I choose SAP Table,Cluster or Function
    here I give Clint,User and Password and try to connect then following msg will display 
    Logon Failed.
    Details: You do not have necessary rights to design report against the SAP system . Please check with your System Administrator.

    Hi,
    Step 1:After Clicking SAP BW Query, you need to goto SAP tab from the context menu and click on
    Step 2: Create New Report from a Query
    Step 3: Click on OLAP tab, Here you can select your Cube and select SAP Business Information Warehouse
    Step 4: Go back to SAP tab and click on Start BW Query Designer(this allows selection of the cube from the Query designer Interface)
    You will understand automatically about further steps once you are able to follow the above steps............
    Regards,
    Suman

  • Problem creating hierarchy based on 2 physical dimension tables

    I'm having a problem creating 1 logical dimension with a drill-down hierarchy, based on two separate physical dimension tables. The errors I receive when navigating the drill-down hierarchy is:
    "Cannot find logical table source coverage for logical columns" &
    "Missing join between logical tables".
    I'm using OBIEE 10.1.3.4
    Here are the details of what I have setup sofar:
    Physical layer:
    Dimension table DIM_ORG with columns:
    -dimension_key
    -org_total_code
    -org_total_description
    -org_detail_code
    -org_detail_description
    Dimension table DIM_DEPT with columns:
    -dimension_key
    -dept_total_code
    -dept_total_description
    -dept_detail_code
    -dept_detail_description
    Fact table FACT_SALES with columns:
    -fk_org
    -fk_dept
    -sum_sales
    Physical Joins:
    FACT_SALES.fk_org = DIM_ORG_dimension_key
    FACT_SALES.fl_dept = DIM_DEPT.dimension_key
    Business Model & Mapping layer:
    I created a logical dimension ORG_DEPT. It contains two logical table sources (DIM_ORG & DIM_DEPT) and the following logical columns:
    - All Departments (mapped to dept_total_code)
    - Organisation (mapped to org_detail_description)
    - Organisation Number (mapped to org_detail_code)
    - Department (mapped to dept_detail_description)
    - Department Code (mapped to dept_detail_code)
    The business logical key is based on the combination of Organisation Number & Department Code
    The hierarchy I need is: All Departments -> Organisation -> Department so I created the following hierarchy for ORG_DEPT:
    - Total Level containing: All Departments
    - Organisation Level containing: Organisation Number (defined as the Logical level key) & Organisation (defined als the Drill level key)
    - Detail Department Level containing: Department Code (defined as Logical level key) and Department (defined as Drill level key).
    In the LTS of the dimension ORG_DEPT I've set the Content levels for the sources:
    DIM_ORG : Organisation Level
    DIM_DEPT: Detail Department Level
    In the LTS no -inner- joins have been added against related physical tables.
    I created a logical fact table SALES (based on the physical fact table) and joined it against the logical dimension table ORG_DEPT.
    In the LTS the Content level for ORG_DEPT is set against the Detail Department Level. No - inner- joins have been aded against related physical tables.
    When I create a report in Answers to test the hierachy and select only 'All Departments' I get the correct dimension value returned. When I try to drill to the next level I get the following ODBC error:
    "Cannot find logical table source coverage for logical columns: [All Departments]. Please check more detailed level keys are mapped correctly".
    When I create a report in Answers and select both 'All Departments' and 'Sales' I get the correct result. When I try to drill to the next level I get a different ODBC error:
    "Missing join between logical tables DIM_DEPT and DIM_DEPT: There must be at least one physical join link between the underlying physical tables".
    Any suggestions are welcome!
    Thanks!

    Hello Robert,
    Your suggestions were known to me but I still wanted to combine the two physical dimension tables in one logical dimension. So I've played around a bit more and found the solution: In my original setup I had two seperate logical table sources (one for each physical dimension table). The solution was to combine the two logical table sources in one logical table source. I achieved that by logical joining the DIM_DEPT table to the FACT_SALES table and subsequently to the DIM_ORG within the 1 LTS and using inner joins.
    Then I created the logical table key (a combination of org_detail_code & dept_detail_code). After that I could create the hierarchy with no problem.
    Edited by: The_Dutchman on Nov 4, 2011 9:43 PM

  • Problems with SAPUSER Table / ORA-1403 during PI 7.1 EHP1 Installation

    Hello,
    as I have currently problems creating a customer message with the customer provided S-User and I need a solution after the easter weekend, I'll try my luck here...
    We currently perform a SAP Netweaver PI 7.1 EHP1 installation on Windows 2008 (Enterprise)/ Oracle. The installation media were downloaded from SAPNet.
    The Windows Server 2008 is completely udpated, no further patches are available.
    The Windows system is patched according to note 1375494 (new SAP kernel does not work on Win2008 without).
    Oracle 10.2.0.4 was installed previous to the installation.
    During the installation the new independend and db-dependend kernel was provided.
    First steps run smoth until Phase ABAP IMPORT. This one fails according to the logs because access to table SAPUSER is not possible:
         Compiled Jan 15 2010 23:56:22
         E:\usr\sap\PID\SYS\exe\uc\NTAMD64\R3load.exe -testconnect
         DbSl Trace: ORA-1403 when accessing table SAPUSER
         (DB) ERROR: db_connect rc = 256
         DbSl Trace: ORA-1403 when accessing table SAPUSER
         (DB) ERROR: DbSlErrorMsg rc = 99
    I already checked the OPS$ mechanism. Starting SQLPlus /nolog and login with "connect /as sysdba" works as intended.
    i.e. "select owner from dba_tables where table_name = 'SAPUSER';" shows:
         OWNER
         O$HERDER_DOMAIN\PIDADM
    Which is ok, the Domainname and SID is correct.
    "select * from "O$HERDER_DOMAIN\PIDADM".SAPUSER;" show:
         no rows selected
    Comparing this to another recently installed system there should be something like this:
         USERID
         PASSWD
         SAPSR3-CRYPT
         V01/0050ZctvSB67Wv2haiQTDrO5P5c7Ks/kyqpdQ7jDbQ==
    But I'm not really sure, if this entry should be there at this installation phase.
    If so, how is this entry created? Note 50088 describes how to handle this, but with other USERID and without encrypted PASSWD.
    I have no idea, why this happens, I recently installed 2 ECC systems and 1 Solution Manager systems and had no problems installing them.
    I already exchanged the control.xml according to note 1249469.
    I cannot find any note for this situation, so please ... is there anyone out there with an idea?
    Best regards
    Christian Reitz

    Hi,
    thanks for the answer... as I read your answer, I had some doubt, and unfortunately I was right.
    Altering the users PW does not write into the SAPUSER table... why should it? Altering an oracle user does not effekt this SAP table.
    In the meantime I started from scratch. Complete new installation of Win2008, patching, etc.
    ... same issue.
    I don't know, why this happens... I cannot find another hint what happend before, when the user should be added into the table.
    Any ideas? Anyone?
    Thanks for help in advance.
    Christian

Maybe you are looking for

  • How to update the price based upon PGI date

    Hi         I have issue of updation of the Prices and freight based on PGI date in the billing we are using the two billing types for the excsies and tax invoice creation .And in the copy control pricing type is maintained Aas "C" for the billing typ

  • Not showing Caller Name on E51

    I have upgrade software but after that my phone not showing caller name on the screen.Before upgrading my phone was shwoing caller name when I received call. my all phone numbers are on SIM , can some body let me know how this will work or its settin

  • Artifacts in gif animation

    I'm experiencing an issue with artifacts in gif animation and I hope the collective brain trust in here can help.  I've attached the file so you can see what I'm talking about.  I've loaded the file into Dreamweaver to run as the header background an

  • InfoSource and Source System Not getting collected while activation BC

    Hello there!     I'm trying to activate the business content. If i group all the objects below and install a cube (or update rules), it gets everything but infosources (Transfer Rules, etc.) and the source system assignment. Neverthless, if i assign

  • ABAP mappingclass warning

    Hi. I get warnings on lines in my mapping class. FIELD-SYMBOLS <ls_structcomp>  TYPE abap_compdescr. Class *****, Method IF_MAPPING~EXECUTE (E) Package "*****" cannot use object "TYPE ABAP TYPE" from package "SABP_TYPES" in any of the following ways: