Read data from 2 tables.

Hello everyone,
I created a SQL database in phpMyAdmin. It contains 2 tables.
'Woninginformatie' and 'Makelaars'.
I use the next SQL query in my PHP file to read from the
database:
SELECT DISTINCT * FROM Woninginformatie
INNER JOIN Makelaars ON Woninginformatie.ID_mk =
Makelaars.ID_mk
WHERE Huiscode = $huiscode"
The query works correct and I get all the fields from both
tables. Anyway, in Flash I can only read out the information in the
table 'Woninginformatie'.
I use these kind of codes to read from the database:
eigendomssituatie =
gegevens.childNodes[0].childNodes[24].firstChild.nodeValue;
How can I also read data from the second table?

you can't read data from the 2nd table because because you
have a table issue, php issue or you can read data from the table
but are having trouble getting those data into flash? are you using
echo to return data to flash?

Similar Messages

  • How to read data from table GLFUNCA quickly?

    Hello everybody!
         Recently,my colleague has programmed a report about reading data from table GLFUNCA,and its speed is very slowly and exceeded limited time sometimes .
    Excuse me?
    how to use INDEX and VIEW TO accelerate it?
    pls supply my helpful solutions.
    Thanks!
    Best wishes!

    Hi,
    Please check your SELECT statement to find out what are the columns being used in the WHERE clause. Then go to SE11 and find out if there are indexes on those columns.
    If Indexes don't exist then you can create indexes on those columns, which might improve the performance.
    However, there might be other areas also, where the performance can be improved. Do a run time analysis / trace and figure which part of the program is taking maximum time.
    Regards,
    Ravi
    Note : Please mark the helpful answers

  • Read data from Table at XI during Mapping

    Hi experts
    How we can pick data from one database table during Mapping, the table is at XI system.
    when we are picking data from table at R/3, we are using RFC Function Module/ BPM, can we pick data from XI database table during mapping ?
    what will be the steps to pick it ?
    Please Help.
    Regards,
    Study SAP

    hi Study Sap
    You may use RFC lookup
    kindly follow these links for RFC lookup
    RFC Lookup.
    Look ups.
    /people/francesco.bersani/blog/2007/03/05/data-lookup-optimized
    /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
    /people/morten.wittrock/blog/2006/03/30/wrapping-your-mapping-lookup-api-code-in-easy-to-use-java-classes
    /people/bhavesh.kantilal/blog/2006/07/25/triggering-xi-alerts-from-a-user-defined-function
    Use this crazy piece for any RFC Mapping Lookups!
    /people/sravya.talanki2/blog/2005/12/21/use-this-crazy-piece-for-any-rfc-mapping-lookups
    SAP XI Lookup API
    /people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer
    Lookup’s in XI made simpler
    /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
    regards
    Sandeep Sharma
    PS if helpful kindly reward points

  • Reading data from Table type from Badi /sapapo/curto_create

    Hi,
    I have been trying to read data from badi /sapapo/curto_create . In this badi there is method CS_PPDS_RTO.
    which has nested structure upto 8 level. I have been trying to read data but i am not suceesfull in reading data from the stsructre
    which is present at lowest level.
    The  nested structure of the BEFORE_SAVE is following way.
    BEFORE_SAVE-CS_PPDS_RTO-HIRARCHY-ADD_APPLICTN_DATA-MODES-BODY-CAP_REQS-RESUID.
    I have to read the value of reusid bt i am not sure whow to read this value can you please help me by giving some Bapi or method
    to read the value of Reusid .
    Thanks

    Hi!
    DATA: lv_resuid TYPE resuid.
    LOOP AT CS_PPDS_RTO-HIRARCHY-ADD_APPLICTN_DATA-MODES-BODY-CAP_REQS-RESUID
    INTO lv_resuid.
    ENDLOOP. 

  • Reading data from table control in an internal table

    Hello All,
    I want to read the data entered in the screen in an internal table,screen has header segment fields of an idoc and two item segment fields with multiple occurance in form of  two table control,have to read both the table control and have to pass it to idoc inbound function based on postion(posnr) of the order. can anyone provide me with the sample code for the same .
    Thanks and Regards,
    Gunjan

    hi gunjan
    refer to the folllowing code. it will work for u
    Creation of an IDoc generation program
    The following code extract contains everything needed to generate an IDoc from data contained in a table.
    FORM F_110_SEND_IDOC.
    CONSTANTS:
      C_MESTYP TYPE EDIDC-MESTYP VALUE 'ZVISTAPM',"message type
      C_DOCTYP TYPE EDIDC-IDOCTP VALUE 'ZVISTAPM01',"idoc type
      C_SEGNAM TYPE EDIDD-SEGNAM VALUE 'Z1VISTAPM'."segment name
    DATA:
      I_ZVISTA_PM TYPE ZVISTA_PM_T OCCURS 6000,
      I_EDIDC TYPE EDIDC OCCURS 0,
      I_EDIDD TYPE EDIDD OCCURS 0,
      WA_ZVISTA_PM TYPE ZVISTA_PM_T,
      WA_EDIDC TYPE EDIDC,
      WA_EDIDD TYPE EDIDD,
      WA_Z1VISTAPM TYPE Z1VISTAPM,
      V_OCCMAX TYPE IDOCSYN-OCCMAX,
      V_NBSEG TYPE I.
    CLEAR WA_ZVISTA_PM.
    CLEAR WA_EDIDC.
    * Save the message type and the basic IDoc type
    * in the control segment
    MOVE C_MESTYP TO WA_EDIDC-MESTYP.
    MOVE C_DOCTYP TO WA_EDIDC-IDOCTP.
    * Retrieve the maximum number of segments in the basic IDoc
    * type
    SELECT MIN( OCCMAX )
      FROM IDOCSYN
      INTO V_OCCMAX
      WHERE IDOCTYP EQ C_DOCTYP AND SEGTYP EQ C_SEGNAM.
    * Save the whole ZVISTA_PM_T table content
    * in the I_ZVISTA_PM internal table.
    SELECT *
    FROM ZVISTA_PM_T
    INTO CORRESPONDING FIELDS OF TABLE I_ZVISTA_PM.
    * Create a data segment for each line of I_ZVISTA_PM
    LOOP AT I_ZVISTA_PM INTO WA_ZVISTA_PM.
      MOVE-CORRESPONDING WA_ZVISTA_PM TO WA_Z1VISTAPM.
      CLEAR WA_EDIDD.
      MOVE C_SEGNAM TO WA_EDIDD-SEGNAM.
      MOVE WA_Z1VISTAPM TO WA_EDIDD-SDATA.
      APPEND WA_EDIDD TO I_EDIDD.
      CLEAR WA_ZVISTA_PM.
      CLEAR WA_Z1VISTAPM.
    ENDLOOP.
    * Count the number of data segments
    DESCRIBE TABLE I_EDIDD LINES V_NBSEG.
    * If the number of data segments exceeds the maximum
    * allowed number, then edit a message in the spool,
    * then display an error message (quit the program)
    IF V_NBSEG GT V_OCCMAX.
      WRITE:/ TEXT-003, V_OCCMAX.
      MESSAGE E751.
    ENDIF.
    * Call the IDoc creation function
    CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE'
      EXPORTING
        MASTER_IDOC_CONTROL = WA_EDIDC
      TABLES
        COMMUNICATION_IDOC_CONTROL = I_EDIDC
        MASTER_IDOC_DATA = I_EDIDD
      EXCEPTIONS
        ERROR_IN_IDOC_CONTROL = 1
        ERROR_WRITING_IDOC_STATUS = 2
        ERROR_IN_IDOC_DATA = 3
        SENDING_LOGICAL_SYSTEM_UNKNOWN = 4
        OTHERS = 5.
    * If there was an error, display a message (quit the
    * program)
    IF SY-SUBRC NE 0.
      MESSAGE E746.
    ENDIF.
    ENDFORM.
    regards
    ravish
    <b>plz dont forget to reward points if useful</b>

  • Reading data from tables SXMSCLUP and SXMSCLUR

    Hello!
    In BI 7.0, there is no Delta Q for loading XML data. We are using a functional module in ABAP proxy, to push data from XI directly into BI PSA.So in the PSA, we get the records which have successfully reached.
    But for the failed records, we can see them in XML format in the tcode :SXMB_MONI.
    Now, my requirement is to extract the primary key of the data in the payload and create a csv file, saying that this records have failed.
    For that, i found that the data is stored in tables SXMSCLUP and SXMSCLUR, but in Hexadecimal format, i.e. kind of encrypted.
    I was wondering how to extract and read this data... that too, only 1 field in the data?
    In SDN there is a post which gives some Java classes, but i was hoping if there is an easier way out, maybe in ABAP??
    Any help in this would be appreciated.

    HI,
    Please try to see the below links
    /people/kamaljeet.kharbanda/blog/2005/09/16/xi-bi-integration
    /people/sergio.locatelli2/blog/2006/10/15/integration-sap-bi-and-xi-a-critical-point-of-view
    /people/marian.harris/blog/2005/06/23/need-to-get-a-sap-netweaver-component-implemented-quickly-try-sap-best-practices
    /people/sravya.talanki2/blog/2006/12/08/business-case-integration-need-of-bi-and-sap-xi-episode1
    /people/ginger.gatling/blog/2005/12/02/innovative-ways-to-use-alerts
    /people/community.user/blog/2007/01/08/access-netweaver-how-to-guides-from-one-consolidated-page
    /people/sravya.talanki2/blog/2006/12/14/business-case-integration-need-of-bi-and-sap-xi-episode2
    See the michal's reply and other reply also how to see the blob fields data.
    In Which Database Table the Messages are Stored in XI
    Regards
    Chilla

  • Reading data from table on screen .

    Hi
    i have a 'Z' screen which contains table - i want to read the content of the table from screen beacuse some times the user fill the table fileds but doesnt press the ENTER key and the data he filled in the table on screen doesnt enter the internal table, is there a way to read table contant from screen ?
    thanks
    Elad

    hi eladush,
    below is the master table contol program, hope its help you
    <removed by moderator>
    Moderator message: please post only relevant code parts, your posts must contain less than 5000 characters to preserve formatting.
    Edited by: Thomas Zloch on May 31, 2011 9:41 AM

  • Read data from table  type

    Hi everyone,
    I am calling a FM BBP_READ_ATTRIBUTES, it exports a line ET_ATTR(Table type) , now in this there is a field  VLIST which is an Internal table . and It has entry in it.
    Now I require to get this internal table.
    I declare in data statement var type tabletype.
    How exactly can i retreive this internal table .
    when i double clicl on ET_ATTR , it a tabl type but i calls a line type BBPS_ATTR which is like a structure and there is a feild like VLIST which is an internal table .
    Please help me to retrieve the data in this internal table.
    Reagrds,
    Raj

    Plz try the following..
    FIELD_SYMBOLS: <fs_vlist_tab> type VLIST.  " plz give the table type of VLIST
    DATA: WA_VLIST TYPE LINE OF VLIST
    READ TABLE ET_ATTR INDEX 1. " as you saying it has only one line, read only index 1. o.w. you can read the other lines too as per you requirement.
    ASSIGN ET_ATTR-VLIST TO <FS_VLIST_TAB>.
    READ TABLE <FS_VLIST_TAB> into WA_VLIST index 1.
    * and process your WA_VLIST as requried..
    Regards
    Prax

  • Reading data from table and print the value based condition

    hi
    my table like this
    slno  |  value1 |  value2  |
    1            0            5
    2            5           10
    3           10          15
    assume n= 8 ( where  n is user define)
    i want output like
    number 8 between value  5 and  10
    plz help

    Hi,
    Try:
    Select 'Number '+ U_Value3 + ' Between '+ U_Value1'and 'U_Value2
    From [dbo\].[@UDT T0\]
    Where T0.U_Value3=[%0\] and T0.U_Value3 BETWEEN U_Value1 AND U_Value2
    Thanks,
    Gordon

  • Reading data from table control

    Hi,
    Intially I have a table control and in that I am entering deliveries(manually), how to read them into internal table..plz advise
    regards.

    Hi,
    Use the FM DYNP_VALUES_READ
    Regards,
    Vikranth

  • Reading data from table dased on time.......

    Hello,
    I am having small issue..... i am having a set of recors in internal table. I am reading the record based on time.
    While reading my time and the time recors stored in table having slight difference.
    Now how to pull approprate records based on time saying plus or mines tolerance....
    It is urgen.... can any one help out in this.........

    Hi Feroz,
    Compare the time with Comparison operator and retreived the records matching Hours and Minutes.
    Thanks

  • Reading data from Lookup [qualified flat] (multi-valued) table

    I have a main table u2019ABCu2019 which has a Lookup [qualified flat] (multi-valued) field u2018XYZu2019 along with some other text fields. I am able to read data from table ABC including lookup field data, but I do not see the relation
    For Ex: If for a contract in table u2018ABCu2019, there are multiple line items in look up table. I have a contract with 2 line items in u2018ABCu2019, but 4 line items in look up table (2 records each for each line item with item number).  Now, when I read the data from table u2018ABCu2019 for that contract, I get all the 4 lines in result table; but item no is blank even though there is item no field in table u2018XYZu2019.
    Below is the sample code:
    wa_query-parameter_code = Contract ID Field.
      wa_query-operator = 'EQ'.
      wa_query-dimension_type = 1. "mdmif_search_dim_field.
      wa_query-constraint_type =8. " mdmif_search_constr_text.
      wa_string =  Contract Number.
      GET REFERENCE OF wa_string INTO wa_query-value_low.
      APPEND wa_query TO lt_query.
      CLEAR wa_query.
    CALL METHOD lcl_api->mo_core_service->query
            EXPORTING
              iv_object_type_code      = 'ABCu2019
            it_query                 = lt_query
            IMPORTING
              et_result_set            = lt_result_set_key.
    LOOP AT lt_result_set_key INTO ls_result_set_key.
        lt_keys = ls_result_set_key-record_ids.
      ENDLOOP.
    Contract Price for lower bound
      ls_result_set_definition-field_name = XYZ'.
      APPEND ls_result_set_definition TO lt_result_set_definition.
    CALL METHOD lcl_api->mo_core_service->retrieve
        EXPORTING
          iv_object_type_code      = 'ABCu2019
          it_result_set_definition = lt_result_set_definition
          it_keys                  = lt_keys
        IMPORTING
          et_result_set            = lt_result_set.
    In table lt_result_set, I see 4 records, but I do not know which 2 records belong to item 1 of the contract and other 2 records for item2.
    Can anyone help me in resolving this. Any kind of help is appreciated.
    Thanks,
    Shekar

    i do not quite understand ur problem statement ..
    but if u have items in the main table to which QLUT entries are linked ..
    then when you read the main table record (u get LinkIds at the record level) that gives u the relation to the Qlookup values
    i mean for ur case - u would get only 2 values in the QLUT values for the "selected" record in the main table
    am not sure if you say correctly - that you get "unlinked" values in the QLUts
    so u should 2 values in lt_result_set and not 4  .. see if u are using the LinkIds properly
    hth
    thanks
    -Adrivit

  • Help Required -- Can we use SQL Query to READ data from SAP MDM Tables

    Hi All,
    Please help.........
    Can we use SQL Query to READ(No Creation/Updation/Deletion  just Read) Data from SAP MDM tables directly, without using MDM Syndicator.
    Or direct SQL access to SAP MDM tables is not possible. Only through MDM Syndicator can we export data.
    Thanks in Advance
    Regards

    All the tables you create in Repository comes under A2i_CM_Tables in Database named as your repository name. So the tables names are fields of table A2i_CM_Tables. Now i tried it but cant make it.
    Now, I dont think its possible to extract all fields in tables and there values using select query. May be pure sql guy can do that or not.
    But there is no relation of data extraction and syndicator. Data is viewed in Data Manager. and you can also store data in a file from DM also.
    BR,
    Alok

  • How to read data from a CLUSTER STRUCTURE not cluster table.

    Hi,
    how to read data from a CLUSTER STRUCTURE not cluster table.
    regards,
    Usha.

    Hello,
    A structre doesnt contain data.. so u cannot read from it. U need to find out table of that structure and read data from it.
    Regards,
    Mansi.

  • Reading Data from a Table With an Expert

    Hi all - I'm trying to write an Expert in OWB that would read data from a table and create a new table based on that information. I have the table creation part down, but how can I read data from a table with an Expert? From what I've read, Experts only deal with metadata, and there is no mechanism in Experts to actually read data in the tables. Does OraTcl work in Experts? Has anyone ever came across this problem, and if so, how did you solve it? Thanks in advance for your time! - Don

    Hi Don
    Can also use Java and JDBC from within Tcl, see the routines in this file below, take modify or whatever;
    http://blogs.oracle.com/warehousebuilder/ombora.tcl
    source <dir>\ombora.tcl
    set g_user scott
    set g_upwd zzzzzz
    set g_hostname localhost
    set g_port 1521
    set g_srvname ora111
    oraconnect $g_user $g_upwd $g_hostname:$g_port:$g_srvname
    oraselect "select * from emp" ""
    As well as dumping the results to stdout (you probably want to comment that part out and change any other part you don't like), g_res is a ResultSet object you can use to do whatever.
    Cheers
    David

  • Reading Data from a SQL table to a Logical file on R/3 appl. Server

    Hi All,
    We would like to create Master Data using LSMW (direct Input) with source files from R/3 Application Server.
    I have created files in the'/ tmp/' directory however I do not know how to read data from the SQL table and insert it into the logical file on the R/3 application server.
    I am new to ABAP , please let me know the steps to be done to acheive this .
    Regards
    - Ajay

    Hi,
    You can find lot of information about Datasets in SCN just SEARCH once.
    You can check the code snippet for understanding
    DATA:
    BEGIN OF fs,
      carrid TYPE s_carr_id,
      connid TYPE s_conn_id,
    END OF fs.
    DATA:
      itab    LIKE
              TABLE OF fs,
      w_file  TYPE char255 VALUE 'FILE',
      w_file2 TYPE char255 VALUE 'FILE2'.
    SELECT carrid connid FROM spfli INTO TABLE itab.
    OPEN DATASET w_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT. "Opening a file in Application
                                                            " Server to write data
    LOOP AT itab INTO fs.
      TRANSFER fs TO w_file. "" Writing the data into the Application server file
    ENDLOOP.
    CLOSE DATASET w_file.
    OPEN DATASET w_file FOR INPUT IN TEXT MODE ENCODING DEFAULT. "Opening a file in Application
                                                          " server to read data
    FREE itab.
    DO.
      READ DATASET w_file INTO fs.
      IF sy-subrc EQ 0.
        APPEND fs TO itab.
        OPEN DATASET w_file2 FOR APPENDING IN TEXT MODE ENCODING DEFAULT. "Appending more data to the file in the
                                                           " application server
        TRANSFER fs TO w_file2.
        CLOSE DATASET w_file2.
      ELSE.
        EXIT.
      ENDIF.
    ENDDO.
    Regards
    Sarves

Maybe you are looking for