Design Question - Export Data via APD

Hello gurus,
I have following screanrio where I need your help / evaluation.
Query based on Multicube. Result of this query should be exported automatic to ftp server.
I thought about create an APD which export data to ODS. And then via programm read content of ods and export to ftp server.
Any other idea?
Can anyone provide me coding samles for export of data to ftp? Thanks in advance.

Hi Starwars,
You can export the report extracts from RSCRM_BAPI t-code.
The other requirement can be very well achieved by APD.
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/5047160e-3559-2e10-d193-bbb987df7dd2
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/a0980b4c-7058-2e10-45be-c67712b499c6
Regards,
Suman

Similar Messages

  • Design question: Link data between JFrames

    Dear all,
    I have a design question. I have this form in a JFrame where you can set an icon as a property. To achieve this, I have a "Set" button on the form which will open a new window with all the available icons. When you click an icon, I want the "icon" frame to be closed and the selected icon to be send to the original form. This is the way I do it now:
    Interface :
    public interface IconUpdate
    public void updateIcon(Icon icon);
    }Main frame with the "Set" button:
    public class Test extends JFrame implements IconUpdate, ActionListener
        private Icon icon = null;
        public Test()
            // add button and actionlistener and that kind of stuff
        public void actionPerformed(ActionEvent e)
            if(e.getSource() == btnSetIcon)
                new IconFrame(this);
        public void updateIcon(Icon icon)
            this.icon = icon;
    }The Icon frame:
    public class IconFrame extends JFrame implements ActionListener
        IconUpdate parent = null;
        public IconFrame(IconUpdate parent)
            this.parent = parent;
            // Initialize table,"Pick" button etc.
        public void actionPerformed(ActionEvent e)
            if(e.getSource() == btnPick)
                parent.updateIcon((Icon)list.getSelectedValue());
                this.dispose();
    }Maybe I made some spelling faults, but this is the way I implement it. Now my question is: is there another way to achieve my goal? If I have to create an interface for every "popup choose dialog" in my program, I have to create many of them. I know using a combobox in the main frame is an option, but I just want to use it this way. Can anyone tell me how I can rewrite this code to make it better / more professional?
    Tx in advance!!!
    Peter

    I can think of a couple options:
    1) Let IconFrame's constructor accept a Test parameter, instead of creating an interface.
    2) Make IconFrame into a modal dialog & have it store the user's selection in a variable. Then when you show the dialog, your action listener will block until the user selects an icon. Then you can call "getSelectedIcon()" to retrieve his/her selection. This would be much like the JOptionPane.showXXX() methods, and probably the cleaner solution.

  • Error while exporting data via Tcode CNS43 by using spreadsheet(XXL) option

    Hello All,
    User tries to download data to spreadsheet via Tcode CNS43 by using spreadsheet(XXL) option. user gets following error.
    Selected key figure STUFE not contained in XXL output structure
    Message no. M5180
    Diagnosis
    You tried to export a key figure that is not contained in the definition of the internal table 'xxl_data'. The key figure, therefore, cannot be exported.
    System response
    The system ignored the key figure column when exporting.
    Procedure
    The table definition for 'xxl_data' must be corrected by the development department responsible for the application.
    Please note that user doesnt want to use 'save to file' option.
    Any help?

    Refer SAP notes 761839, 522925
    Regards

  • XML question export data to XML

    I need to export XML in a certain format. This is the first time i need to export XML. What i can do is:
    select xmlelement("IDpart",
         xmlelement("ID", XMLAttributes( e.ID_SUBID AS "ID_SUBID"),
              xmlelement("timeperiod", XMLAttributes( e.start_date AS "startdate"))))
    AS "result"
    from example e
    <IDpart><ID ID_SUBID="2:2_O_2"><timeperiod startdate="2008-01-22"></timeperiod></ID></IDpart>
    Create table script
    -- DDL for Table EXAMPLE
    CREATE TABLE "HR"."EXAMPLE"
    (     "ID_SUBID" VARCHAR2(20),
         "END_DATE" DATE,
         "START_DATE" DATE,
         "VALUE" NUMBER,
         "STATUS" VARCHAR2(5)
    -- DATA FOR TABLE EXAMPLE
    -- FILTER = none used
    -- INSERTING into EXAMPLE
    Insert into EXAMPLE (ID_SUBID,END_DATE,START_DATE,VALUE,STATUS) values ('2:2_O_2',to_date('22-JAN-08','DD-MON-RR'),to_date('22-JAN-08','DD-MON-RR'),0.2,'A');
    Insert into EXAMPLE (ID_SUBID,END_DATE,START_DATE,VALUE,STATUS) values ('2:2_O_2',to_date('22-JAN-08','DD-MON-RR'),to_date('22-JAN-08','DD-MON-RR'),0.2,'B');
    -- END DATA FOR TABLE EXAMPLE
    Can you help me to get my output like this?
    <IDpart><ID ID_SUBID= "2:2_O_2"/><timeperiod startdate="22-JAN-08"/> <Readings><Reading Value="0.2"> <statuscodes><code>A</code><code>B</code>
    </Reading></Readings></IDpart>
    ---------------------------------------------------

    My xml does summarize some data but i want it in another format/ range. Can you help me?
    My code:-->
    SELECT XMLElement("MeterReadingDocument",
    XMLAttributes('http://www.w3.org/2001/XMLSchema' AS "xmlns:xsd",
    'http://www.w3.org/2001/XMLSchema-instance' AS "xmlns:xsi"),
         XMLElement("Channels", XMLElement("Channel",
         Xmlelement("ChannelID",xmlattributes(d.CHANNELID_SPCID "IntervalChannelID")),
         Xmlelement("ContigiousIntervalSets",xmlelement("ContigiousIntervalSet",
    xmlattributes(d.REC_AANTAL "NumberOfReadings"),
    Xmlelement("TimePeriod",
    xmlattributes(to_char(d.START_TIME, 'dd-mm-yyyy"T"hh24:mi:ss"Z"') “StartTime", to_char(d.END_TIME, 'dd-mm-yyyy"T"hh24:mi:ss"Z"') "EndTime")),
         Xmlelement("Readings", xmlelement("Reading",xmlattributes(d.WAARDE "Value"),
    Xmlelement("Readingstatus",xmlelement("Unencodedstatus", xmlattributes(d.SOURCE "SourceValidation"),
    Xmlelement("StatusCodes", xmlagg(xmlelement("Code", d.DESCRIPTION))))))))))))
    .extract('*').getstringval() xml FROM DM_IEE d
    where to_char(d.END_TIME, 'dd-mm-yyyy"T"hh24:mi:ss"Z"')= '03-04-2007T09:55:00Z'
    Or to_char(d.END_TIME, 'dd-mm-yyyy"T"hh24:mi:ss"Z"')= '03-04-2007T10:00:00Z'
    group by d.CHANNELID_SPCID, d.REC_AANTAL, d.START_TIME, d.END_TIME, d.WAARDE, d.SOURCE
    My output-->
    <MeterReadingDocument xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <Channels>
    <Channel>
    <ChannelID IntervalChannelID="68979_OP_98189091:10111"/>
    <ContigiousIntervalSets>
    <ContigiousIntervalSet>
    <TimePeriod StartTime="03-04-2007T09:55:00Z" EndTime="03-04-2007T10:00:00Z"/>
    <Readings>
    <Reading Value="-54.5">
    <Readingstatus>
    <Unencodedstatus SourceValidation="Passed">
    <StatusCodes>
    <Code>MANACCEPTED</Code>
    <Code>MISSING</Code>
    </StatusCodes>
    </Unencodedstatus>
    </Readingstatus>
    </Reading>
    </Readings>
    </ContigiousIntervalSet>
    </ContigiousIntervalSets>
    </Channel>
    </Channels>
    </MeterReadingDocument>
    <MeterReadingDocument xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <Channels>
    <Channel>
    <ChannelID IntervalChannelID="68979_OP_98189091:10111"/>
    <ContigiousIntervalSets>
    <ContigiousIntervalSet NumberOfReadings="2">
    <TimePeriod StartTime="03-04-2007T09:50:00Z" EndTime="03-04-2007T09:55:00Z"/>
    <Readings>
    <Reading Value="87">
    <Readingstatus>
    <Unencodedstatus SourceValidation="Passed">
    <StatusCodes>
    <Code>MANACCEPTED</Code>
    <Code>MISSING</Code>
    </StatusCodes>
    </Unencodedstatus>
    </Readingstatus>
    </Reading>
    <Reading Value="-54.5">
    <Readingstatus>
    <Unencodedstatus SourceValidation="Passed">
    <StatusCodes>
    <Code>MANACCEPTED</Code>
    <Code>MISSING</Code>
    </StatusCodes>
    </Unencodedstatus>
    </Readingstatus>
    </Reading>
    </Readings>
    </ContigiousIntervalSet>
    </ContigiousIntervalSets>
    </Channel>
    </Channels>
    </MeterReadingDocument>
    2 rows selected
    The output i want:-->
    start_time is the start time of the first record and end_date the end_date of the last record. Can you help me?
    <MeterReadingDocument xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <Channels>
    <Channel>
    <ChannelID IntervalChannelID="68979_OP_98189091:10111"/>
    <ContigiousIntervalSets>
    <ContigiousIntervalSet NumberOfReadings="2">
    <TimePeriod StartTime="03-04-2007T09:50:00Z" EndTime="03-04-2007T10:00:00Z"/>
    <Readings>
    <Reading Value="87">
    <Readingstatus>
    <Unencodedstatus SourceValidation="Passed">
    <StatusCodes>
    <Code>MANACCEPTED</Code>
    <Code>MISSING</Code>
    </StatusCodes>
    </Unencodedstatus>
    </Readingstatus>
    </Reading>
    </Readings>
    </ContigiousIntervalSet>
    </ContigiousIntervalSets>
    </Channel>
    </Channels>
    </MeterReadingDocument>

  • Noob question, export data to excel

    I'm trying to get started with BI Publisher in order to complete a specific task. I've done the basic "Getting started" tutorial.
    What I'd like to do is to get some data from a couple of sources, compute some values and then (in order of desirability)
    1. insert each value into a specific cell in an existing Excel document
    or
    2. create an Excel document with a lot of row and column headers (and other formatting) that includes the calculated values at the correct positions.
    Can someone tell me if this is an easy thing to do in Publisher and maybe point me in the right direction? Maybe a tutorial covering something similar?
    Regards
    Andy

    If you are not using any Repeating Frames, all you need to do is in add this to the URL.
    desformat=delimited+delimited_hdr=no+destype=cache+mimetype=application/vnd.ms-excel
    I hope this solves your problem.

  • Export Data to Excel columns not in sequence

    Hi experts,
    I have a question here.
    I tried to export data (via System Action 'Export Data') from a table which my data service generated. However, when I paste the data into Excel, the sequence is all messed up.
    E.g.
    Layout of Table in the iView:
    Personnel_number
    Org Unit
    Position
    Start Date
    End Date
    Layout of Table when pasted in Excel (Messed up sequence):
    End Date
    Start Date
    Org Unit
    Position
    Personnel_number
    Is there any reason and solution for that? Help is greatly appreciated.
    Regards,
    Damien

    Hi Shay, thanks for the information.
    I've gotten reply from SAP that the wrong sequence of columns will be rectified if we use SPS 16.
    We'll be doing some test when our server is patched.
    Regards,
    Damien

  • Thread: Export Data in TSV format (International / Unicode characters)

    Hi OAF Gurus,
    Question: Export data in TSV format ? how
    I am working in JDEV 10g, OA Framework 12.0.6.
    I have a page which has a OA Table populated with data, I need to export this data in a TSV (*Tab Separated values*) format.
    I know that we can add a “Export” button and then the data is exported in a CSV (comma Separated values) format.
    The question is how to save in TSV format instead.
    Reason for using TSV format: Our Data contains Unicode characters(Asian characters) which CSV files will not support. (FYI: Oracle Forms export in TSV format)
    Thanks in Advance
    Chaitanya

    use class CL_ABAP_CONV_OUT_CE
    2) or use obn application server
      open dataset file for output in  legacy  text mode code page p_code.
    (for codepage look  in tabele TCP00!)
    grx
    A.
    Edited by: Andreas Mann on Nov 8, 2010 11:23 AM

  • Exporting data in Applicationmanager fails with Error 10054

    Hi all,when I try to export data via Applicationmanager the Application terminates immediately with an error message "can't read data - Error 10054 - network error" "can't write data - Error 10054 - network error" and sometimes with the errormessage "unable to allocate memory - Error 10054".We have an IBM server 340 with 1 GByte Ram, Harddisk Space for Hyperion about 3 GByte in RAID 1.Essbase 6.1.Does anybody know that problem???Help to solve that issue would be great. ThanxJoerg [email protected]

    A couple of tips:1. Try stoping and restarting the application then try to export2. If that doesn't work try stopping and restarting the applicationa and the server and reconnecting then doing th eecport.3. Check to see that you have a good connection to the server. When you run an export you must maintain a connection to the server, if you lose it the ecport stops.4. If all else fails open Application Manager on the server itself and run the export from there.Hope this helps,CB

  • Question regarding tranisent analysis and piecewise linear voltage export data

    howdy,
    My work with mulitism focuses on the analysis of equivalent circuits. I approach this through a transient analysis over a custom voltage input which I run through the PWL and export the data through excel for analysis, matching up the time of the transient analysis with the voltage through the circuit. Allowing me to observe the I-V performance.
    The problem is the the exported data is usually an array of hundred of entries. That may or may not align with the discrete values of my custom voltage input and allow for direct analysis between real world data.
    Is there a way to lock the time step (significantly reduce the number of interations) over the transient analysis to allow me to always export the same voltages. I.e only the voltages specified in my custom piecewise power source.
    The reason I am interested in doing this is to generate data which directly matches up with the specified custom voltage input and that matches up with my real world experimental data and would not require me to pick through hundreds of iterations at varied voltages and cherry pick the points that compare to my real life measurements for analysis.
    many thanks. 

    SPICE simulations doesn't have a fixed delta time, if the signal is changing rapidly the SPICE engine will slow down and take more samples and if the signal is constant it will automatically speed and take fewer samples.  You cannot control the SPICE simulation sampling.  One suggestion is to export an .lvm file instead of an Excel file because Multisim will convert the data to have a constant delta t which may be better for you.  You can open the .lvm file with Notepad to view the format.
    Tien P.
    National Instruments
    Attachments:
    LVM export.PNG ‏46 KB

  • BPC 7.5 NW SP5 - Question regarding Transformation file for exporting data

    Hi Experts,
    I have a requirement to export data from a BPC application to App.server/UJFS. There are currently 13 dimensions in the application. The user requires the output file to contain only three dimensions followed by the amount(signdata), namely
    | COSTCENTER | ACCOUNT | TIME | AMOUNT |.
    How do i handle the same in transformation file?
    Currently i am using the following transformation file but i am having issues validating it.
    *OPTIONS
    FORMAT = DELIMITED
    HEADER = YES
    OUTPUTHEADER=*COSTCENTER,ACCOUNT,TIME, PERIODIC
    DELIMITER = ,
    AMOUNTDECIMALPOINT = .
    SKIP = 0
    SKIPIF =
    VALIDATERECORDS=NO
    CREDITPOSITIVE=YES
    MAXREJECTCOUNT=
    ROUNDAMOUNT=
    *MAPPING
    COSTCENTER=*COL(2)
    ACCOUNT=*COL(4)
    TIME=*COL(13)
    AMOUNT=*COL(14)
    I tried to remove the OUTPUTHEADER from *options and tried but it still gives the same issue.
    Please help me as to how i can handle this scenario.
    Thanks,
    Victor

    The 'Export' data package which comes as part of a support pack enhancement does not support using Transformation/Conversion files to modify data prior to transport.
    Please refer to section 3 (Limitations) in the below how to guide.
    http://www.sdn.sap.com/irj/bpx/go/portal/prtroot/docs/library/uuid/b0427318-5ffb-2b10-9cac-96ec44c73c11?QuickLink=index&overridelayout=true
    Hence your only option is to manually massage data in the spreadsheet after exporting.

  • Question on Exporting Data from Virtualbench.

    Hello,
    I'm new to the forums and VirtualBench, and was hoping someone might be able to help.
    When I export data from the VirtualBench, I get 4 columns of data for the 2 channels. They are "1Min", "1Max", "2Min", "2Max".
    Example:
    Timestamps (ns)
    1 Min
    1 Max
    2 Min
    2 Max
    -3000600000
    -0.205761317
    0.12345679
    -0.013168724
    -0.001646091
    -2990598000
    -0.205761317
    0.12345679
    -0.013168724
    -0.003292181
    -2980596000
    -0.205761317
    0.12345679
    -0.013168724
    -0.003292181
    -2970594000
    -0.205761317
    0.12345679
    -0.013168724
    -0.001646091
    I don't understand what the min/max refers to. I do not have any averaging on. Does VirtualBench actually take multiple samples at each point?
    Thanks.
    Solved!
    Go to Solution.

    That depends on your input signal. For example, if you had a single, large glitch during a sample period, an average may not be a very accuracte representation of the signal. However, if the signal was relatively stable over the sample period, an average might be a good representation of the signal.
    In peak detect mode, the scope oversamples at 250MS/s and saves the min and the max of each sample period. So for example, if the scope is sampling at 10MS/s and is in peak detect mode, it saves the min and the max of every 25 points that are oversampled at 250MS/s, or in other words the input is sampled every 4 ns, and the scope saves the min and max of the input over each 100 ns period. This mode is useful if you would like to be able to acquire for a long time, but still have a good chance of seeing glitches in your signal.
    In sample mode, the scope saves every sample it acquires. If it's configured to sample at 250MS/s, it saves the state of the input every 4 ns. If it's configured to acquire at 10MS/s, if saves the state of the input every 100 ns. To get the most accurate representation of the waveform, use sample mode and acquire as fast as possible (zoom in to the smallest time per division in the app possible for your signal).

  • Questions when export data to excel

    My platform
    Windows2000(Chinese version).
    Oracle 9i R2 charset ZHS16GBK
    Patch 2323002,2632931,2499827
    JDev903 + BI Beans 903a
    There are two problems
    1. Everything goes well. But when the project is deployed, the Export function will return a error page.
    2. When export data to .csv or .txt using BIB control "ExportOptions", it appears that the chinese fonts all are displayed as "????"

    We need more information on issue #1. What information does the the
    error page contain? If it contains a stack trace / BI Beans error, then
    please post it. If it does not, then please look for an exception
    stack / error in the servlet log. And finally, does the export work
    when running the project in JDeveloper?
    Issue #2 can be resolved by setting the export character encoding.
    What type of application are you trying to deploy (
    JSP, UIX, or Generated Servlet Application )? The mechanism for
    specifying the export character encoding is different for each type of
    application. UTF-8 encoding works on most systems so that is a safe
    default, but the Chinese version of Windows may require a more specific
    character set, such as WINDOWS-936 ( Simplified Chinese ), BIG5 (
    Traditional Chinese ), or WINDOWS-950 ( Traditional Chinese).

  • Unable to export data from Web Access Data Sheet in Sharepoint to local excel or access file

    Greetings and good morning.
    I'm going to start off in broad terms with this question because I'm not 100 percent sure what information to provide.
    Long story short, we've got a Web Access Data Sheet list hosted in a Sharepoint 2010 environment. It is accessed and used by multiple people throughout the day. It contains several thousand line item entries. I'd call it a large data sheet.
    I think the size of the data sheet is casuign some instability in the list. I'd like to be able to export a defined range of data from the list into a local excel or access file. After that, I'd delete the stuff on the Access list to improve performance.
    But...when I attempt to use the Sharepoint Action bar to export - Excel locks up/crashes. If I try to export to Access, I get a similar issue.
    Any ideas? Could anyone begin by telling me what other information is required?

    Hi,
    If you would like to export data from Access Web Database in SharePoint 2010, you could go to Design With Access page in Settings. The url in my environment is http://sp/tt/_layouts/accsrv/ModifyApplication.aspx . Then choose the Table and export it to Excel
    or Modify it in Access.
    Regards,
    Rebecca Tu
    TechNet Community Support

  • Export data from a table to text file using srcipt task

    Hi
    i am new to SSIS
    i have to export data from a table and append it into a existing file through SSIS script task
    please help
    Thanks
    Umesh

    Hi Umesh,
    The data structure of the source table and the structure of the destination file are the same, right? Is the destination file a flat file? Do you have to do it through Script Task? If the destination file is a flat file, this can be done easily by using
    the stock tasks/components other than .NET code. In the Data Flow Task, we choose the appropriate source adapter (such as OLE DB Source or ADO.NET Source) to extract data from the source table, perform transformation if necessary, and then load to the destination
    file via a Flat File Destination. When setting up the Flat File Destination, uncheck the “Overwrite data in the file” option so that the extracted data will be appended to the existing file.
    If you need to implement it through Script Task/Component indeed, you may benefit from the following code examples:
    http://stackoverflow.com/questions/8070163/how-to-add-custom-footer-to-an-ssis-flat-file-seperate-component-or-script-tas 
    http://stackoverflow.com/questions/8467326/add-header-and-footer-row-flat-file-ssis 
    If you need further help about the script, I suggest that you ask a new question in .NET forums where you can get more dedicated support:
    http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?category=netdevelopment 
    Regards,
    Mike Yin
    TechNet Community Support

  • Update and transfer data via BADI LE_SHP_TAB_CUST_HEAD

    Greetings All,
    I've a requirement to create a custom tab in the VL01N/VL02N/VL03N header record displaying custom fields.
    I've successfully implemented BADI LE_SHP_TAB_CUST_HEAD, created a subscreen, appended my custom fields to the LIKP table via append structure, and can now view my fields in the transactions listed above.
    I'm having trouble updating the fields in the subscreen and save the values back to the LIKP table.  First question is a) do I do this via the PBO PAI modules in my subscreen, or should I be doing this in the BADI?
    Second question is, if I shuodl be doing this in the BADI, how do I do it.  A simple example is that I have created a field called ZZ_CUST_TIME in LIKP, added it to my sub-screen using data dictionary linking.
    How do I pass a value entered into this field via VL02N back to the transaction for update?
    Any suggestions would be greatfully appreciated.
    Regards,
    Steve

    Dear Abhishek,  can you explain the step..in this step screen is comming but custom fields value is not coming and also likp table is not updated
    Correct AnswerRe: Update and transfer data via BADI LE_SHP_TAB_CUST_HEAD
    Abhisek Biswas Jan 21, 2009 7:28 AM (in response to Stephen Keam)
    Hi Stephen,
    You can do it by using PBO and PAI modules of the screen that you created. But you have to transfer the data from subscreen to the BADI method TRANSFER_DATA_FROM_SUBSCREEN and aslo from method TRANSFER_DATA_TO_SUBSCREEN to the subscreen. This will update the screen field data to LIKP.
    You can aceive this by two ways.
    1) You can use EXPORT in method TRANSFER_DATA_TO_SUBSCREEN and then IMPORT the value in the screen PBO. And You can EXPORT data from screen PAI and IMPORT data in method TRANSFER_DATA_FROM_SUBSCREEN.
    2) Anither way to do it is by using Function modules and Function Group instead of EXPORT/IMPORT.
    Create a Function group. In the global data define a structure/Work Area of type LIKP.
    DATA w_likp TYPE likp.
    Then create two Function modules, one to export data and another to import data.
    Let us assume that the export FM takes in IS_LIKP as input and the import FM outputs the value of LIKP into ES_LIKP.
    Then pass the value is_likp to the export FM in the BADI method TRANSFER_DATA_TO_SUBSCREEN and in the screen PAI pass the LIKP data to the export FM.
    In the export Function module write the following code:
    MOVE is_likp TO w_likp
    Then in the Import FM write the following code:
    MOVE w_likp TO es_likp.
    The import FM is called from method TRANSFER_DATA_FROM_SUBSCREEN and from screen PBO.
    This will solve your problem.
    Regards,
    Abhisek.
    Alert Moderator
    Like (0)
    Reply

Maybe you are looking for