Structured data retrieval

i have a small access database that contains organization
info.
so that I don't have to deal with multiple organization and
sub-org tables, I have one table that has an org_id, org_nm, and
parent_num. The parent_num id is a reference to the org_id of the
next higher organizational level.
example:
org_id = 1
org_cd = CIO
parent_num = 0
org_id = 2
org_cd = IT Branch
parent_num = 1
org_id = 3
org_cd = IT Sub-Branch
parent_num = 2
I need to be able to return results based on the org_id
selected. Is there a way to do this w/o having to submit a form
multiple times until you get to an org that doesn't have anything
below it? (an org_id that isn't also a parent_num for another org).
I thought of the ThreeRelatedSelects.cfm custom tag, but
since all records have the same ID field, I can't seem to get it to
work.
I need to be able to select a top level org, see it's
sub-orgs, then another sub-org under that. Thanks.

> I need to be able to select a top level org, see it's
sub-orgs, then another
> sub-org under that. Thanks.
I'd not use an adjacency list (id, parent_id), I'd use a
nested set (not
easily explained in one parenthetical comment ;-). It makes
stuff like
this much easier. Also adjacency lists don't scale very well
(that said,
neither does Access, so that might not be such a
consideration for you).
Reading:
http://www.sqlsummit.com/AdjacencyList.htm
http://www.intelligententerprise.com/001020/celko.jhtml?_requestid=235427
Adam

Similar Messages

  • Organizational structure data retrieval

    Hi
    I am trying to retrieve a list of the first level of employees reporting to a manager using the .Net Connector. I have used the HRWPC_RFC_GET_OBJECTS rfc used by the Team Viewer iView with viewid="A_ALL". This returns all the employees under the manager in the org structure, not just the first level under the manager. If I use VIEWID="Y_DIR" I get data that is related to organizational unit and position, not people. Does anyone know how to retrieve only one level of people reporting to a manager?
    Thanks

    Hi,
    try with viewid="A_DIR".

  • Working with NON-Structured Data

    Dear Colleague,
    I am preparing to build a Forms application (using Oracle 9i Developer Suite, Release 2, version 9.0.2.0.1).
    The application (and Data model) will need to associate SOPs (standard operating procedures) with certain measurements and treatments. It is planned to have the SOPs be, for example, MS Word documents, i.e. the SOPs will be non-structured data.
    What is best practice when handling this situation? Please advise.
    Assume I would like to view, print and (maybe) update the SOPs (Word files).
    1. Should I just store a link to the Word file and a corresponding description or is it better to store the Word file in the DB?
    2. If in the DB, which data type?
    3. If SOP not in the DB, but a file, what is the mechanism for retrieval and display?
    4. Printing the Word file via Forms - how? problems to avoid?
    5. Update of the Word document via Forms - possible? How?
    Best regards,
    Randy

    Hi Vijay,
    sorry
    please rewrite the formula for the button disable as::
    NOTE:: in the formula i have used '<''>'  which nothing but a lessthan symbol and greater than symbol without single quotes (i.e. not equal to)
    BOOL(IF(LEN(@Emp_code) '<''>'0 AND LEN(@Earea)'<''>'0 AND LEN(@Edept)'<''>'0 AND DSUB(DVAL(@Joining_date), DVAL(@Ending_date),'D')<0 ,false,true))
    and make sure you have placed the date picker UI controls for your date functionality.
    this will not work for calender UI control on the form.
    and othe important point is the joining date should be less than ending date then only the button will be enable..
    if you want your joining date should be greater than ending date then write the formaula like this::
    BOOL(IF(LEN(@Emp_code)<>0 AND LEN(@Earea)'<''>'0 AND LEN(@Edept)'<''>'0 AND DSUB(DVAL(@Joining_date), DVAL(@Ending_date),'D')>0 ,false,true))
    i tried this
    its working for me
    Regards
    Srinivas

  • SQ02 Data retrieval by program

    Hello,
    I would like create an abap query 'SQ01' using infoset 'SQ02' with the option
    'Data retrieval by program' and 'Integrated program'
    I wrote and tested this program:
    REPORT  ZONR_REPORT_MBEW.
    data:  mbew_tab like mbew OCCURS 0 WITH HEADER LINE.
    * <Query_head>
    select * from mbew into table mbew_tab
        where bwkey = 'MANT' and bklas = '3000' and matnr = '000000000001027712'.
        call function  'MBEW_EXTEND'
          exporting
            XVPER = 'X'
          tables
            mbew_tab = mbew_tab.
    loop at mbew_tab.
    * <Query_body>
      endloop.
    Could you help how to fill the area 'Data structure' of the option
    'Data retrieval by program' ?
    With the menu 'Goto' -> 'Code' -> 'Data readindg program'
    I found this template of program :
    REPORT  RSAQDVP_TEMPLATE .
    *   declarations
    *   (insert your declarations in this section)
    data:
      MBEW                           type MBEW                          ,
      it_data type standard table of MBEW                          .
    field-symbols: <struc> type MBEW                          .
    *   selection screen statements
    *   (define your selection-screen here)
    * !! the following comment MUST NOT BE CHANGED !!
    *<QUERY_HEAD>
    *   read data into IT_DATA
    *  (select your data here into internal table IT_DATA)
    *   output of the data
    *   (this section can be left unchanged)
    loop at it_data assigning <struc>.
      move-corresponding <struc> to MBEW                          .
    * !! the following comment MUST NOT BE CHANGED !!
    *<QUERY_BODY>
    endloop.
    Could you help me to customize the program ZONR_REPORT_MBEW according
    to the template, because I'm a neewbie in abap ?
    Thanks for your helping
    Marco

    The "Data retrieval program" would be coded like any normal report except for adding a few comment tags that will be used by SQ01 query generator as placeholders to insert its own code into your code to generate the query program.
    In general this is how a data retrieval program is coded. SQ01 when it generates the query will insert its own code in place of *<Query_body> and *<Query_head> comment tags
    REPORT ztest_sq01_driver_program.
    TABLES: <name of dictionary structure of your infoset>.
    * DATA declarations
    START-OF-SELECTION.
    *<Query_head>
    * <Fetch your data here and store it in an internal table gt_report> that has all the fields that you need in your query
    END-OF-SELECTION.
      LOOP AT gt_report INTO gs_report.
        MOVE-CORRESPONDING gs_report TO <name of dictionary structure of your infoset>
    *<Query_body>
      ENDLOOP.

  • SQ02 - Create InfoSet using 'Data retrieval by program'

    Using SQ02, I would like to use the data returned by an ABAP program as the data source for an InfoSet.  When attempting to create an InfoSet, I noticed the 'Data retrieval by program' option.  I would like to discover how to use this option and how to pass parameters to the ABAP program I'd like to use.

    The "Data retrieval program" would be coded like any normal report except for adding a few comment tags that will be used by SQ01 query generator as placeholders to insert its own code into your code to generate the query program.
    In general this is how a data retrieval program is coded. SQ01 when it generates the query will insert its own code in place of *<Query_body> and *<Query_head> comment tags
    REPORT ztest_sq01_driver_program.
    TABLES: <name of dictionary structure of your infoset>.
    * DATA declarations
    START-OF-SELECTION.
    *<Query_head>
    * <Fetch your data here and store it in an internal table gt_report> that has all the fields that you need in your query
    END-OF-SELECTION.
      LOOP AT gt_report INTO gs_report.
        MOVE-CORRESPONDING gs_report TO <name of dictionary structure of your infoset>
    *<Query_body>
      ENDLOOP.

  • How's to select data from structure data object?

    Dear Guru,
    If my data is kept in structure data object (not a table type).  How can I select data from that kind of data object.  Thank you.
    Cheers,

    Hi,
    Data cannot be stored in structure.
    Structure is just like a view , so its a medium with which you can create a view relevant to your needs.
    The fields that we need together , we put in a structure.
    Structure is a medium where we collect all our relevant fields.
    we can include the structure in internal table so that we can actually store data , process data and retrieve data.
    hope this helps.
    thanx,
    dhanashri.

  • BAPIs / Function Modules to access org. structure data?

    Hi,
    I want to integrate SAP org. structure with external BPM system.
    anybody knows how to access org. structure data via RFC or web services?
    Thanks in advance.

    The purchasing org and purchasing grp can be found in T024E and T024 table.
    Regards
    Anurag

  • Query Error Information: Result set is too large; data retrieval ......

    Hi Experts,
    I got one problem with my query information. when Im executing my report and drill my info in my navigation panel, Instead of a table with values the message "Result set is too large; data retrieval restricted by configuration" appears. I already applied "Note 1127156 - Safety belt: Result set is too large". I imported Support Package 13 for SAP NetWeaver 7. 0 BI Java (BIIBC13_0.SCA / BIBASES13_0.SCA / BIWEBAPP13_0.SCA) and executed the program SAP_RSADMIN_MAINTAIN (in transaction SE38), with the object and the value like Note 1127156 says... but the problem still appears....
    what Should I be missing ??????  How can I fix this issue ????
    Thank you very much for helping me out..... (Any help would be rewarded)
    David Corté

    You may ask your basis guy to increase ESM buffer (rsdb/esm/buffersize_kb). Did you check the systems memory?
    Did you try to check the error dump using ST22 - Runtime error analysis?
    Edited by: ashok saha on Feb 27, 2008 10:27 PM

  • WAD : Result set is too large; data retrieval restricted by configuration

    Hi All,
    When trying to execute the web template by giving less restiction we are getting the below error :
    Result set is too large; data retrieval restricted by configuration
    Result set too large (758992 cells); data retrieval restricted by configuration (maximum = 500000 cells)
    But when we try to increase the number of restictions it is giving output. For example if we give fiscal period, company code ann Brand we are able to get output. But if we give fical period alone it it throwing the above error.
    Note : We are in SP18.
    Whether do we need to change some setting in configuration? If we yes where do we need to change or what else we need to do to remove this error
    Regards
    Karthik

    Hi Karthik,
    the standard setting for web templates is to display a maximum amount of 50.000 cells. The less you restrict your query the more data will be displayed in the report. If you want to display more than 50.000 cells the template will not be executed correctly.
    In general it is advisable to restrict the query as much as possible. The more data you display the worse your performance will be. If you have to display more data and you execute the query from query designer or if you use the standard template you can individually set the maximum amount of cells. This is described over  [here|Re: Bex Web 7.0 cells overflow].
    However I do not know if (and how) you can set the maximum amount of cells differently as a default setting for your template. This should be possible somehow I think, if you find a solution for this please let us know.
    Brgds,
    Marcel

  • Result set is too large; data retrieval restricted by configuration

    Hi,
    While executing query for a given period, 'Result set is too large; data retrieval restricted by configuration' message is getting displayed. I had searched in SDN and I had referred the following link:
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/d047e1a1-ad5d-2c10-5cb1-f4ff99fc63c4&overridelayout=true
    Steps followed:
    1) Transaction Code SE38
    2) In the program field, entered the report name SAP_RSADMIN_MAINTAIN and Executed.
    3) For OBJECT, entered the following parameters: BICS_DA_RESULT_SET_LIMIT_MAX
    4) For VALUE, entered the value for the size of the result set, and then executed the program:
    After the said steps, the below message is displayed:
    OLD SETTING:
    OBJECT =                                VALUE =
    UPDATE failed because there is no record
    OBJECT = BICS_DA_RESULT_SET_LIMIT_MAX
    Similar message is displayed for Object: BICS_DA_RESULT_SET_LIMIT_DEF.
    Please let me know as to how to proceed on this.
    Thanks in advance.

    Thanks for the reply!
    The objects are not available in the RSADMIN table.

  • Real tough data retrieval - assistance needed

    Late 2011 Macbook Pro with 500GB hard drive
    Lion 10.7
    One morning out of absolutely nowhere I get this grey screen with a flashing question mark folder. I take it to the geniuses at the Apple store and they tell me my hard drive has failed (no explanation). My mac is under warranty so they gave me a new hard drive for free, bagged my old hard drive and told me "good luck" retrieving the data.
    I'm on a mission to retrieve the data without paying for services. I have never retrieved data before but I've been doing a lot of forum reading and I have been getting protips from an IT friend who has saved my PC data before.
    As of now, I have been unable to even access the hard drive and so I am reaching out to the community to help me conquer this project.
    the problem is not the OS (according to Apple store)
    when hooking up with the dongle, neither Finder nor Disk Utility detect the bad drive
    the drive will spin when forced by the dongle (so I've ruled out the freezer method)
    I was advised (by friends and forums alike) to download so powerful data retrieval software:
    Data Rescue [did not detect bad external drive]
    Disk Drill [did not detect bad external drive]
    TestDisk (http://www.cgsecurity.org/wiki/TestDisk) [I can get it up and running but I have no idea how to use this software]
    So that seems to be the big problem, when I hook up my failed drive as an external hard drive, there is no acknowledgement from my MBP that it is connected and as such data recovery programs cannot access it. When I still had it installed in my computer, there was no clicking sound and it doesn't seem like any of the components are jammed up as it still spins.
    Where do I go from here? Please keep in mind that I am new to resolving my own technical problems but I'm willing to learn. Tired of being one of those people who look at computer parts and get anxious.
    NOTE: I haven't tried Target Mode as I do not have a firewire cable or access to another mac (yet). If you think I should try this, please let me know.

    A hard drive that will not divulge BOTH its Make&Model and a reasonable size/capacity to the likes of Disk Utility and data rescue programs has died, and connot be repaired with any software.
    Target Disk mode will not improve anything. The drive is read as a Mac Volume by software. If it won't mount under Mac OS X, it won't mount under Target Disk Mode.

  • Should I use a data retrieval service or software to recover data ?

    Please pardon the length of this post.
    Here's the setup for our office:
    Computer 1:
    10.4.8 OS X
    1 GHZ PowerPC G4: silver grey tower, grey apple
    1MB L3 Cache
    256 MB DDR SDRAM
    Computer 2:
    10.4.8 OS X
    Dual 450 MHZ PowerPC G4: blue grey tower, blue apple
    256 MB SDRAM
    Computer 3:
    10.4.8 OS X
    1 GHZ PowerPC G4 IMac Flat Screen:
    256 MB DDR SDRAM
    I have 2 LaCie Big Disk d2 Extremes daisy chained and connected to the IMac. We use the first to store all of our data to keep our local disks free. The second d2 is the backup to the first. The other 2 computers connect to the d2's via an ethernet hub. The d2's are each partitioned into 4 compartments.
    A couple of days ago I started the system up when I got in in the morning, and the main d2 would not open. I ran disk utility, but it said that the drive was damaged beyond it's ability to repair. I ran DiskWarrior, and it gave me this message:
    "The directory of disk 'G4' cannot be rebuilt. The disk was not modified. The original directory is too severely damaged. It appears another disk utility has erased critical directory information. (3004, 2176)."
    I contacted Disk Warrior tech support and after a series of exchanges that had me send him dated extracted from the terminal function, he said this:
    "It appears that the concatenated RAID inside your LaCie
    drive has failed (your 500GB drive is actually 2 250GB
    hard drives). That is why we only saw 2 partitions
    on "disk3". A possible cause could be a failed bridge
    in the case.
    You may be looking at sending this drive to a data recovery service.
    However, it is possible that we may be able to recover data
    from the partitions that we CAN see. What we would be doing would cause no damage to your data
    unless the hard drives were having a mechanical failure (ie, the
    head crashed and was contacting the platters, similar to scratching
    a record). But from what I've seen, I don't feel that is the case.
    I believe the piece of hardware that 'bridges' the two drives to
    make them act as one has failed. that's why we can only see data
    about 1 of the 2 drives in the case.
    We would only be attempting to gather data off the drive. Since
    data recovery services sometimes charge for amount of data retrieved,
    it's up to you how you want to proceed."
    Most of the data from the past 5 years for our business stands at being lost. Only some of it had been properly backed up on the second drive, due to some back up software issues. I want to do whatever I can to retrieve all of, or at least some of the data. From what the Alsoft technician said, do you think that the data recovery software available to the consumer is going to be robust enough to retrieve at least the data from the one disk in the drive that is recognizable (there are 2 250gig disks in the d2X. Only one is responding at all). If so, do these Softwares further damage the disks? Or should I just send the drive to a data recovery service?
    I'd like to try to extract some of it myself via over the counter retrieval software, but I don't know whether to trust these programs?
    Any advice would be greatly appreciated.
    Thanks in advance.
    Peter McConnell
    1 GHZ PowerPC G4 IMac Flat Screen   Mac OS X (10.4.8)   Posted

    Peter
    My 2 cents:
    I have used FileSalvage
    http://www.subrosasoft.com/OSXSoftware/index.php?mainpage=product_info&productsid=1
    to recover files from damaged disks. It works as advertised, within limits. Some files may be too damaged to recover. More importantly yo get to scan the disk before actually recovering, and it will give you a list of what it thinks it can recover.
    My experience was that it recovered approx 85% of the data.
    YMMV but they do have a trial.
    Regards
    TD

  • Report Developed in Webi Rich Client Consuming more time in Data Retrieval

    Dear All,
    I am a BO Consultant, recently in my project I have developed one report in Webi Rich Client., at the time of development and subsequent days the report was working fine (taking Data Retrieval time less than 1 minute), but after some days its taking much time (increasing day by day and now its taking more than 11 minutes).
    Can anybody point out what could be the reason?????
    We are using,
    1. SAP BI 7.0
    2. SAP BO XI 3.1 Edge
    3. Webi Rich Client Version :12.3.0 and Build 601
    This report is made on a Multiprovider (Sales).
    What are the important points that should be considered so that we can improve the performance of Webi Reports????
    Waiting for a suitable solution.....................
    Regards,
    Arun Krishnan.G
    SAP BO Consultant
    Edited by: ArunKG on Oct 11, 2011 3:50 PM

    Hi,
    Please come back here with a copy/paste of the 2 MDX statements from the MDA.log to compare the good/bad runtimes.
    & the 2 equivalent DPCOMMANDS clauses (good and bad) from the WebI trace logs.
    Can u explain what u really mean in the bold text above..................Actually I didn't get you..........
    Pardon, I have only 3 months experience in BO.
    Regards,
    Arun
    Edited by: ArunKG on Oct 11, 2011 4:28 PM

  • JMS Adapter - data conversion xml- structured data has extra characters

    Further to [Using MQ / JMS adapter with legacy system to talk to SAP;, I am using the Module tab on my receiver JMS Adapter to convert the xml payload to a structured format. It converts to the mainframe ebcdic code set.  I am on PI 7.11, and the MQ Series (which JMS interacts with) is 6.0.  The code I have is comparable to the wiki:[http://wiki.sdn.sap.com/wiki/display/XI/HowTo...ContentconversionmodulewithJ2EEJMS+adapter], i.e. the example at the very bottom of that article.
    The issue we are having is that an extra character gets inserted at the end of each structure (within the message), i.e. our message contains 4 structures, but when we view the structured data on our mainframe system (that arrives from PI), the entire message is shifted by 4 characters... by 1 after the end of each structure.  On the mainframe, this extra character appears as '.'. It must be an end-of-line or something...
    Has anyone had the same issue?  If so, were you able to resolve? I could probably set up my message data type to just be one big declare (thus eliminating the use of structures within it), but that is something I'd rather not do.
    We are in the process of reviewing Note 856346, #6 but not sure if it applies.
    Regards,
    Keith

    Hi,
    check localejbs/SAP XI JMS Adapter/ConvertMessageToBinary Local Enterprise Bean convert_XI2Bin
    this is not CallJMSService.
    And also check the receiver Structure, if it is falt structure its ok, else
    see the below link if it has the complex structure , how to handle..
    See the below links
    /people/alessandro.guarneri/blog/2006/01/04/jms-sender-adapter-handling-too-short-lines
    /people/william.li/blog/2006/11/13/how-to-use-saps-webas-j2ees-jms-queue-in-exchange-infrastructure
    content conversion
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f02d12a7-0201-0010-5780-8bfc7d12f891
    Regards
    Chilla..

  • Data retrieval for Sony handycam with 60G harddrive.

    Does BestBuy do data retrieval?  I have a handycam with work video on it that accidentaly got formated.  I know with a standard harddrive you can still retrieve it if there has not been recording since the formatting but I am not sure about camera harddrives.  If BestBuy does not do it, does anyone know where it can be done and approximate cost.  I live in the New Orleans area.  
    I may try the same question in computers if nobody knows.  Thanks in advance for any guidance at all. 

    Best Buy sends out for data retrieval. You can have it sent out through geek squad to get the estimate of cost.
    Crystal
    Superuser
    Forum Guidelines | Terms & Conditions | Community Guidelines | What is a Superuser?
    *Remember to mark your questions solved and click the star to give kudos to show your thanks!*
    While I used to be a Best Buy Employee, I no longer have any affiliation with Best Buy.
    My opinions do not in any way shape or form represent Best Buy's Official decisions.

Maybe you are looking for

  • Motion 5 crashes on quit?

    Motion 5 has seemed quite solid and a pleasure to go deeper into. But every single time i am done, happy and i quit - Motion gnerates a crash report. It does not seem to matter the simplicity or the complexity...it will run all but as soon as I am do

  • Broadband does not auto reconnect after power loss

    I have a D-Link DSL-302G ADSL modem and Netgear AC1900 on an  Eaton Powerware 5110 UPS. When there is power loss or brown out in our neighbourhood , our internet goes off and  does not reconnect automatically. I then have to physically turn off the N

  • Temporary table with in a stored procedure

    Hi: I am trying to create a SP with a temporary table, and getting a syntex error. Here is my code. Can someone help me on this ? Thank you, Dima create or replace procedure ACCEPT."HIROC_IBC_CLAIMS"(policy_no cm_pm_interface.policy_no%type ,EXPOSURE

  • Dial up connection too slow

    Server:linux databse:9i Jinitiator 1.3.1.13 We try to connect to our application using dial up connection ,it was too slow to initiate jinitiator ,how can i solve this problem

  • Tehnical upgrade from 4.6C MDMP to ECC 6.0 using CU &UC approach

    Hi SAP Experts, We are embarking on a project for Technical upgrade from SAP R/3 4.6C MDMP system to ECC 6.0 using the CU & UC approach for our Asian operations (comprising of India, Japan, Taiwan & Singapore). Please share with me the Best Practices