Open Data Unit Question

Has anyone been able to retrieve parent members when using the new user defined list functionality within the OpenDataUnit function?
Set DataUnit=HS.OpenDataUnit(A{MyCashFlowList}.I#[ICP Top].C1#TOTC1.C2#[None].C3#[None].C4#[None])
The user defined list "MyCashFlowList" includes both base & parent accounts. Only base accounts are returned.
My workaround is as follows:
' Define account list-> All balance sheet accounts assigned to a CF account
lstCFSource = HS.Account.List("","MyCashFlowList")
For Each CFSourceAcct in lstCFSource
' Start to process balance sheet accounts assigned to the cash flow chart
Set DataUnit = HS.OpenDataUnit("A#" & CFSourceAcct & ".C3#MOVEMENTS" & TOPS_NO_C3 & ".W#YTD")
I would think the user defined list in the actual set statement is faster since it is calling the dataunit one time.
Regards,
Darin

Hi,
Yes what you said it is write
from which cube do u want to retract the daat that cube will be the source
first create the open hub in RSBO tcode and
in open hub destination select aht and create the transformation between the table( to where u want to export)
then create the DTP between the cube to the table
and directly u can use the delta DTP first all the records will come and later onle delta records will be updated.
Thansk & Regards,
sathish

Similar Messages

  • Answer the following question regarding GUI_UPLOAD and Open Data Set

    1. what’s the connection or relationship of S_GUI to GUI_UPLOAD?
    2. GUI_UPLOAD saves files to local directory of a use while OPEN DATA SET saves/archives files in the server directory.  Where is the risk directed towards consuming disk space?  Server disk or workstation disk space?
    3. how will this work for multiple files?
    4. Regarding Open Data Set - How the files will be put in AL11?

    The GUI_DOWNLOAD only download the file to local PC...so any abap code running in other pc will not able to use the file.
    BUt if you use open dataset to load the file APPLICATION server any ABAP pogram can access the file.
    Following code explains how you load file using open data setto appl server,
    you can check in t-code <b>AL11</b> for files/dir in applicatin server.
    you to change the value of <b>myfile</b> variable in my code..
    you have to give the full path of the dirctory.
    <b><b>plz reward  points if it hlps you.</b></b>
    Report ZANID_TEST2 message-id ZM.
    data begin of itab occurs 0. "your internal table
    include structure MARA.
    data end of itab.
    *--file upload purpose--
    DATA: BEGIN OF it_file OCCURS 0,
    buffer(200),
    END OF it_file.
    DATA: myfile(128) type c value 'E:\usr\sap\put\sample1xx.txt',
    start-of-selection.
    *--populating itab--
    select * from mara into corresponding fields of table itab
    up to 100 rows.
    perform UPLOAD_FILE_TO_APPL.
    *--form definitin--
    form UPLOAD_FILE_TO_APPL.
    OPEN DATASET myfile FOR OUTPUT IN TEXT MODE.
    IF sy-subrc NE 0.
    MESSAGE e999(zm) WITH 'File could not be opened'.
    ENDIF.
    *-- creating the file data table
    loop at itab.
    *-- i am only taking two fields
    concatenate itab-matnr itab-matkl into it_file-buffer
    separated by space.
    append it_file.
    endloop.
    LOOP AT it_file.
    TRANSFER it_file-buffer TO myfile.
    CLEAR IT_FILE-BUFFER.
    ENDLOOP.
    CLOSE DATASET myfile.
    IF sy-subrc NE 0.
    MESSAGE e999(zm) WITH 'File could not be closed'.
    ENDIF.
    endform. " DUPLOAD_FILE_TO_APPL

  • Open data set

    hi friends
    i make one file like dat.i use open data set so dat file created
    so my question is that where this file is created ?
    it will create on applicationserver?
    bcoz its not create on my local drive.

    Hi
    Yes
    A file will be created on Application server.
    We use DATASET concept for reading, writing, transfering data from Local to Application servers.
    see the sample code
    ABAP code for uploading a TAB delimited file into an internal table. See code below for structures.
    *& Report  ZUPLOADTAB                                                  *
    *& Example of Uploading tab delimited file                             *
    REPORT  zuploadtab                    .
    PARAMETERS: p_infile  LIKE rlgrap-filename
                            OBLIGATORY DEFAULT  '/usr/sap/'..
    DATA: ld_file LIKE rlgrap-filename.
    *Internal tabe to store upload data
    TYPES: BEGIN OF t_record,
        name1 like pa0002-VORNA,
        name2 like pa0002-name2,
        age   type i,
        END OF t_record.
    DATA: it_record TYPE STANDARD TABLE OF t_record INITIAL SIZE 0,
          wa_record TYPE t_record.
    *Text version of data table
    TYPES: begin of t_uploadtxt,
      name1(10) type c,
      name2(15) type c,
      age(5)  type c,
    end of t_uploadtxt.
    DATA: wa_uploadtxt TYPE t_uploadtxt.
    *String value to data in initially.
    DATA: wa_string(255) type c.
    constants: con_tab TYPE x VALUE '09'.
    *If you have Unicode check active in program attributes then you will
    *need to declare constants as follows:
    *class cl_abap_char_utilities definition load.
    *constants:
       con_tab  type c value cl_abap_char_utilities=>HORIZONTAL_TAB.
    *START-OF-SELECTION
    START-OF-SELECTION.
    ld_file = p_infile.
    OPEN DATASET ld_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
    IF sy-subrc NE 0.
    ELSE.
      DO.
        CLEAR: wa_string, wa_uploadtxt.
        READ DATASET ld_file INTO wa_string.
        IF sy-subrc NE 0.
          EXIT.
        ELSE.
          SPLIT wa_string AT con_tab INTO wa_uploadtxt-name1
                                          wa_uploadtxt-name2
                                          wa_uploadtxt-age.
          MOVE-CORRESPONDING wa_uploadtxt TO wa_upload.
          APPEND wa_upload TO it_record.
        ENDIF.
      ENDDO.
      CLOSE DATASET ld_file.
    ENDIF.
    *END-OF-SELECTION
    END-OF-SELECTION.
    *!! Text data is now contained within the internal table IT_RECORD
    Display report data for illustration purposes
      loop at it_record into wa_record.
        write:/     sy-vline,
               (10) wa_record-name1, sy-vline,
               (10) wa_record-name2, sy-vline,
               (10) wa_record-age, sy-vline.
      endloop.
    Reward points for useful Answers
    Regards
    Anji

  • OPEN DATA SET PROBLEM

    Hello ,
    I use the command OPEN DATA SET in order to upload file content from server ,
    the problem is that i getting error :_No such file or directory ._
    the file is exist in server I can see it when i put the path on windows  start->run
    and i give the permission for the folder to everyone .
    1. My question is what i miss here
    2. when i do little test and try to use GUI_UPLOAD i see the file content so i don't understand what is wrong here the file is not on my local PC
    Regards
    James

    hi James,
    the parameter file_name receives the name of the file (ja, ja, ja.......)
    here comes the explanation:
    in the transaction FILE you must define phisical and logical path for a file:
    for example:
    MY_FILE => pointing to the folder /host/temp/
    and here comes the call to the function in your program:
    CALL FUNCTION 'FILE_GET_NAME_USING_PATH'
        EXPORTING
          client                     = sy-mandt
          logical_path               = l_path    " the name of your logical path defined in trx FILE (MY_FILE)
          file_name                  = p_filename " the name of the file you want to read (for example: file.txt     )
        IMPORTING
          file_name_with_path        = file_trg
        EXCEPTIONS
          path_not_found             = 1
          missing_parameter          = 2
          operating_system_not_found = 3
          file_system_not_found      = 4
          OTHERS                     = 5.
    in the variable file_trg you should  get the value /host/temp/file.txt  (from the example)  to do the open dataset.
    sorry about my english
    regards, Sebastiá

  • How do you change the last opened date in Lion?

    In many screens the files are organized automatically by last opened date.  This information is not available when you click command info on the individual file, however, if you list out the files and click on the option to show last opened on the row on the top you will see this information.
    From time to time it is useful to change the creation and modification dates to move where files are displayed in various windows.  While there are utilities and articles about changing the creation and last modified date using third party software or the terminal, I have not been able to find any way to change the last opened date.  This is useful if you wish to hide a file you recently opened so that another user can't just find it as one of the last opened files. 
    When I googled this question all the solutions using terminal either with touch -t or touch -mt commands changed the creation and modification dates, but did not affect the last opened date.
    Anyone have a solution to this?

    Thank you MacNix!!!!!

  • How to open dat file in labview

    how to open dat file in labview.???how to make use of biomedical startup kit for doing so???

    Please post this question on the Biomedical User Group here:  www.ni.com/biomedusers
    This is where you will find the best support for the Biomedical Starter Kit.
    Steve
    Visit the NI Biomedical User Group at:
    www.ni.com/biomedusers

  • Error when opening Data Form

    Hi All,
    Also I have tried by removing access for that user and opened the Dta Form but still it throwing me the same error:
    You are trying to open the data form, but cannot because all of the required dimensions are not present. Possible causes may be that you do not have access to at least one member of a required dimension, or the member selection resulted in no members present. Contact your administrator
    Kindly guide me.
    Thanks and Regards
    ChiDam

    duplicate post - Error while opening Data form
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Can not open data grids or run reports in HFM

    Hi
    We created an application and have been working in it for weeks without any issues. Just recently once we open the app, we can longer open data grids or run financial grids. The system just hangs and we do not get an error message. Has anyone experienced this? We are wondering if it is a space issue on one of the data base tables.

    Hello,
    I would start by checking with your DBA to see if you have any issues with table space. Next, i would log onto the HFM servers and see if you have any errors being recorded in the Application Event View. If you do have errors in your Event Viewer, can you please post them?
    Thanks
    Edited by: tonyfeole on Oct 13, 2009 1:33 PM

  • Download using open data set and close data set

    can any body please send some sample pgm using open data set and close data set .the data should get downloaded in application server
    very simple pgm needed

    Hi Arun,
    See the Sample code for BDC using OPEN DATASET.
    report ZSDBDCP_PRICING no standard page heading
    line-size 255.
    include zbdcrecx1.
    *--Internal Table To hold condition records data from flat file.
    Data: begin of it_pricing occurs 0,
    key(4),
    f1(4),
    f2(4),
    f3(2),
    f4(18),
    f5(16),
    end of it_pricing.
    *--Internal Table To hold condition records header .
    data : begin of it_header occurs 0,
    key(4),
    f1(4),
    f2(4),
    f3(2),
    end of it_header.
    *--Internal Table To hold condition records details .
    data : begin of it_details occurs 0,
    key(4),
    f4(18),
    f5(16),
    end of it_details.
    data : v_sno(2),
    v_rows type i,
    v_fname(40).
    start-of-selection.
    refresh : it_pricing,it_header,it_details.
    clear : it_pricing,it_header,it_details.
    CALL FUNCTION 'UPLOAD'
    EXPORTING
    FILENAME = 'C:\WINDOWS\Desktop\pricing.txt'
    FILETYPE = 'DAT'
    TABLES
    DATA_TAB = it_pricing
    EXCEPTIONS
    CONVERSION_ERROR = 1
    INVALID_TABLE_WIDTH = 2
    INVALID_TYPE = 3
    NO_BATCH = 4
    UNKNOWN_ERROR = 5
    GUI_REFUSE_FILETRANSFER = 6
    OTHERS = 7.
    WRITE : / 'Condition Records ', P_FNAME, ' on ', SY-DATUM.
    OPEN DATASET P_FNAME FOR INPUT IN TEXT MODE.
    if sy-subrc ne 0.
    write : / 'File could not be uploaded.. Check file name.'.
    stop.
    endif.
    CLEAR : it_pricing[], it_pricing.
    DO.
    READ DATASET P_FNAME INTO V_STR.
    IF SY-SUBRC NE 0.
    EXIT.
    ENDIF.
    write v_str.
    translate v_str using '#/'.
    SPLIT V_STR AT ',' INTO it_pricing-key
    it_pricing-F1 it_pricing-F2 it_pricing-F3
    it_pricing-F4 it_pricing-F5 .
    APPEND it_pricing.
    CLEAR it_pricing.
    ENDDO.
    IF it_pricing[] IS INITIAL.
    WRITE : / 'No data found to upload'.
    STOP.
    ENDIF.
    loop at it_pricing.
    At new key.
    read table it_pricing index sy-tabix.
    move-corresponding it_pricing to it_header.
    append it_header.
    clear it_header.
    endat.
    move-corresponding it_pricing to it_details.
    append it_details.
    clear it_details.
    endloop.
    perform open_group.
    v_rows = sy-srows - 8.
    loop at it_header.
    perform bdc_dynpro using 'SAPMV13A' '0100'.
    perform bdc_field using 'BDC_CURSOR'
    'RV13A-KSCHL'.
    perform bdc_field using 'BDC_OKCODE'
    '/00'.
    perform bdc_field using 'RV13A-KSCHL'
    it_header-f1.
    perform bdc_dynpro using 'SAPMV13A' '1004'.
    perform bdc_field using 'BDC_CURSOR'
    'KONP-KBETR(01)'.
    perform bdc_field using 'BDC_OKCODE'
    '/00'.
    perform bdc_field using 'KOMG-VKORG'
    it_header-f2.
    perform bdc_field using 'KOMG-VTWEG'
    it_header-f3.
    **Table Control
    v_sno = 0.
    loop at it_details where key eq it_header-key.
    v_sno = v_sno + 1.
    clear v_fname.
    CONCATENATE 'KOMG-MATNR(' V_SNO ')' INTO V_FNAME.
    perform bdc_field using v_fname
    it_details-f4.
    clear v_fname.
    CONCATENATE 'KONP-KBETR(' V_SNO ')' INTO V_FNAME.
    perform bdc_field using v_fname
    it_details-f5.
    if v_sno eq v_rows.
    v_sno = 0.
    perform bdc_dynpro using 'SAPMV13A' '1004'.
    perform bdc_field using 'BDC_OKCODE'
    '=P+'.
    perform bdc_dynpro using 'SAPMV13A' '1004'.
    perform bdc_field using 'BDC_OKCODE'
    '/00'.
    endif.
    endloop.
    *--Save
    perform bdc_dynpro using 'SAPMV13A' '1004'.
    perform bdc_field using 'BDC_OKCODE'
    '=SICH'.
    perform bdc_transaction using 'VK11'.
    endloop.
    perform close_group.
    Hope this resolves your query.
    Reward all the helpful answers.
    Regards

  • What is open data set and close data set

    what is open data set and close data set,
    how to use the files in sap directories ?

    hi,
    Open Dataset is used to read or write on to application server ... other than that i am not sure that there exists any way to do the same ... here is a short description for that
    FILE HANDLING IN SAP
    Introduction
    • Files on application server are sequential files.
    • Files on presentation server / workstation are local files.
    • A sequential file is also called a dataset.
    Handling of Sequential file
    Three steps are involved in sequential file handling
    • OPEN
    • PROCESS
    • CLOSE
    Here processing of file can be READING a file or WRITING on to a file.
    OPEN FILE
    Before data can be processed, a file needs to be opened.
    After processing file is closed.
    Syntax:
    OPEN DATASET <file name> FOR {OUTPUT/INPUT/APPENDING}
    IN {TEXT/BINARY} MODE
    This statement returns SY_SUBRC as 0 for successful opening of file or 8, if unsuccessful.
    OUTPUT: Opens the file for writing. If the dataset already exists, this will place the cursor at the start of the dataset, the old contents get deleted at the end of the program or when the CLOSE DATASET is encountered.
    INPUT: Opens a file for READ and places the cursor at the beginning of the file.
    FOR APPENDING: Opens the file for writing and places the cursor at the end of file. If the file does not exist, it is generated.
    BINARY MODE: The READ or TRANSFER will be character wise. Each time ‘n’’ characters are READ or transferred. The next READ or TRANSFER will start from the next character position and not on the next line.
    IN TEXT MODE: The READ or TRANSFER will start at the beginning of a new line each time. If for READ, the destination is shorter than the source, it gets truncated. If destination is longer, then it is padded with spaces.
    Defaults: If nothing is mentioned, then defaults are FOR INPUT and in BINARY MODE.
    PROCESS FILE:
    Processing a file involves READing the file or Writing on to file TRANSFER.
    TRANSFER Statement
    Syntax:
    TRANSFER <field> TO <file name>.
    <Field> can also be a field string / work area / DDIC structure.
    Each transfer statement writes a statement to the dataset. In binary mode, it writes the length of the field to the dataset. In text mode, it writes one line to the dataset.
    If the file is not already open, TRANSFER tries to OPEN file FOR OUTPUT (IN BINARY MODE) or using the last OPEN DATASET statement for this file.
    IF FILE HANDLING, TRANSFER IS THE ONLY STATEMENT WHICH DOES NOT RETURN SY-SUBRC
    READ Statement
    Syntax:
    READ DATASET <file name> INTO <field>.
    <Field> can also be a field string / work area / DDIC structure.
    Each READ will get one record from the dataset. In binary mode it reads the length of the field and in text mode it reads each line.
    CLOSE FILE:
    The program will close all sequential files, which are open at the end of the program. However, it is a good programming practice to explicitly close all the datasets that were opened.
    Syntax:
    CLOSE DATASET <file name>.
    SY-SUBRC will be set to 0 or 8 depending on whether the CLOSE is successful or not.
    DELETE FILE:
    A dataset can be deleted.
    Syntax:
    DELETE DATASET <file name>.
    SY-SUBRC will be set to 0 or 8 depending on whether the DELETE is successful or not.
    Pseudo logic for processing the sequential files:
    For reading:
    Open dataset for input in a particular mode.
    Start DO loop.
    Read dataset into a field.
    If READ is not successful.
    Exit the loop.
    Endif.
    Do relevant processing for that record.
    End the do loop.
    Close the dataset.
    For writing:
    Open dataset for output / Appending in a particular mode.
    Populate the field that is to be transferred.
    TRANSFER the filed to a dataset.
    Close the dataset.
    Regards
    Anver
    if hlped pls mark points

  • Period open date in FA_DEPRN_PERIODS

    I want to know what controls period open date and close in FA_DEPRN_PERIODS
    table. We have first open period (JAN-02) for year 2002 from '02/27/2002' and
    now we have some depriciation transaction for this year (2002) before this
    date.
    So when we are running Journal Entry Reserve ledger Report for this year then
    those transaction are not matching showing up because they are before
    '02/27/2002'. So can I update period open date to early date or what is the
    impact on system.

    Did you refer note 1061798.1
    If this note didn't help you,
    let us know the version also let us know if the GL period is ever used.
    Regards,
    Srini

  • How to use open data set in SAP

    Hi SAP Gurus,
            Could anyone help, how to use open data set in SAP.
          I need to upload a file from Application server (ZSAPUSAGEDATA) to internal table (IT_FINAL).
    Thanks & Regards,
    Krishnau2026

    Hi Krishna.
    These are the steps you need to follow.
    tables: specify the table.
    data: begin of fs_...
            end of fs_    " Structure Field string.
    data: t_table like
            standard table
                      of fs_...
    data:
    w_file TYPE string.
    data:
      fname(10) VALUE '.\xyz.TXT'.
    select-options: if any.
    PARAMETERS:
      p_file LIKE rlgrap-filename.
    w_file = p_file.
    select .... statement
    OPEN DATASET fname FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
    *OPEN DATASET fname FOR OUTPUT IN BINARY MODE.
    LOOP AT t_... INTO fs_....
    write:/ .....
    TRANSFER fs_... TO fname.
    or
    TRANSFER t_... TO fname
    ENDLOOP.
    CLOSE DATASET fname.
    Reward points wisely and if you are benefitted or ask for more detailed explanation if problem not solved.
    Regards Harsh.

  • Open data extraction orders -  Applying Support Packs

    Dear All,
    I have done the IDES 4.6C SR2 installation.
    While updating the support packs, i get the message saying
    CHECK_REQUIREMENTS phase.
    Open data extraction orders
    There are still open data extraction orders in the system
    process these before the start of the object import because changes to the ABAP Dictionary structures could lead to data extraction orders not being able to be read after the import and their processing terminating
    For more details about this problem, see Note 328181.
    Go to the Customizing cockpit for data extraction and start the processing of all open extraction orders.
    I have checked the Note.
    But this is something m facing for the first time.
    Any suggestion!!!
    Rgds,
    NK

    The exact message is :
    Phase CHECK_REQUIREMENTS: Explanation of the Errors
    Open Data Extraction Requests
    The system has found a number of open data extraction requests. These
    should be processed before starting the object import process, as
    changes to DDIC structures could prevent data extraction requests from
    being read after the import, thus causing them to terminate. You can
    find more information about this problem in SAP Note 328181.
    Call the Customizing Cockpit data extraction transaction and process all
    open extraction requests.

  • Open data Set Error?

    Hi Guys,
                  I am using Open dataset for downloading the data into Application server   .I am getting the  error file path is not opened  but in al11 i was able to see the path what i mentioned here except bseg.txt file.I am getting error at Open data set statement.I have to write the bseg table data into the file bseg.txt in application server.can any body suggest the solution for this problem.
              Very urgent.
    wa_BSEG_file = '/interfaces/DR1/MM/outbounb/ZMMOF3007/BSEG.txt'.
      OPEN DATASET wa_BSEG_file FOR OUTPUT         "Write to appl. server
                                          IN TEXT MODE
                                          Encoding default.  "Open dataset Return code
    IF sy-subrc = 0.
    TRANSFER it_cosp1 to wa_BSEG_file.
    Write : 'File Transferred BSIK'.
      ELSE .
    Write : 'File Not Found / Transferred BSIK'.
    ENDIF.
       CLOSE DATASET wa_BSEG_file.
               Very urgent.Full marks will be alloted if u give me the correct answer.
    Thanks,
    Gopi.

    Hi,
    Due to serveral reasons
    1. Check whether you have proper authority in the directory?
    2. check the whether any files with same name?
    3. use addition message in the open dataset statement so that you can know the system message it getting.
    DATA: msg(100).
    OPEN DATASET wa_BSEG_file FOR OUTPUT MESSAGE msg
    IN TEXT MODE Encoding default.
    aRs

  • Unable to Open Date & Time

    I have been unable to Open Date & Time for several weeks now despite many attempts, rebootings and re-attempts. I get a "System Preferences has quit unexpectedly" message. It wasn't much of an issue when the time was correct, but the clock has recently reverted to December 31, 1969 and goes back to that date with each reboot. I have to hit a Continue button every time I go to a new website in Firefox (Safari no longer works) due to the time issue, and I can't purchase anything in iTunes.
    Any suggestions?

    Welcome to Apple Discussions!
    One thing to try is to go to Disk Utility (in the Utilities folder) and verify and repair if necessary both permissions and the disk. If the start up disk needs repair, you will need to use the Disk Utility on one of the gray original discs that came with your computer. While you have the original discs out, you might try running the Apple Hardware test and see if anything shows up.
    It also could be that your OS has become corrupted. If this is the case, you will need to reinstall it. But be sure and back up all your data before taking this step.
    Please post back with any results.
    Good luck!

Maybe you are looking for

  • Why do the photos in the Photo iWeb template NOT print??

    The subject says it all! I created a page in the photo page and wanted to print off the front page. I got text but none of the photos! They don't show in print to pdf, or print to preview either. Any thoughts? Or just one more glitch in the iWeb prog

  • XML SQL utility

    Hi, When I try to execute this query using XML SQL utility I am getting the following error. I had declared 'XMLGEN & GETXML' as CLOB and tried but got the same error. Advice me. I am struggling to find the solution using XSQL Servlet..but couldn't g

  • Media files are published to blog with the wrong hostname

    Hi there, I've changed the hostname of my server and everything is working correctly with the wiki/blog server but when I submit a podcast producer job, although the job finishes without error, the media that's embedded on the page still has the old

  • Sync tab is missing from preferences dialog on my 2nd computer - where is it?

    Following instructions detailed here: http://support.mozilla.com/en-US/kb/How%20to%20sync%20Firefox%20settings%20between%20computers My second computer is a laptop. On it, the sync tab is not showing in the firefox preferences dialog.

  • Better Linking and Packaging for Links, also integrated CADtools

    Suggestions: A more robust file linking tools so you can update an entire folder path name rather than each individual file. In other words, all linked files in that folder would be automatically relinked if they were in the same folder, similar to I