Table to cluster conversion

I'm trying to convert a table containing the scan results from an Agilent 34980A to a cluster containing two other level of embedded clusters (as the switch_init cluster in the attached vi). The problem is if I use an array of cluster it would not be possible to label each cluster with the signal name (table first column). Also I'm not sure but I think clusters can't be labelled dynamically.
The switch_init cluster is the format I would like to obtain.
note: some unused code is present in the diagram as remnant of some trials.
Ben64
Attachments:
Scan Result to XML.vi ‏21 KB

richjoh wrote:
You use the "XML__JKI easyXML.vi" to create the schema, then that VI spits out clutter you clean up. You could try parsing the table into XML yourself... Who knows what in the JKI easyXML VI does? You may wind up with less code that does exactly what you layout.
> You could try parsing the table into XML yourself.
Yes, you can do that, but it's hard.
> Who knows what in the JKI easyXML VI does?
I do -- I helped write EasyXML.  Basically, it traverses over the LabVIEW data and parses or generates XML based on that LabVIEW datatype.  It essentially lets you generate or parse any XML data by simply creating a cluster with a structure that's similar to the XML data structure.
Cheers,
-Jim

Similar Messages

  • How can I get data in flat file from Pool table and cluster table ?

    Hi,
    I am working in one Achiving project. My requirement is to get data into flat file from Cluster table and pool table.
    Is there any tool avilable to download data into flat file from pool table and cluster table ?
    if table name given in the selection screen then data will be downloaded into flat file.
    waiting for quick response.
    Best Regards,
    Bansidhar

    Data cannot be retrived directly form the cluster table
    as the Cluster results are stored in Cluster Key say for example PCLkey
    and form that Key we need to fetch the data
    these clustes are not the part of PNP or PNPCE tables
    for ur info kindly check

  • How to Pull Data From CRT table PCL2 Cluster

    Hi,
    I want to show a Report, below is the Fields in the Report 
    <b>Descripton</b>----
    <b>Table Name</b>
    Total Current Month Salary----
    CRT table PCL2 cluster
    monthly member contribution-----CRT table PCL2 cluster
    Net difference in Pay----
    CRT table PCL2 cluster
    How to get the Data from the CRT table PCL2 cluster in BW
    is there any procedure to get the payroll data in BW?
    I think CRT table is a internal Table.
    any good idea's will be appricated...
    Thanks
    Priya

    Hi,
    check whether is it populating when u call
    Function Module  - PYX X_READ_PAYROLL_RESULT .
    If not Use this Marcro.
    RP-IMP-C2-IN.
    Call this macro and check EPF[ ].This marco will populate both RT and EPF.
    Check transaction - PC00_M40_ EPF
    Cheers,
    Manoj.

  • Inforation on Pool tables and cluster tables required.

    I want to know about the pool tables and cluster tables like how to create them and how to look the tables associated with the given tables. Like for the table BSEG we have other tables linked BSID etc. I'm new to this concept please guide me.

    <b>Pooled Table:</b>
    A pooled table in R/3 has a many-to-one relationship with a table in the database (see Figures 3.1 and 3.2). For one table in the database, there are many tables in the R/3 Data Dictionary. The table in the database has a different name than the tables in the DDIC, it has a different number of fields, and the fields have different names as well. Pooled tables are an SAP proprietary construct.
    When you look at a pooled table in R/3, you see a description of a table. However, in the database, it is stored along with other pooled tables in a single table called a table pool. A table pool is a database table with a special structure that enables the data of many R/3 tables to be stored within it. It can only hold pooled tables.
    R/3 uses table pools to hold a large number (tens to thousands) of very small tables (about 10 to 100 rows each). Table pools reduce the amount of database resources needed when many small tables have to be open at the same time. SAP uses them for system data. You might create a table pool if you need to create hundreds of small tables that each hold only a few rows of data. To implement these small tables as pooled tables, you first create the definition of a table pool in R/3 to hold them all. When activated, an associated single table (the table pool) will be created in the database. You can then define pooled tables within R/3 and assign them all to your table pool.
    Pooled tables are primarily used by SAP to hold customizing data.
    <b>Cluster Table:</b>
    A cluster table is similar to a pooled table. It has a many-to-one relationship with a table in the database. Many cluster tables are stored in a single table in the database called a table cluster.
    A table cluster is similar to a table pool. It holds many tables within it. The tables it holds are all cluster tables.
    Like pooled tables, cluster tables are another proprietary SAP construct. They are used to hold data from a few (approximately 2 to 10) very large tables. They would be used when these tables have a part of their primary keys in common, and if the data in these tables are all accessed simultaneously.
    Table clusters contain fewer tables than table pools and, unlike table pools, the primary key of each table within the table cluster begins with the same field or fields. Rows from the cluster tables are combined into a single row in the table cluster. The rows are combined based on the part of the primary key they have in common. Thus, when a row is read from any one of the tables in the cluster, all related rows in all cluster tables are also retrieved, but only a single I/O is needed.
    A cluster is advantageous in the case where data is accessed from multiple tables simultaneously and those tables have at least one of their primary key fields in common. Cluster tables reduce the number of database reads and thereby improve performance.
    Restrictions on Pooled and Cluster Tables
    1. Pooled and cluster tables are usually used only by SAP and not used by customers, probably because of the proprietary format of these tables within the database and because of technical restrictions placed upon their use within ABAP/4 programs. On a pooled or cluster table:
    2. Secondary indexes cannot be created.
    3. You cannot use the ABAP/4 constructs select distinct or group by.
    4.You cannot use native SQL.
    5.You cannot specify field names after the order by clause. order by primary key is the only permitted variation.
    For creation of pooled /cluster table, have  a look at below link.
    http://help.sap.com/saphelp_erp2004/helpdata/en/81/415d363640933fe10000009b38f839/frameset.htm
    For creation of table pool /cluster, have  a look at below link.
    http://help.sap.com/saphelp_erp2004/helpdata/en/81/415d363640933fe10000009b38f839/frameset.htm
    Have a look at below link.
    http://www.sap-img.com/abap/the-different-types-of-sap-tables.htm
    Best Regards,
    Vibha
    *Please mark all the helpful answers

  • Change log in HR (Table PCL4 Cluster LA)

    Hi @ all,
    when infotype logging is activated changes made in infotypes are logged into table PCL4 cluster LA.
    We have the following problem:
    HR masterdata is stored into our system from an external system via ALE. But the problem is that no change logs are written. But we absolutely need this information!!!
    Now I have coded a RFC function module which reads the log data from the external system. This also works fine. But how do I have to store the data into <b>our</b> PCL4(LA)???

    nope - I didn't try this because I don't know about the data which is needed to store the change log correct.
    Other question: I've found the function module "HR_INFOTYPE_LOG_CREATE" which seems to do what I want. But the problem is that there is no documentation available. The FM has four table parameters - does anyone how how to fill them? Has anyone used this FM? It is not used within standard programs - the "where used" function does not report any hits.
    Thx in advance

  • How to find which transparent tables compose cluster tableuFF1AKONV

    How to find which transparent tables compose cluster table&#65306;KONV

    Hi,
    Welcome to SDN.
    Try doing this ....
    1). Goto se12 and display the table BSEG
    2). Click on the Delivery & Maintenanace tab
    3). Double click on the Pool/Cluster field
    4). On the next screen do a where used list
    You will find all the related tables.
    Regards,
    Amit
    Reward all helpful replies.

  • How to convert Internal Table to Cluster Table ?

    How to convert Internal Table to Cluster Table ?

    Use  :
    EXPORT itab TO DATABASE dbtab(ar) ID key.
    <i>EXPORT obj1 ... objn TO DATABASE dbtab(ar) ID key.
    Additions:
    1. ... = f (for each field you want to export)
    2. ... FROM f (for each field you want to export)
    3. ... CLIENT g before ID key )
    4. ... USING form
    5. ... FROM wa (as last addition or after dbtab(ar))
    In an ABAP Objects context, a more severe syntax check is performed that in other ABAP areas. See Implicit field names not allowed with clusters and Table work areas not allowed.
    Effect
    Stores a data cluster in database table dbtab. The specified objects obj1 ... objn (fields, structures, or tables) are stored as a single cluster in the database table dbtab.
    The specified database table dbtab must have a standard structure.
    The database table dbtab is divided into various logically-related sections (ar, two-character name).
    You can export a collection of data objects (a data cluster) to a part of the database using a key (field key).
    You can import individual data objects from this collection using the IMPORT statement.
    Notes
    In classes, you must always assign explicit names to the data objects you want to export, that is, you must use either addition 1 or addition 2.
    In classes, you must always specify the work area explicitly, that is, addition 5 is obligatory.
    The table dbtab that appears after DATABAE must be declared under TABLES (except in addition 5).
    You cannot export the header lines of internal tables. If you specify the name of an internal table with header line, the system always exports the body of the table.
    You cannot export data, object, or interface references.
    The data is stored in the database, and is consequently not actually stored until a database commit occurs (see LUW). Until this point, you can undo all of your changes using a database rollback (see Programming Transactions).
    Example
    Exporting two fields and an internal table to the database table INDX:
    TABLES INDX.
    TYPES: BEGIN OF ITAB3_TYPE,
              CONT(4),
           END OF ITAB3_TYPE.
    DATA: INDXKEY LIKE INDX-SRTFD VALUE 'KEYVALUE',
          F1(4), F2 TYPE P,
          ITAB3 TYPE STANDARD TABLE OF ITAB3_TYPE WITH NON-UNIQUE
                     DEFAULT KEY INITIAL SIZE 2,
          WA_INDX TYPE INDX.
    Fill the data fields before CLUSTR
    before the actual export
    INDX-AEDAT = SY-DATUM.
    INDX-USERA = SY-UNAME.
    Export der Daten.
    EXPORT F1    FROM F1
           F2    FROM F2
           ITAB3 FROM ITAB3
           TO DATABASE INDX(ST)  FROM WA_INDX ID INDXKEY.
    </i>
    Regards

  • Generic extractors on pool table and Cluster tables

    Good Afternoon all,
    Can we create generic extractors on Cluster or pool Table. If yes Let me know how?
    I am trying to create a Generic Extractor on BSEC Table but it is not allowing me to do this. It throws error that"Extraction from pool tables and cluster tables is not permitted"
    Kindly guide me on this
    Thanks,
    Vaishali.

    Hi
    you cannot do generic extraction directly on pooled or cluster tables.
    You can create a function module, then you can create a Generic Data source based on this..
    Hope it helps,
    Thanks,
    Teja
    Edited by: Teja badugu on Apr 15, 2008 12:24 PM

  • Issue with single table hash cluster

    I'm still learning lots about html db so please do bear with me...
    I have a table that is part of a single table hash cluster. The cluster and table are created like so:
    create cluster webmon.owm_system
      db_id number(3),
      env_id number(3)
    size 171
    hashkeys 1009
    single table
    pctfree 2
    pctused 96;
    create table webmon.owm_system
      tier_id number(3) not null,
      host_id number(3) not null,
      port number(4) not null,
      sid varchar2(8) not null,
      admin_user varchar2(32) not null,
      admin_auth varchar2(48) not null,
      primary_dba_id number(3) not null,
      secondary_dba_id number(3) not null,
      primary_bac_id number(3) not null,
      secondary_bac_id number(3) not null,
      version_id number(3) not null,
      log_mode_id number(3) not null,
      db_id number(3) not null,
      env_id number(3) not null,
      admin_conn varchar2(32) null,
      constraint owm_system_pk primary key (db_id, env_id)
    cluster webmon.owm_system
      db_id,
      env_id
    );I have created a form (and report) to view and edit the data in the table. When I click the "Apply Changes" button on the form after editing data, I get an error. The SQL that is sent to the database is incorrect.
    Here is the (reformatted) incorrect SQL that is sent (captured in a database trace file):
    update
      "WEBMON"."OWM_SYSTEM"
    set
      "SECONDARY_DBA_ID" = :DML_BV0001,
      "DB_ID" = :DML_BV0002,
      "DB_ID" = :DML_BV0003,  /* This should not be here */
      "ENV_ID" = :DML_BV0004,
      "ENV_ID" = :DML_BV0005,  /* This should not be here */
      "HOST_ID" = :DML_BV0006,
      "PORT" = :DML_BV0007,
      "SID" = replace(:DML_BV0008,'%null%',null),
      "ADMIN_USER" = replace(:DML_BV0009,'%null%',null),
      "ADMIN_AUTH" = replace(:DML_BV0010,'%null%',null),
      "ADMIN_CONN" = replace(:DML_BV0011,'%null%',null),
      "VERSION_ID" = :DML_BV0012,
      "LOG_MODE_ID" = :DML_BV0013,
      "TIER_ID" = :DML_BV0014,
      "PRIMARY_DBA_ID" = :DML_BV0015,
      "PRIMARY_BAC_ID" = :DML_BV0016,
      "SECONDARY_BAC_ID" = :DML_BV0017
    where
      "DB_ID" = :p_rowid
    and
      "ENV_ID" = :p_rowid2Why are the DB_ID and ENV_ID columns in the statement twice? That is the error.
    Now, if I create the table as just a basic, non-clustered table like this:
    create table webmon.owm_system
      tier_id number(3) not null,
      host_id number(3) not null,
      port number(4) not null,
      sid varchar2(8) not null,
      admin_user varchar2(32) not null,
      admin_auth varchar2(48) not null,
      primary_dba_id number(3) not null,
      secondary_dba_id number(3) not null,
      primary_bac_id number(3) not null,
      secondary_bac_id number(3) not null,
      version_id number(3) not null,
      log_mode_id number(3) not null,
      db_id number(3) not null,
      env_id number(3) not null,
      admin_conn varchar2(32) null,
      constraint owm_system_pk primary key (db_id, env_id)
    );Everything works as expected. The (correct) SQL sent in this case is:
    update
      "WEBMON"."OWM_SYSTEM"
    set
      "SECONDARY_DBA_ID" = :DML_BV0001,
      "DB_ID" = :DML_BV0002,
      "ENV_ID" = :DML_BV0003,
      "HOST_ID" = :DML_BV0004,
      "PORT" = :DML_BV0005,
      "SID" = replace(:DML_BV0006,'%null%',null),
      "ADMIN_USER" = replace(:DML_BV0007,'%null%',null),
      "ADMIN_AUTH" = replace(:DML_BV0008,'%null%',null),
      "ADMIN_CONN" = replace(:DML_BV0009,'%null%',null),
      "VERSION_ID" = :DML_BV0010,
      "LOG_MODE_ID" = :DML_BV0011,
      "TIER_ID" = :DML_BV0012,
      "PRIMARY_DBA_ID" = :DML_BV0013,
      "PRIMARY_BAC_ID" = :DML_BV0014,
      "SECONDARY_BAC_ID" = :DML_BV0015
    where
      "DB_ID" = :p_rowid
    and
      "ENV_ID" = :p_rowid2The "real" system in question has a fairly large number of single table hash clusters. I'm leary of continuing my explorations if there is a problem with using single table hash clusters. On the other hand, I'm quite open to the idea that I've done something wrong!
    Any pointers? Is there anyway to change the SQL that is being generated when using the single table hash cluster? More information needed?
    Thanks,
    Mark

    Mark,
    Can't help with the hash table problem but as a method of dealing with it you could just make a procedure to manage the table.
    Pass the value of :REQUEST (matches value of button) in and you'll be able to modify the tables.
    procedure manage_owm_system (p_request varchar2,db_id number ...)is
    begin
    case p_request
    when 'CREATE' then
    insert
    into ....
    when 'SAVE' then
    update .....
    else
    raise_application_error(-20001,'Unkown request');
    end case;
    end;
    put that in a plsql reqion after submit
    begin
    manage_owm_system(p_request=>:REQUEST,p_dbid=>:P1_DBID .......);
    end;
    You need to create something similar , with out parameters, to populate the items when the pags loads.
    Chris

  • Regarding table pool/cluster

    Hi,
    can you please discribe me the the process by which we can find
    how many pool/cluster table is attached to perticuler table pool/cluster.
    thanks.

    hi jony ,
    try this
    DATA : BEGIN OF IT_TABLES OCCURS 0,
                  TABNAME LIKE DD02L-TABNAME,
                END OF IT_TABLES.
         SELECT  TABNAME
                        FROM  DD02L
                        INTO IT_TABLEs
                        WHERE SQLTAB EQ  <CLUSTER/POOL NAME>.
      Eg :
         SELECT  TABNAME
                        FROM  DD02L
                        INTO IT_TABLEs
                        WHERE SQLTAB EQ  'AABLG'.

  • Wrong text in ADRC and LFA1 table after Unicode conversion

    Hello,
    We are doing MDMP to Unicode on SAP 4.7 system.
    In post unicode activities,we had corrected the garbage characters in
    table ADRC
    by converting to target langauage ZH using SUMG t-code.
    Condition used for addind table ADRC in SUMG is LANGU ='1' and
    LANGU_CREA = 'EN'
    But after converting and saving the data,most of the records have
    incorrect character in word.
    and text field of search term/company name/city in table LFA1 are also
    wrong in correspond field in table ADRC.
    Thanks
    Harshavardhan

    Hi Harshavardhan,
    Assumption: You have Chinese entries in table ADRC with ADRC-LANGU_CREA = EN
    Now you have to distinguish two problems:
    1) Chinese texts are stored in ADRC fields, which are NOT used for search help texts (most of the fields - e.g. ADRC-NAME1):
    These texts can be handled in two ways:
    a) Change LANGU_CREA = EN to LANGU_CREA = ZH for these entries (e.g. where ADRC-COUNTRY = CN) before the Unicode conversion (by the way, I would not use ADRC-LANGU, since this is the communication language, which does not necessarily comply with the code page of the entry).
    This needs to be done in a similar way as shown in z-reports described in  SAP Note 634839 ( although this specific fool-the-system case is not covered there - you have to adapt those examples)
    b) Use SUMG to repair the entries using language ZH (as you already did)  
    My favourite would be a), as this can be done before the conversion (Note that SUMG ineeds to be executed during downtime !)
    2) Chinese texts are stored in ADRC fields, which are used for search help texts (e.g. ADRC-MC_NAME1):
    a) If these entries were inserted / changed with logon language ZH, then point 1) applies
    b) If users logged on with logon language EN and created the entries, then most of these texts are destroyed already in Non-Unicode system. Then there is no automatic repair possible (at least point 1 does not work). Here my statement from before is valid:
    Those entries need to be generated again - e.g. if you do a dummy change on the name.
    According to my knowledge, this is a manual effort (either before or after the conversion) - but maybe it can be automized ...
    Best regards,
    Nils Buerckel
    SAP AG

  • Skipped tables during UNICODE conversion

    Hello everybody.
    We are making a unicode conversion in a 701 Ehp4 over iSeries.
    The export has finished succesfully but we have detected that some tables have been skipped. In the Export_monitor.log there are some comments like this one:
    INFO: 2010-04-15 01:30:56 com.sap.inst.migmon.LoadTask processPackage
    Unloading of 'AGKO' export package from database will be skipped.
    Task file '/usr/sap/SAPinst/NW04S/EXP/AGKO.TSK' is empty and contains no tasks.
    Does anyone know why have these tables been skipped?
    Do we have to repeat all the process?
    Thank you in advanced.
    Best regards.
    Rubén Garcí

    Hello
    The problem was related with Inplace method
    Regards
    Ruben

  • General method to fetch data from transparent tables with cluster field

    Hi,
    I want to know is there any general method to fetch data from the transparent tables which have cluster type field. For
    example MDTC, STXL, PCL1.
    thanks

    Means using the IMPORT statement we can fetch data from any cluster field?
    Yes, basically you should use IMPORT/EXPORT statements for clusters.
    AR and MC are cluster ID (area identification), so called RELID.
    By definition cluster is a combination of table and such area i.e
    PCL2(RX) - international payroll resuts from table PCL2
    PCL2(B2) - time results
    Regards
    Marcin

  • Reading ZES table - B2 cluster

    Hello experts,
    How to read table ZES from B2 cluster.
    There is a function module used in standard program RPTBAL00, but that function module is not giving results for table ZES.
    Please help.
    Thanks,
    Ashish Gupta

    Hello,
    Use FM HR_TIME_RESULTS_GET.
    There are different tables. For ZES - Use GET_ZES.
    Also note:
    declare a internal table beofre using this FM.
    Data: begin of lt_tbuff occurs 0.
               include structure pcl1.
    data: sgart(2).
    data: end of lt_buff.
    Pass this empty table in get_tbuss (in tables section.)
    Thanks!!

  • How to create a cluster table and cluster view?

    Hi,
    Can anyone guide me in creation of cluster table in general and also creation of cluster view?

    Hi,
    check this links.
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21f0b7446011d189700000e8322d00/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/d0/999246b2aa11d1a5700000e82deaaa/content.htm
    Regard's
    SHAIK.

Maybe you are looking for

  • Error while running Automatic payment

    Hello guys, We are running Automatic payment Programme Previously all the output generated properly, but from last some days its giving an error "+Device type HPLJIIID does not support page format DINA4"**+

  • Promise to pay v/s Installment plan

    Dear Experts, Can you tell me whats the main difference between a Promise to pay and an Installment plan. Specifically I am working with FI-CA (contract accounts). Enh.pac.II. Rgs,

  • Multi Language support in Oracle forms

    I have a form with 2 text fields 1 text field text can be entered in english another text field text will depend on the region the user has logged in from. lets say user has logged in from Japan, in 2nd text field he has to enter text in Japanese , i

  • HT5012 Why can't I create mail folders for my email?

    I want to create folder for my email I receive on my iPhone 5. You only give basic Trash.... Sent....Draft....Incoming

  • About Sales Order

    Sir, I have copied OR in to Z and raised a sales order,By going to the change mode i received a message that "*Sales document type OR is not defined".* why this was happned kindly suggest me thanking u supraja ballari