Creating Extract Dataset

hi,
Sample code for Creating Extract Dataset
thnks.

HI,
a program that lists the Vendors and their Accounting documents. Create extract dataset from KDF logical database. Loop through the dataset to create the required report. Don't list those vendors which has no documents
See the code:
report zfwr0001 no standard page heading.
tables: lfa1, bsik.
field-groups: header, item1, item2.
insert lfa1-lifnr bsik-belnr into header.
insert lfa1-land1 lfa1-name1 into item1.
insert bsik-belnr bsik-budat into item2.
start-of-selection.
get lfa1.
....extract item1.
get bsik.
....extract item2.
end-of-selection.
loop.
....at item1 with item2.
........skip.
........write:/ 'Vendor number:', 28 'Name:', 56 'City:'.
........write: 16 lfa1-lifnr, 33(20) lfa1-name1, 62(20) lfa1-ort01.
........write:/ 'Document no.', 15 'Date'.
....endat.
....at item2.
........write:/ bsik-belnr, 13 bsik-budat.
....endat.
endloop.
Cheers,
Chandra Sekhar.

Similar Messages

  • Use of Extract datasets

    Hello,
    Having seen various instances of the EXTRACT command in some legacy code I've got around to trying out this command but I can't get it to work properly. Here's some condensed test code I've put together:
    TABLES: VBAK, VBAP.
    FIELD-GROUPS: HEADER, TOP, DETAIL.
    INSERT: VBAK-VBELN VBAP-POSNR INTO HEADER,
                 VBAK-ERDAT VBAK-ERNAM VBAK-KUNNR INTO TOP,
                 VBAP-MATNR VBAP-CHARG VBAP-NETWR VBAP-WAERK INTO DETAIL.
    PARAMETERS P_VKORG TYPE VBAK-VKORG.
    SELECT *
      FROM VBAK
      WHERE VKORG = P_VKORG.
      EXTRACT TOP.
      SELECT *
        FROM VBAP
        WHERE VBELN = VBAK-VBELN.
            EXTRACT DETAIL.
        ENDSELECT.
    ENDSELECT.
    CLEAR: VBAK, VBAP.
    SORT.
    LOOP.
      WRITE:/ VBAK-VBELN, VBAP-POSNR, VBAK-ERDAT, VBAK-ERNAM, VBAK-KUNNR, VBAP-MATNR.
    ENDLOOP.
    OK, forget about the nested selects and other bad stuff, but how come I get the following output, and how should it be corrected:
    1360043260 000000 06.05.2008 CARTEM2 304393 <<< extraneous line that doesn't exist
    1360043260 000010 06.05.2008 CARTEM2 304393 34123376
    1360043260 000020 06.05.2008 CARTEM2 304393 50492316
    1360043260 000030 06.05.2008 CARTEM2 304393 50406766
    Use of extracts seems a bit wierd and there's not a lot out there to properly explain how to use them (apart from examples using a logical database).
    Thanks,
    Chris.

    Hi,
    When the first EXTRACT statement occurs in a program, the system creates the extract dataset and adds the first extract record to it. In each subsequent EXTRACT statement, the new extract record is added to the dataset.
    So instead of extract, modify the above code in two ways:
    1) Select-End Select, Comment out the extract statement and fetch in a work area if data is fetched in workarea append it to an internal table.
    2) Use Select into table, where in you can fetch all the data into an internal table and then use it for processing.
    For better performance, use the second method. Below is how you can change.
    SELECT *
      FROM VBAK
      INTO TABLE LT_VBAK
      WHERE VKORG = P_VKORG.
      SELECT *
        FROM VBAP
    INTO TABLE LT_VBAP
    FOR ALL ENTRIES IN LT_VBAK   
    WHERE VBELN = VBAK-VBELN.
    LOOP AT LT_VBAP INTO LS_VBAP.
    READ TABLE LT_VBAK WITH KEY VBELN = LS_VBAP-VBELN
    IF SY-SUBRC EQ 0.
      WRITE:/ LS_VBAK-VBELN, LS_VBAP-POSNR, LS_VBAK-ERDAT, LS_VBAK-ERNAM, LS_VBAK-KUNNR, LS_VBAP-MATNR.
    ENDIF.
    ENDLOOP.
    Hope this helps you
    Regards
    Shiva

  • Unable to Create a Dataset

    Hello!
    I am unable to create a dataset (type dataset) for a report in Visual Studio 2012. My Type dataset is a Stored Procedure. This same report with same Proc was developed successfully using a report builder. What do I do to make it work using SSRS?
    Thanks for your help.
    Zionlite

    Hi Zionlite,
    If we want to create a dataset for a report with Report Designer (or SQL Server Data Tools), we should first create a report server project where we will save our report definition (.rdl) file and any other resource files that we need for our report. Then
    we need to define a Data Source, which is connection information the report uses to access data from either a relational database, multidimensional database, or other resource. Only in this way can we create a Dataset with Stored Procedure.
    For more detail about create a report in Report Designer, we can refer to the following document:
    http://technet.microsoft.com/en-us/library/ms167305.aspx
    If there are any misunderstanding, please elaborate the issue for further investigation.
    Thanks,
    Katherine xiong
    Katherine Xiong
    TechNet Community Support

  • Creating/Extracting password protected zip files in AIR

    Hello,
    Does any one have any idea about creating/extracting password protected zip files in AIR. I am aware of FZip but it does not has the feature to password protect.
    Any help would be appreciated.
    Thank you
    VinSat

    Here's some you could try. The first two links are to zip utilities for OS X. I can't tell you if they'll do what you need, I just looked for zip programs that work in OS X.
    The third link is for the free Stuffit Expander. The last link is the results for "zip" at VersionTracker. You'll just have to try a bunch of them to find one that hopefully works.
    http://mac.softpedia.com/get/Utilities/MacZi.shtml
    http://www.maczipit.com/download.html
    http://my.smithmicro.com/mac/stuffit/expander.html
    http://www.versiontracker.com/php/qs.php?mode=basic&action=search&str=zip&srchAr ea=macosx&submit=Go

  • DART: creating extracts for company codes

    Hi,
    in light of an archiving project of financial documents, extracts needs to be build with DART. This has to  be done on the level of company code. We would like to have approval from the FI department for the DART extracts, but we have currently 22 different company codes. 
    Do you have experience with creating extracts for multinational companies, and what was your way of working for getting approval before archiving ? Were there any external tax auditors involved ?
    thanks for sharing,
    kind regards,
    Rolf

    Hi Rolf,
    For your project you have to make a table with document type's G/L accounts how long you want to let them them in your system. This form (table should be signed of by the bussines and  auditors.
    Note: When you archive data for FI you can archive the documents (BKPF/BSEG and line items. When you only archive the documents you can still see al the postings on line items. When the archive files are still available you can go direct from the line item to the achived document. Have a look to to the archive information system perhaps here you can store more information with linkes to the archive system?
    In some FI reports it is possible to get information out of SAP and the archive system.
    With the table make a proprosal by yourself and let sign that.
    Think about that a lot of information is stored on other places to, like controlling and PCA. Offen there is no reason to keep the FI documents the information is still somewhere els available
    Paul

  • Extract datasets?? Internal Tables??.. & Field Groups??..

    Hello Dear ABAP Ace's,
    Please let me know if what are differences between Extract datasets, Internal Tables, & Field Groups????? And what are the similarities?? Also let me know the uses of extract datasets & Field groups???
    Thanks in advance.
    Regards.
    Farooq

    Hi,
    There are two ways of processing large quantities of data in ABAP - either using internal tables or extract datasets.
    An internal table is a dynamic sequential dataset in which all records have the same structure and a key. They are part of the ABAP type concept. You can access individual records in an internal table using either the index or the key.
    Extracts are dynamic sequential datasets in which different lines can have different structures. Each ABAP program may currently only have a single extract dataset. You cannot access the individual records in an extract using key or index. Instead, you always process them using a loop.
    Check these links :
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db9ede35c111d1829f0000e829fbfe/frameset.htm
    http://www.geocities.com/SiliconValley/Grid/4858/sap/ABAPCode/Fieldgroups.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3ca6358411d1829f0000e829fbfe/frameset.htm
    Regards
    L Appana

  • Extract Dataset?

    Hi
    I have written the following sample code using extract dataset.But i am not getting my expected o/p.Kindly correct me where iam wrong..
    report z_test_extract.
    data: begin of wa1,
            eno type i,
            ename(20) type c,
            sal type i,
          end of wa1,
          begin of wa2,
            sno type i,
            sname(20) type c,
          end of wa2.
    field-groups: fs1,
                  fs2,
                  header.
    insert wa1 into fs1.
    insert wa2 into fs2.
    insert wa1-eno wa1-ename wa1-sal into header.
    wa1-eno = 1000.wa1-ename = 'abdul hakim'.wa1-sal = 10000.extract fs1.
    wa1-eno = 2000.wa1-ename = 'abdul aleem'.wa1-sal = 20000.extract fs1.
    wa1-eno = 3000.wa1-ename = 'sayyed'.wa1-sal = 30000.extract fs1.
    wa1-eno = 4000.wa1-ename = 'abdul'.wa1-sal = 40000.extract fs1.
    wa2-sno = 1000.wa2-sname = 'Mr.xyz'.extract fs2.
    wa2-sno = 2000.wa2-sname = 'Mr.zyx'.extract fs2.
    sort by wa1-sal.
    loop.
        at end of wa1-sal.
          write:/ 'Sum:',Sum(wa1-sal).
        endat.
        at last.
          write:/ 'Gross:',sum(wa1-sal).
        endat.
    endloop.
    <b>Current Output:</b>
    Sum:10000
    Sum:20000
    Sum:30000
    Sum:120000
    Gross:180000.
    <b>Expected Output:</b>
    Sum:10000
    Sum:20000
    Sum:30000
    Sum:40000
    Gross:100000.
    Thanks,
    Abdul Hakim

    Hi,
       The HEADER field symbol has wa1-eno,wa1-ename,
    wa1-sal as the fields. While storing the values for FS2, the values for the header is filled up with the last value of FS1.
    (i.e) wa1-eno = 4000.wa1-ename = 'abdul'.wa1-sal = 40000.
    so, it is finding the summation for three times.
    The only way is to fill up the header details , while filling up FS2. Otherwise put the statements which fill up details for FS2 before filling for FS1.
    I have modified the code as shown below
    data: begin of wa1,
    eno type i,
    ename(20) type c,
    sal type i,
    end of wa1,
    begin of wa2,
    sno type i,
    sname(20) type c,
    end of wa2.
    field-groups: fs1,
    fs2,
    header.
    insert wa1 into fs1.
    insert wa2 into fs2.
    insert wa1-eno wa1-ename wa1-sal into header.
    *Fill up before filling up FS1
    wa2-sno = 1000.wa2-sname = 'Mr.xyz'.extract fs2.
    wa2-sno = 2000.wa2-sname = 'Mr.zyx'.extract fs2.
    wa1-eno = 1000.wa1-ename = 'abdul hakim'.wa1-sal = 10000.extract fs1.
    wa1-eno = 2000.wa1-ename = 'abdul aleem'.wa1-sal = 20000.extract fs1.
    wa1-eno = 3000.wa1-ename = 'sayyed'.wa1-sal = 30000.extract fs1.
    wa1-eno = 4000.wa1-ename = 'abdul'.wa1-sal = 40000.extract fs1.
    sort by wa1-sal.
    loop.
    at end of wa1-sal.
    write:/ 'Sum:',Sum(wa1-sal).
    endat.
    at last.
    write:/ 'Gross:',sum(wa1-sal).
    endat.
    endloop.
    Regards,
    M.Saravanan

  • Report writer - create extracts automatically

    Hello together,
    as I heard it is possible to create extracts from reports automatically (e. g. over night on a daily basis). Unfortunately I don't find the way how to do this. I have looked up the t-code GRE0 etc., tried the SM37 but still I don't have a clue.
    Thanks a lot for any help.
    Best regards,
    hansi

    Please go through the enclosed document. This will give you step-by-step approach for Report painter:
    http://www.virtuosollc.com/PDF/Get_Reporter.pdf
    Check url
    http://help.sap.com/saphelp_47x200/helpdata/en/da/6ada3889432f48e10000000a114084/frameset.htm
    Check Report Painter Step-by-Step example under Tools->Report Painter / Report Writer->Report Painter->Creating a Report Painter Report.
    Just go through These Links to learn about report Painter.
    http://help.sap.com/saphelp_erp2005/helpdata/en/66/bc7d2543c211d182b30000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/5b/d22cee43c611d182b30000e829fbfe/frameset.htm
    Please see these steps , it`ll help you ...
    http://www.thespot4sap.com/Articles/Code_CostCentreReport.asp
    REGARDS
    VINOD

  • Problem in Extracting Dataset from Z FM for Zdatasource

    hi,
    I have created a Z fm of extracting data in Z datasource and i ahve written code for it.
    But everytime it returns me
    0 dataset extracted...
    i debugged it....and found  data in E_T_DTFIAR_1
    and till dat it is working fine ( wat i m assuming),
    after dat it is going to some other forms(like data transfer ) and some events.
    and finally throwing 0 data record found.
    here is the code..........can anyone tell me wat i m missing in this code...
    FUNCTION ZFIE*.
    ""Local interface:
    *"  IMPORTING
    *"     VALUE(I_DSOURCE) TYPE  SBIWA_S_INTERFACE-ISOURCE
    *"     VALUE(I_REQUNR) TYPE  SBIWA_S_INTERFACE-REQUNR OPTIONAL
    *"     VALUE(I_MAXSIZE) TYPE  SBIWA_S_INTERFACE-MAXSIZE OPTIONAL
    *"     VALUE(I_INITFLAG) TYPE  SBIWA_S_INTERFACE-INITFLAG OPTIONAL
    *"     VALUE(I_UPDMODE) TYPE  SBIWA_S_INTERFACE-UPDMODE OPTIONAL
    *"     VALUE(I_DATAPAKID) TYPE  SBIWA_S_INTERFACE-DATAPAKID OPTIONAL
    *"  TABLES
    *"      I_T_SELECT TYPE  SBIWA_T_SELECT OPTIONAL
    *"      I_T_FIELDS TYPE  SBIWA_T_FIELDS OPTIONAL
    *"      E_T_DTFIAR_1 STRUCTURE  ZFIE_ (extractor structure) OPTIONAL
    *"  EXCEPTIONS
    *"      NO_MORE_DATA
    *"      ERROR_PASSED_TO_MESS_HANDLER
      TABLES:  VBREVE, ZFIE_EXT_REV, VBAK, VBRP, VBPA, KNA1..
    *....... steering flags
      STATICS: L_CURSOR           TYPE CURSOR,
               L_OPEN_CURSOR_FLAG LIKE C_OFF,
               L_LAST_DATA_FLAG   LIKE C_OFF.
    *....... PACKAGE-SIZE for SELECT-Statement
      STATICS: L_PACKAGE_SIZE   LIKE SY-TABIX.
    first call - initialization  **********************
      IF NOT ( I_INITFLAG IS INITIAL ).
       IF NOT ( G_FLAG_INTERFACE_INITIALIZED IS INITIAL ).
    **.... Invalid second initialization call -> error exit
         IF 1 = 2. MESSAGE E008(R3). ENDIF.  "only for Where-used list
         LOG_WRITE 'E'                    "message type
                   'R3'                   "message class
                   '008'                  "message number
                   ' '                    "message variable 1
                   ' '.                   "message variable 2
         RAISE ERROR_PASSED_TO_MESS_HANDLER.
       ENDIF.
    *.. check DataSource validity
        CASE I_DSOURCE.
          WHEN C_ISOURCE_DTFIAR_1.
          WHEN OTHERS.
            IF 1 = 2.
              MESSAGE E009(R3) WITH I_DSOURCE.  "only for Where-used list
            ENDIF.
            LOG_WRITE 'E'                  "message type
                      'R3'                 "message class
                      '009'                "message number
                      I_DSOURCE            "message variable 1
                      ' '.                 "message variable 2
            RAISE ERROR_PASSED_TO_MESS_HANDLER.
        ENDCASE.
    *.. Check for supported update mode
       CASE I_UPDMODE.
         WHEN 'F'.
         WHEN OTHERS.
           IF 1 = 2.
             MESSAGE E011(R3) WITH I_UPDMODE. "only for Where-used list
           ENDIF.
           LOG_WRITE 'E'                  "message type
                     'R3'                 "message class
                     '011'                "message number
                     I_UPDMODE            "message variable 1
                     ' '.                 "message variable 2
           RAISE ERROR_PASSED_TO_MESS_HANDLER.
       ENDCASE.
        APPEND LINES OF I_T_SELECT TO G_T_SELECT.
    *.. Fill parameter buffer for data extraction calls
        G_S_INTERFACE-REQUNR    = I_REQUNR.
        G_S_INTERFACE-ISOURCE   = I_DSOURCE.
        G_S_INTERFACE-MAXSIZE   = I_MAXSIZE.
        G_S_INTERFACE-INITFLAG  = I_INITFLAG.
        G_S_INTERFACE-UPDMODE   = I_UPDMODE.
        G_S_INTERFACE-DATAPAKID = I_DATAPAKID.
        G_FLAG_INTERFACE_INITIALIZED = SBIWA_C_FLAG_ON.
    Fill field list table for an optimized select statement
    (in case that there is no 1:1 relation between InfoSource fields
    and database table fields this may be far from beeing trivial)
        APPEND LINES OF I_T_FIELDS TO G_T_FIELDS.
    *.. calculate PACKAGE-SIZE for SELECT-Statement  (approximate)
        L_PACKAGE_SIZE = G_S_INTERFACE-MAXSIZE / 12.
    *.. fill selection criterias to global ranges
    second and further calls - data selection  *************
      ELSE.
    *.. clear table for export data
        CLEAR:   E_T_DTFIAR_1.
        REFRESH: E_T_DTFIAR_1.
        IF L_OPEN_CURSOR_FLAG IS INITIAL.
    *.... open cursor
          OPEN CURSOR WITH HOLD L_CURSOR FOR
          SELECT
          REFERENCE_DOC REF_DOC_ITM GL_ACCOUNT YEAR_PERIOD AMOUNT_DOC_CURR
          CURRENCY PROFIT_CENTER GL_OFFSET BUSINESS_AREA COMPANY_CODE
          REVENUE_STATUS SOLD_TO FISCAL_YEAR PERIOD DOCUMENT_TYPE
          AMOUNT_COMPANY AMOUNT_PROFT_CTR BILLING_DATE PLANT SALES_OFFICE
          SALES_GROUP SALES_DISTRICT END_USER_COUNTRY PROD_HIERARCHY
          MATERIAL MATERIAL_COST SALES_ORG DISTR_CHANNEL NUMBER_OF_NODES
          ORDER_DATE MATERIAL_GROUP AAG CONTRACT QUANTITY DAF_NUMBER
          BILLING_DATE
          FROM  ZFIE_EXT_REV
          WHERE
          RECORD_TYPE ='DEF'.
          SELECT SINGLE VBELN  FROM VBREVE INTO ITAB_REVENUE-REFDOCNR.
          L_OPEN_CURSOR_FLAG = C_ON.
        ENDIF.                             "L_OPEN_CURSOR_FLAG = C_OFF
        IF L_PACKAGE_SIZE <> 0.
    *.... fetch next package
          FETCH NEXT CURSOR L_CURSOR
                APPENDING CORRESPONDING FIELDS OF TABLE LT_DEF_REV
                PACKAGE SIZE L_PACKAGE_SIZE.
    *.... process selected data
          PERFORM PROCESS_SEL_DATA_AR1 TABLES LT_DEF_REV  E_T_DTFIAR_1.
    *.... check, if cursor has to be closed
          DESCRIBE TABLE LT_DEF_REV LINES SY-TFILL.
          IF SY-TFILL LT L_PACKAGE_SIZE.
            CLOSE CURSOR L_CURSOR.
            L_LAST_DATA_FLAG = 'X'.
          ENDIF.
       ENDIF.
    ENDIF.
    ENDFUNCTION.
           FORM PROCESS_SEL_DATA_AR1                                    *
    FORM PROCESS_SEL_DATA_AR1 TABLES SEL_DATA STRUCTURE LT_DEF_REV
                                     EXP_DATA STRUCTURE ZFIE_BIW_DEF_HIS.
    *....... local data declarations
    if not SEL_DATA[] is initial.
    move sel_data[] to exp_data[].
    SELECT  POPUPO VBELN_N POSNR_N RVAMT ACCPD PAOBJNR SAKUR SAMMG
            REFFLD ERDAT ERZET BUDAT REVFIX
            APPENDING CORRESPONDING FIELDS OF TABLE it_vbreve
    FROM VBREVE
    WHERE VBELN = ITAB_REVENUE-REFDOCNR
          AND POSNR = SEL_DATA-REF_DOC_ITM
          AND BUKRS = SEL_DATA-COMPANY_CODE
          AND BDJPOPER = SEL_DATA-YEAR_PERIOD.
    *move it_vbreve[] to exp_data[].
    *move exp_data to e_t_data.
    ENDif.
    ENDFORM.
    any help! plz..
    rdgs,
    San!

    Hi San,
    I cannot see the source of your error, but I would suggest you look at the FM RSVD_BW_GET_DATA, and merge you logic with the code from there.
    I would then test this with RSA3 to make sure you everything working correctly. Cheers! Bill

  • Creating multiple datasets using mulitple select statements as part of one macro / stored procedure

    Hi,
    I am working on a report what has 10 datasets derived from 10 different select statements.
    Is it possilbe to save those 10 select statements as a macro / stored procedure and then use that macro to generate those dataset in the ssrs report builder ?
    AshishSinghal

    Hi AshishSinghal84,
    According to your description, you want to write multiple select statements in a procedure, then use the procedure as dataset in the report, right?
    According to my knowledge, when we write multiple select statements in a procedure, we have to create relationship between these select statements, otherwise it will only return the first one query's fields. If you are using SSRS 2008 R2, you can use Lookup
    function to display these fields from different datasets on one data region control, but the prerequisite is that you must have one common field. For more information about lookup function, please see:
    http://msdn.microsoft.com/en-us/library/ee210531.aspx
    If all these solution you cannot achieve due to your special condition, the last workaround is to use subreport to display all the fields together.
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    Wendy Fu
    TechNet Community Support

  • First tab not getting "TabPanelTabSelected" class when tabs created from dataset

    Greetings all. I've got a tabbedpanel widget whose tabs are
    created with a spry repeat region. works great, except none of the
    tabs get the "TabPanelTabSelected" class on initial load. I tried
    setting the defaultPanel in the constructor, but to no avail.
    here's the div that creates the tabs:
    <div class="statustabs_TabbedPanels SpryHiddenRegion"
    id="statustabs" spry:region="dsRequestCounts">
    <ul class="statustabs_TabbedPanelsTabGroup"
    spry:repeatchildren="dsRequestCounts">
    <li
    class="statustabs_TabbedPanelTab"
    spry:hover="statustabs_TabbedPanelTabHover"
    spry:select="statustabs_TabbedPanelTabSelected"
    tabindex="{dsRequestCounts::@StatusID}"
    onclick="updateRequests({dsRequestCounts::ds_RowID})"
    >{dsRequestCounts::@StatusName} (<span
    id="statustabcount_{dsRequestCounts::ds_RowID}">{dsRequestCounts::@RequestCount}</span>)< /li>
    </ul>
    </div>
    and here's the constructor, which is done after the tab divs
    are created:
    <script type="text/javascript">
    var statustabs = new Spry.Widget.TabbedPanels("statustabs",
    tabHoverClass:"statustabs_TabbedPanelTabHover",
    tabSelectedClass:"statustabs_TabbedPanelTabSelected",
    tabFocusedClass:"statustabs_TabbedPanelTabFocused",
    panelVisibleClass:"statustabs_TabbedPanelContentVisible"
    </script>
    So, the question is: how can i get that first tab, on load,
    to take on the appropriate class so that it's styled appropriately?
    thanks so much.
    Marc

    Thanks a lot Kin. I now have it working, mostly. I changed
    the contentgroup div so that it repeated over the RequestCounts to
    create the table. However, when I did that, obviously it drew the
    table each time through the loop. So I changed the table's spry:if
    to also look at the current status names for equality. only then
    does it actually draw the table for the status that's been clicked.
    the final version appears below.
    Now, I do have two problems though.
    1) I can no longer use the spry:loading state. If I have
    this: <div spry:state="loading">loading...</div> right
    under the "TabbedPanelscontentGroup" div, I get an error that
    tpIndex is not defined. So...do you know how i can get this
    functionality back?
    2) One thing I needed to implement was "persistent" tab on
    data refresh. I added a loadInterval on the RequestCounts dataset,
    and thus everytime that interval was up the tab went back to the
    first one. So in the updateRequests() function, i set a variable
    named 'selectedTab' to the clicked rowid. Then, in the
    tabObserver.onPostUPdate function, i have the dsRequestCounts
    current row being set to that variable.
    The only problem with this is that the "requests" dataset
    then gets loaded twice when the interval causes the data to reload:
    once for the first row, and then once for my 'persisted' row. This
    makes sense, but i just don't know how to fix it. i'm pasting the
    code into this post...maybe someone can see some way to get around
    this?
    Basically, the behavior I want is this:
    a) on initial page load, load the requestCounts dataset and
    use the first row of that dataset to load the requests dataset
    (this works)
    b) when a user clicks a tab, load the requests dataset with
    the rowid of the clicked tab (this works)
    c) when the loadInterval causes the RequestCounts dataset to
    be refreshed, use the 'selectedTab' variable as the CurrentRow of
    the RequestCounts data such that the Requests dataset is loaded
    with the correct row and the selected tab is correct
    So the only rpoblem i have is with c, and the only problem
    there is that essentially what happens is the requests dataset is
    loaded twice.
    Thanks to any and all for advice getting the "loading" state
    working and the refresh behavior correct!
    --------------- here's the current code -----------------
    <!--- ---><cfset request.cfcore = "/argus/dope/">
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml"
    xmlns:spry="
    http://ns.adobe.com/spry">
    <HEAD>
    <TITLE>Spry widgets Samples One</TITLE>
    <link href="/argus/dope/style/style.css" rel="stylesheet"
    type="text/css" />
    <link href="/argus/dope/style/widgets.css"
    rel="stylesheet" type="text/css" />
    <SCRIPT
    SRC="/argus/spry/includes/xpath.js"></SCRIPT>
    <SCRIPT
    SRC="/argus/spry/includes/SpryData.js"></SCRIPT>
    <SCRIPT
    SRC="/argus/spry/includes/SpryXML.js"></SCRIPT>
    <SCRIPT
    SRC="/argus/spry/widgets/tabbedpanels/SpryTabbedPanels.js"></SCRIPT>
    </HEAD>
    <body>
    <cfoutput>
    <script type="text/javascript">
    var selectedTab=0;
    var loaded = 0;
    var statustabs = new Object;
    //datasets for the tabbed panel of requests.
    dsRequestCounts = new
    Spry.Data.XMLDataSet("#request.cfcore#ajax/act/act_RequestCountsXML.cfm?StatusesFromLast= 100&ServerGroupID=14",
    "statuses/status",{useCache:false,loadInterval:20000});
    dsRequests = new
    Spry.Data.XMLDataSet("#request.cfcore#ajax/act/act_RequestsXML.cfm?StatusesFromLast=100&S erverGroupID=14&StatusID={dsRequestCounts::@StatusID}",
    "requests/request",{useCache:false});
    //for the tabbed panels
    tabObserver = new Object;
    tabObserver.onPostUpdate = function(notifier,data){
    dsRequestCounts.setCurrentRow(selectedTab);
    //alert("onpostupdate: " +
    dsRequestCounts.getCurrentRowNumber());
    statustabs = new Spry.Widget.TabbedPanels("statustabs",
    {defaultTab:dsRequestCounts.getCurrentRowNumber(),
    tabHoverClass:"statustabs_TabbedPanelTabHover",
    tabSelectedClass:"statustabs_TabbedPanelTabSelected",
    tabFocusedClass:"statustabs_TabbedPanelTabFocused",
    panelVisibleClass:"statustabs_TabbedPanelContentVisible"
    Spry.Data.Region.addObserver("statustabs",tabObserver);
    function updateRequests(rowid){
    dsRequestCounts.setCurrentRow(rowid);
    selectedTab=rowid;
    //alert("updaterequests: " +
    dsRequestCounts.getCurrentRowNumber());
    //statustabs.showPanel(rowid);
    </script>
    </cfoutput>
    <!--- tab div --->
    <div id="statustabs" class="statustabs_TabbedPanels
    SpryHiddenRegion" spry:region="dsRequests dsRequestCounts">
    <ul class="statustabs_TabbedPanelsTabGroup">
    <li spry:repeat="dsRequestCounts"
    class="statustabs_TabbedPanelTab"
    tabindex="0"
    onclick="updateRequests({dsRequestCounts::ds_RowID})"
    >{dsRequestCounts::@StatusName} (<span
    id="statustabcount_{dsRequestCounts::ds_RowID}">{dsRequestCounts::@RequestCount}</span>)< /li>
    </ul>
    <!--- tab content group div --->
    <div class="statustabs_TabbedPanelsContentGroup">
    <div spry:state="loading">loading...</div>
    <div class="statustabs_TabbedPanelContent"
    spry:state="ready" spry:repeat="dsRequestCounts">
    <table class="requeststable" width="100%"
    spry:if="{dsRequests::ds_RowCount}!=0 &&
    '{dsRequestCounts::@StatusName}'=='{dsRequests::@StatusName}'">
    <tr>
    <th
    onclick="dsRequests.sort('@RequestID','toggle')">ID</th>
    </tr>
    <tr spry:repeat="dsRequests"
    spry:even="requeststable_even" spry:odd="requeststable_odd">
    <td>{dsRequests::@RequestID}</td>
    </tr>
    </table>
    <div spry:if="{dsRequests::ds_RowCount}==0">
    Move along...nothing to see here
    </div>
    </div>
    </div>
    </div>
    </body>
    </html>

  • Problems creating/extracting ZIP files, anyone?

    Greetings,
    I am having some odd bugs with OSX in creating and extracting ZIP files.  I’m curious if anyone else has run across this or if anyone has any remedies to suggest.
    The issue is that when I extract a ZIP archive, the extracted files have their creation dates and modification dates changed from the original versions.  For example, I have a directory created in 2010 and all the files were created and last modified in 2010.  However, when I ZIP the directory and re-extract it, many of the file dates change.  Some files have the creation dates changed so to match the last modified date.  In other cases, both the creation date and modification date are changed to something later than both, perhaps the date the directory was ZIPed or the date the directory was extracted.  And some files don’t seem to have the dates changed. 
    I have tried various options, such as terminal, and third party programs (BetterZip, Keka, Stuffit, & Archiver to name a few) and they all seem to have some variation of this behavior.  I have tried creating the Zip with one program and extracting with the other, and still this behavior persists.  Different files seem to be affected with each combination of creating and extracting programs. 
    Another odd behavior was that I tried password protecting some directories with financial data, and OSX could create the ZIP file with the password, but OSX could not unzip the file with the password it created for some files.  In every case, third party program could unzip the files with the password created in the terminal command.  This seem to happen inconsistently. 
    I have tried creating a dummy account and tested it in that account, with similar results.
    I’ve read the man page for the command line version of ZIP to see if there is some -option to preserve dates, but found nothing.  The typical command looks like this:
    > zip -er filename.zip  sourceDir
    > unzip filename.zip
    File types include directories, PDFs, Text docs, Quicken files.  Ive tested other directories too with other file types.  It doesn’t seem to affect every file, but seems unpredictable.  Luckily, I still have the original uncompressed version of most directories.  But I really want to archive some directories and unarchive them when needed.  The dates matter to me because they are mostly financial files and I use the dates to know what versions were used for taxes and other things.  Also, if dates change, then backup programs start replacing the good backups with files with the corrupted dates. 
    I’d appreciate any suggestions or feedback.  I there some bug in the ZIP protocol?  Is there some bug in OSX file system that is corrupting the dates with the archive and unarchive process? 
    Thank you for any suggestions-
    OSX 10.9.5,
    MBPro 2012

    OK, sorry did not read it correctly.  Read the first sentance and quit.
    No, Bridge is just a browser.  You can extract more than one file at a time in Win. Explorer.  You have to do them individually, but can run multiple extractions at the same time.
    There are other zip/unzip programs out there.  I know the the CS6 beta a number of users could not open it with WinZip and used alternate product just fine.

  • Creating & Extracting R3 Hierarchy with MCK1

    Hello Expert,
    I need some advice & How tos on creating a General hierarchy with MCK1 and extracting those into BW.
    Is there any other better way to create General hierarhy in R3 and extracting into BW
    Thank you
    Arun

    Hi,
    I have the following need on Hierarchy purpose
    In ECC - transactio OVSV - a product hierarchy is available
    Question : How can we extract this product hierarchy into BI ?
    Following Extractors required a Hierarchies: Name of the hierarchy to extractor the hierarchy.
    0MATERIAL_LGEN_HIER               Material number
    0MATERIAL_LKLS_HIER               Material number
    0MATERIAL_LPRH_HIER               Material number
    0PROD_HIER_LPRH_HIER              Material number
    How can I link the OVSV  product hierarchy to a Hierarchies: Name of the hierarchy - in order to be able to extract it into BI ?

  • Extract dataset to internal table

    Hello,
    Is it possible to transfer data in an extract field group to an internal table in a loop and how?
    Thx in advance,
    Ali.

    Simply Loop at extract and move corresponding values to internal table. Example
    TABLES: spfli, sflight, sbook.
    "define extract without their structure
    FIELD-GROUPS: header,
                  travel_time,
                  flight_detail.
    "define structure of each record in extract
    INSERT: spfli-cityfrom spfli-cityto                    INTO header,       "sort by cities
            spfli-deptime spfli-arrtime                    INTO travel_time,
            sflight-carrid sflight-connid sflight-price    INTO flight_detail.
    "output table to transfer data to
    DATA    it_out_spfli TYPE TABLE OF spfli WITH HEADER LINE.
    START-OF-SELECTION.
    GET spfli.
      "fill records of extract with data
      EXTRACT: header, travel_time.
    GET sflight.
      EXTRACT flight_detail.
    END-OF-SELECTION.
      "sort the extract by the key determined in header field group
      SORT.
      LOOP.
        AT NEW spfli-cityfrom.
          WRITE: /'Connections from:', spfli-cityfrom.
        ENDAT.
        "connection must have details, flight_detail record must be found after this one
        AT travel_time WITH flight_detail.
          WRITE: /30 spfli-cityto, spfli-deptime, spfli-arrtime.
       "move data to your table
          MOVE-CORRESPONDING spfli TO it_out_spfli.
        ENDAT.
        AT flight_detail.   "if record of field-group fligth_detail reached
          WRITE: sflight-carrid, sflight-connid, sflight-price.
       "move data to your table
          MOVE-CORRESPONDING sflight TO it_out_spfli.
        ENDAT.
        AT END OF spfli-cityfrom.
          WRITE: /80'Total cities travel', cnt(spfli-cityto).
          ULINE.
        ENDAT.
        APPEND it_out_spfli.
      ENDLOOP.
    You need also make sure that all fields in IT_OUT_SPFLI are correcly provided. In my example there are some gaps but this is just a matter of supplying rest of the fields.
    Regards
    Marcin

  • JDBC Driver Class  error While Creating New Dataset for MS  SQL 2008?

    Hi Experts ,
        I am getting an error in
    please Help Me ...
    Regards,
    Mayank Shah

    Hi Henry,
    I tried this one i have download and unzip the file in Program file then then place the Jar file path in environment variable class path but it is still giving me an error ...
    plz guide me .
    Regards,
    Mayank Shah

Maybe you are looking for

  • Confirmation of balance - urgent

    Hi, We are using print program SAPF130K and SAPF130D for vendor and customer respectively. My query is can we bring even the cleared items alongwith the open items in the same print program??? Now we have line items of open line items only?? As per o

  • Where can I download smart view 9.3.1.4.2

    Please let me know from where can I download smart view 9.3.1.4.2? Any link or URL? thanks in advance.

  • OIM integration with Blaze Advisor

    Here we are integrating Oracle Identity Manager with Fair Isaac Blaze Advisor. Any document which talk about Blaze Advisor integration with Oracle Identity manager would be really helpful

  • Points Class Problem

    I'm supposed to simulate a cat and dog chase for class. If the cat reaches the tree, the cat wins, and if not then dog wins. I have been looking for answers or what I should do for this problem, any help would be greatly appreciated. I ask the user t

  • Function module to download XML file to local file

    Hello Friends, I have an XML string,is there a function module,which helps me in downloading this XML string as an XML file ,to local disk. regards kaushik