How to export data with months on columns?

Folks,
I need to export data from BPC NW in this format:
ENTITY,ACCOUNT,JAN,FEB,MAR,APR,MAY,JUN,JUL,AUG,SEP,OCT,NOV,DEC
Does anybody has a sample transformation file or guidelines on how to achieve it?
I tried *MVAL without luck.
Thanks
Paulo

Hi Paulo,
*MVAL could have been helpful while importing and if you would have been converting key figure model to account based model. However, you are trying to do complete opposite. You are exporting data and converting account based model to key figure model. I would suggest you to make use of BADI start an end routines for this.
Hope this helps.

Similar Messages

  • How to export data with column headers in sql server 2008 with bcp command?

    Hi all,
    I want know "how to export data with column headers in sql server 2008 with bcp command", I know how to import data with import and export wizard. when i
    am trying to import data with bcp command data has been copied but column names are not came.
    I am using the below query:-
    EXEC master..xp_cmdshell
    'BCP "SELECT  * FROM   [tempdb].[dbo].[VBAS_ErrorLog] " QUERYOUT "D:\Temp\SQLServer.log" -c -t , -T -S SERVER-A'
    Thanks,
    SAAD.

    Hi All,
    I have done as per your suggestion but here i have face the below problem, in print statment it give correct query, in EXEC ( EXEC master..xp_cmdshell @BCPCMD) it was displayed error message like below
    DECLARE @BCPCMD
    nvarchar(4000)
    DECLARE @BCPCMD1
    nvarchar(4000)
    DECLARE @BCPCMD2
    nvarchar(4000)
    DECLARE @SQLEXPRESS
    varchar(50)
    DECLARE @filepath
    nvarchar(150),@SQLServer
    varchar(50)
    SET @filepath
    = N'"D:\Temp\LDH_SQLErrorlog_'+CAST(YEAR(GETDATE())
    as varchar(4))
    +RIGHT('00'+CAST(MONTH(GETDATE())
    as varchar(2)),2)
    +RIGHT('00'+CAST(DAY(GETDATE())
    as varchar(2)),2)+'.log" '
    Set @SQLServer
    =(SELECT
    @@SERVERNAME)
    SELECT @BCPCMD1
    = '''BCP "SELECT 
    * FROM   [tempdb].[dbo].[wErrorLog] " QUERYOUT '
    SELECT @BCPCMD2
    = '-c -t , -T -S '
    + @SQLServer + 
    SET @BCPCMD
    = @BCPCMD1+ @filepath 
    + @BCPCMD2
    Print @BCPCMD
    -- Print out below
    'BCP "SELECT 
    * FROM   [tempdb].[dbo].[wErrorLog] " QUERYOUT "D:\Temp\LDH_SQLErrorlog_20130313.log" -c -t , -T -S servername'
    EXEC
    master..xp_cmdshell
    @BCPCMD
      ''BCP' is not recognized as an internal or external command,
    operable program or batch file.
    NULL
    if i copy the print ourt put like below and excecute the CMD it was working fine, could you please suggest me what is the problem in above query.
    EXEC
    master..xp_cmdshell
    'BCP "SELECT  * FROM  
    [tempdb].[dbo].[wErrorLog] " QUERYOUT "D:\Temp\LDH_SQLErrorlog_20130313.log" -c -t , -T -S servername '
    Thanks, SAAD.

  • How to add date with month after convert number to month?

    How to add date with month after convert number to month?
    Month Date Result
    24 21/11/09 24*(21/11/09)
    I want to add both the column and result should be 21/11/11
    Thanks
    Nihar

    Hmm,
    Because, you are using YYYY for '09'.
    SQL> ed
    Wrote file afiedt.buf
      1* select to_char(to_date('10/01/09','DD/MM/RRRR'),'DD/MM/YYYY') from dual
    SQL> /
    TO_CHAR(TO
    10/01/2009
    SQL> ed
    Wrote file afiedt.buf
      1* select to_char(to_date('10/01/09','DD/MM/YYYY'),'DD/MM/YYYY') from dual
    SQL> /
    TO_CHAR(TO
    10/01/0009Or with Add_months
    SQL> ed
    Wrote file afiedt.buf
      1* select to_char(add_months(to_date('10/01/09','DD/MM/YYYY'),36),'DD/MM/YYYY') from dual
    SQL> /
    TO_CHAR(AD
    10/01/0012
    SQL> ed
    Wrote file afiedt.buf
      1* select to_char(add_months(to_date('10/01/09','DD/MM/RRRR'),36),'DD/MM/YYYY') from dual
    SQL> /
    TO_CHAR(AD
    10/01/2012-Arun

  • How to export date with metadata

    How do I include date when exporting metadata (not with the image).
    I can't get Aperture (3.1.2) to export any kind of date. It shows the date field field, but the value is blank. Using Automator I can extract and export IXIF date which includes the time. I'd like to be able to export the date without the time code.
    Thanks for any help.

    In the Metadata tab of the Inspector, choose IPTC Core. Then, in the Image brick, click in the Date Created field to set it. See if the date now exports with your metadata.
    Let us know if that works. Thanks

  • Matrix with dates of months as column heading

    Hi you all, I'm trying to generate a query with the books name, dates of months as column headings and show the count of books sold on that particular date.
    the expected format is
    01-Jun-2006 02-Jun-2006 .................... 30-Jun-2006
    Book1 2 4 0
    Book2 2 0 6
    can anyone help me..... please.........

    You didn't give us the table structure.
    Considering the table having two columns BOOK_NAME and PURCHASE_DATE, find the query below for MAY. Change the Query accordingly if you want for a different month.
    SELECT BOOK_NAME,
           SUM(DECODE(PURCHASE_DATE,TO_DATE('01-MAY-2006','DD-MON-YYYY'),1,0)) "01-MAY-2006",
           SUM(DECODE(PURCHASE_DATE,TO_DATE('02-MAY-2006','DD-MON-YYYY'),1,0)) "02-MAY-2006",
           SUM(DECODE(PURCHASE_DATE,TO_DATE('03-MAY-2006','DD-MON-YYYY'),1,0)) "03-MAY-2006",
           SUM(DECODE(PURCHASE_DATE,TO_DATE('04-MAY-2006','DD-MON-YYYY'),1,0)) "04-MAY-2006",
           SUM(DECODE(PURCHASE_DATE,TO_DATE('05-MAY-2006','DD-MON-YYYY'),1,0)) "05-MAY-2006",
           SUM(DECODE(PURCHASE_DATE,TO_DATE('06-MAY-2006','DD-MON-YYYY'),1,0)) "06-MAY-2006",
           SUM(DECODE(PURCHASE_DATE,TO_DATE('07-MAY-2006','DD-MON-YYYY'),1,0)) "07-MAY-2006",
           SUM(DECODE(PURCHASE_DATE,TO_DATE('08-MAY-2006','DD-MON-YYYY'),1,0)) "08-MAY-2006",
           SUM(DECODE(PURCHASE_DATE,TO_DATE('09-MAY-2006','DD-MON-YYYY'),1,0)) "09-MAY-2006",
           SUM(DECODE(PURCHASE_DATE,TO_DATE('10-MAY-2006','DD-MON-YYYY'),1,0)) "10-MAY-2006",
           SUM(DECODE(PURCHASE_DATE,TO_DATE('11-MAY-2006','DD-MON-YYYY'),1,0)) "11-MAY-2006",
           SUM(DECODE(PURCHASE_DATE,TO_DATE('12-MAY-2006','DD-MON-YYYY'),1,0)) "12-MAY-2006",
           SUM(DECODE(PURCHASE_DATE,TO_DATE('13-MAY-2006','DD-MON-YYYY'),1,0)) "13-MAY-2006",
           SUM(DECODE(PURCHASE_DATE,TO_DATE('14-MAY-2006','DD-MON-YYYY'),1,0)) "14-MAY-2006",
           SUM(DECODE(PURCHASE_DATE,TO_DATE('15-MAY-2006','DD-MON-YYYY'),1,0)) "15-MAY-2006",
           SUM(DECODE(PURCHASE_DATE,TO_DATE('16-MAY-2006','DD-MON-YYYY'),1,0)) "16-MAY-2006",
           SUM(DECODE(PURCHASE_DATE,TO_DATE('17-MAY-2006','DD-MON-YYYY'),1,0)) "17-MAY-2006",
           SUM(DECODE(PURCHASE_DATE,TO_DATE('18-MAY-2006','DD-MON-YYYY'),1,0)) "18-MAY-2006",
           SUM(DECODE(PURCHASE_DATE,TO_DATE('19-MAY-2006','DD-MON-YYYY'),1,0)) "19-MAY-2006",      
           SUM(DECODE(PURCHASE_DATE,TO_DATE('20-MAY-2006','DD-MON-YYYY'),1,0)) "20-MAY-2006",                    
           SUM(DECODE(PURCHASE_DATE,TO_DATE('21-MAY-2006','DD-MON-YYYY'),1,0)) "21-MAY-2006",                    
           SUM(DECODE(PURCHASE_DATE,TO_DATE('22-MAY-2006','DD-MON-YYYY'),1,0)) "22-MAY-2006",             
           SUM(DECODE(PURCHASE_DATE,TO_DATE('23-MAY-2006','DD-MON-YYYY'),1,0)) "23-MAY-2006",             
           SUM(DECODE(PURCHASE_DATE,TO_DATE('24-MAY-2006','DD-MON-YYYY'),1,0)) "24-MAY-2006",
           SUM(DECODE(PURCHASE_DATE,TO_DATE('25-MAY-2006','DD-MON-YYYY'),1,0)) "25-MAY-2006",
           SUM(DECODE(PURCHASE_DATE,TO_DATE('26-MAY-2006','DD-MON-YYYY'),1,0)) "26-MAY-2006",                    
           SUM(DECODE(PURCHASE_DATE,TO_DATE('27-MAY-2006','DD-MON-YYYY'),1,0)) "27-MAY-2006",                    
           SUM(DECODE(PURCHASE_DATE,TO_DATE('28-MAY-2006','DD-MON-YYYY'),1,0)) "28-MAY-2006",             
           SUM(DECODE(PURCHASE_DATE,TO_DATE('29-MAY-2006','DD-MON-YYYY'),1,0)) "29-MAY-2006",             
           SUM(DECODE(PURCHASE_DATE,TO_DATE('30-MAY-2006','DD-MON-YYYY'),1,0)) "30-MAY-2006",
           SUM(DECODE(PURCHASE_DATE,TO_DATE('31-MAY-2006','DD-MON-YYYY'),1,0)) "31-MAY-2006"
    FROM BOOKS 
    GROUP BY BOOK_NAME     
    Regards,
    Mohana

  • How to Convert Date to Month in Database which is pointing to EBS, Not DWH.

    Hi Friends,
    We are planning to create reports in OBIEE and the Source is EBS. That means, we don’t want to depends on Datawarehouse and Informatica and OBIApps. We just create some reports and they are pointing to EBS database.
    For testing purpose, we have taken one HR Report and it containsthe below columns:
    Month (Dim)
    Revenue Per Employee Headcount (Fact)
    Average Cost per Active Workforce Headcount (Fact)
    In my little investigation, we found that Revenue column is coming from EBS: GL_BALANCES. And we configured W_Day_D base table in DAC as there is no Month column in EBS (Not sure).
    *** Coming to my problem, how can I call Month column in my database pointed to EBS. How to convert Date to Month in my database.
    I could be wrong but anyone please look into this issue.. How can I create columns for that exact OBI report in EBS database instead of DwH.
    Thanks in Advance..
    Raghu Nagadasari

    Hi Veeresh,
    You are right. Here, no need of using W_DAY_D table, but, we need all the stuff from the table and to explain my problem i have taken that table as an example. Now, we ran scripts for W_MONTH_D and W_DAY_D tables with EBS columns. So, we are getting data for the tables. In the same manner we have to create scripts for the below tables.
    W_GL_ACCOUNT_D
    W_GL_OTHER_F
    W_STATUS_D
    W_MCAL_DAY_D
    W_EMPLOYMENT_STAT_CAT_D
    W_WRKFC_BAL_A
    W_DAY_D (Completed)
    W_MONTH_D (Completed)
    But, we are not aware of EBS Tables and their columns much. So, we are back tracing from RpD --> DAC --> Info --> EBS for each and every column and its taking much time.
    So, if anyone of you facing the same issue, please share the EBS tables for the corresponding OBI tables, which are mentioned above.

  • Open Hub: How-to doc "How to Extract data with Open Hub to a Logical File"

    Hi all,
    We are using open hub to download transaction files from infocubes to application server, and would like to have filename which is dynamic based period and year, i.e. period and year of the transaction data to be downloaded. 
    I understand we could use logical file for this purpose.  However we are not sure how to have the period and year to be dynamically derived in filename.
    I have read in sdn a number of posted messages on a similar topic and many have suggested a 'How-to' paper titled "How to Extract data with Open Hub to a Logical Filename".  However i could not seem to be able to get document from the link given. 
    Just wonder if anyone has the correct or latest link to the document, or would appreciate if you could share the document with all in sdn if you have a copy.
    Many thanks and best regards,
    Victoria

    Hi,
    After creating open hub press F1 in Application server file name text box from the help window there u Click on Maintain 'Client independent file names and file paths'  then u will be taken to the Implementation guide screen > click on Cross client maintanance of file name > create a logical file path by clicking on new entiries > after creating logical file path now go to Logical file name definition there give your Logical file , name , physical file (ur file name followed by month or year what ever is applicable (press f1 for more info)) , data format (ASC) , application area (BW) and logical path (choose from F4 selection which u have created first), now goto Assignment of  physical path to logical path > give syntax group >physical path is the path u gave at logical file name definition.
    however we have created a logical path file name to identify the file by sys date but ur requirement seems to be of dynamic date of tranaction data...may u can achieve this by creating a variable. U can see the help from F1 that would be of much help to u. All the above steps i have explained will help u create a dynamic logical file.
    hope this helps u to some extent.
    Regards

  • How to export data from a Oracle table to a delimited file?

    I know how to load delimited file into a table, but how to export
    data from a Oracle table to a delimited file?
    Thanks in advance.

    Try looking at this link, it's long but there's three different solutions discussed in it. If you look at Barbara Boehmer's
    solution in her posts in the link below you'll see that she's addressed your concerns with spool files.
    Re: utl_smtp and triggers

  • How to export data from a spread sheet which has multiple work sheets?

    How to export data from a spread sheet which has multiple work sheets to a single text file with fixed length fields?

    Hello s1,
    saving them as CSV will not give a fixed legth output but, as the naming says, a Character Separated Value file.
    Regards
    Marcus

  • SQL Developer 3.2 - Exporting data with TIMESTAMP datatype

    Hi,
    We have users that are attempting to export data with the Timestamp format to Excel (xls format) using SQL Developer 3.2.  When attempting to sort the Timestamp in either asc or desc order, Excel is having issues sorting correctly.  I suggested that the user just do all the sorting within their SQL Developer session but they require the ability to slice and dice in Excel.
    This is definitely not an issue with Excel as the users have previously exported Timestamp data from Toad and been able to sort without issue.  Any thoughts as to what might resolve this issue? 
    Thanks.

    We're not formatting timestamps in Oracle as numbers/dates in Excel. They'll need to properly format the Excel column/cells to get it to sort the way they want vs being treated as simple strings.

  • Best way to export data with r.t. prompts and have dense dim mbrs on rows?

    Hi All-
    What is the best way to export data with Run time prompts out of Essbase?
    One thought was to use Business Rules with run time variables and DATAEXPORT command, but I came across at least one limitation where I cannot have months (part of dense Time Periods dimension) on rows.
    I have only two dense dimensions: Accounts and Time Periods and I need both of these on rows. This would come handy when user enter Start and End month and year for data to be exported e.g. If start period is Feb 2010 and end is Jan 2011, I get data for all months in 2010 and 2011.
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000",14202.24,14341.62,14560,13557.54,11711.92,10261.58,12540.31,15307.83,16232.88,17054.62,18121.76,18236
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000",19241,21372.84,21008.4,18952.75,23442.13,19938.18,22689.61,23729.29,22807.48,23365,23915.3,24253
    "CORP1","0173","FY11","Working","Budget","Local","HSP_InputValue","404000",21364,22970.37,23186,27302,25144.38,27847.91,27632.11,29007.39,24749.42,27183.39,26599,27112.79
    where ideally I would need to get the following:
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000","Feb",14341.62
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000","Mar",14560
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000","Apr",13557.54
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000","May",11711.92
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000","Jun",10261.58
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000","Jul",12540.31
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000","Aug",15307.83
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000","Sep",16232.88
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000","Oct",17054.62
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000","Nov",18121.76
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","402000","Dec",18236
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000","Feb",21372.84
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000","Mar",21008.4,
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000","Apr",18952.75
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000","May",23442.13
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000","Jun",19938.18
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000","Jul",22689.61
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000","Aug",23729.29
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000","Sep",22807.48
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000","Oct",23365
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000","Nov",23915.3
    "CORP1","0173","FY10","Working","Budget","Local","HSP_InputValue","403000","Dec",24253
    "CORP1","0173","FY11","Working","Budget","Local","HSP_InputValue","404000","Jan",21364
    Thank you in advance for any tips.

    Have a read of the following post :- export data to sql
    It may give you a further option.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Export data with Dreamweaver (TXT, CSV)

    Hi to all of the Adobe community.
    My question to me is a little hard for my level of knowledge.
    I'm using Dreamweaver using technology PHP / MySQL, in my database have a table in MySQL called mailing list, with the fields name and email.
    I have a php page that I developed using the Dynamic Table where it returns me a list of names and e-mail registrations. What I would like to make is that at the end of this table I have a link or a button called export data. I wish that when you export this data be txt or csv format.
    How?
    Export data and further define the format to be exported.
    I'm using Dreamweaver CS4.
    Rodrigo Vieira da Silva Eufrasio
    E-mail: rodrigo.mct @ gmail.com
    Mobile: +55 11 8183-9484
    Brazil - Osasco - SP

    It is doable.
    Assume for the moment that you are not paging the query results (that is, you are display ALL results at one time).
    You would need to do the following when the button is clicked (the action calling a separate file for the processing):
    Open a file on the server for writing ($ofile = fopen("data.txt","w");)
    Repeat your query but instead of echo $row_Record set.... you would use fwrite($ofile, $row_Recordset...
    In between fields you would need fwrite($ofile, "\t") to put in a tab or fwrite($ofile, ",") for a CSV,
    At the end of every line you would need a <cr><lf>: fwrite ($ofile, "\r\n");
    Close the file - fclose ($ofile);
    Then use the header function to force the download of this file like this.
    header('Content-disposition: attachment; filename=data.txt');
    header('Content-type: text');
    readfile('data.txt);
    The header function has to be the first thing sent to the user. Any white space would cause it to fail. I haven't tried this part after a DB query, but it should work. If it doesn't you will have to invoke the header routine in a separate file.
    Hope this helps.
    Barry

  • Importing and Exporting Data with a Clob datatype with HTML DB

    I would like to know what to do and what to be aware of when Importing and Exporting data with a Clob Datatype with HTML DB?

    Colin - what kind of import/export operation would that be, which pages are you referring to?
    Scott

  • How to Export data from webdynpro using Jecxcel

    Hi ,
    Can anyone help me how to export data from web dynpro using Jexcel. kindly send me the related links.
    Thanks

    Hi Sandeep,
    Have you refered in the blogs?
    U can find may more document related to this.the below blog helps u in
    Exporting Data from Web Dynpro in Different Formats Using Open Source (POI, JExcel, iText) APIu2019s.
    https://www.sdn.sap.com/irj/sdn/index?rid=/library/uuid/b030e7fb-2662-2b10-0dab-c4aa52c3550b
    Regards
    Supraja

  • How to get  data with the raw pattern from resultset ?

    would you tell me how to get data with the raw pattern from resultset ?
    thank you in advance!
    longgger2000

    I tried getBytes() and getObject()
    , but I can not get the right result , for example the
    data in oracle database is 01000000DFFF, when In used
    the method of getBytes() and getObject(), I get the
    result of [B@1c2e8a4, very different , please tell me
    why !
    thank you
    longgger2000
    [B is byte arrayseem that it return an bytes array for you.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Maybe you are looking for

  • Not able to get the sound from my tv to come through my surround sound speakers

    I have a new Samsung 46" tv and a new yamaha receiver also a new Samsung blu-ray player.  I currently have an HDMI cable going from my tv to my receiver and a short HDMI cable going to my Blu-ray player and the old style red and white rca cables from

  • BUG: Software monitoring and playback levels

    Have you ever thought your headphone monitoring level jumped up or down, for no apparent reason ? I think I may have found out why... try this: 1) Turn ON Software Monitoring. Independent Monitoring Level can be on or off, it doesn't matter. Take an

  • Transfer info from hp laptop to new macbook pro

    hello I just recently brought a macbook pro for school. as the title states i am going from pc (windows XP) to mac (snow leopard), finally. I have an external harddrive but have a few questions on syncing my iPhone 3G and iPod classic over. -Should i

  • For people who wants to use java with version of palmos before 3.5.

    The new version of kjava for palmos (MIDP) you can found on java.sun.com only works if you use a version fo palmos greater than 3.5. If not you need to use the presious virtual machine kvm and KvmUtil. You need the two following files :           j2m

  • Shopping cart from catalog in sourcing cockpit

    Hi experts I have a doubt when I create a shopping cart from a catalog it's going to sourcing cockpit of the buyer I am in SRM 5.5 ECS, I have configuted in customizing for soucing option 5 Aut Grouping . Sourcing for itens whithout assigned souce, I