Export BW-BCS data to the ECC

Hi,
I got request to create this customized report: ECC-BCS GL Statement Report in ECC. Basically in this report, user can compare the total GL figure in both server: ECC and BCS. At the same time, user also can track all the adjustment done in BCS via UCMON.
List of report fields:
below list is from ECC table
1. Company Code
2. GL Account
3. GL Description
4. Total GL in ECC
below list is from BCS table
5. BCS-00 --> for posting level 00
6. BCS-01 --> for posting level 01
7. Total GL in BCS (00 + 01)
8. ECC-BCS Diff (4 - 7)
To get the BCS data into ECC, my plan is to create the RFC programming.
I managed to get field 1 til field 4 by calling tcode F.01. To get field 5 til field 7 is from List of Totals Records report in UCMON.
At first I thought to use BDC to call the the report in UCMON. Then i got problem on the screen handling.
My last choice is to find the exact table for that report in BW. then using select statement, I pull data for field 5 til field 7. But then, until now I can't find the table that keep all the BCS data. I managed to display the data from the cube (ZBCS_C11). Now I need to know how to export the BCS data to the ECC.
Appreciate if you could share some input on this. Otherwise my user have to maintain download the GL number from ECC and BCS. Using both information, user need to v-lookup to match the BCS to ECC
thanks

Hi Alisher,
You are refering to transformation file for record count. But in transformation file we mention the IDs which are displayed in some other format and we want to change them to the other.
In your case, would like to know, do you have some property in dimension which displays the record counts? If you have then you can design it using transformation and conversion files. But incase you dont have any such property then you can not add new column in the export file.
Hope this clarifies.
Rgds,
Poonam

Similar Messages

  • SEM-BCS data extractor from ECC general ledger table(s)

    We are a utility company working on an SEM-BCS implementation and use the FERC solution.  We do not use the new GL.  We are trying to extract the transaction data from ECC to a BI virtual remote cube.  We cannot use the profit center extractor (0EC_PCA_3) as the profit center tables do not contain any ferc data.  We need to be able to extract the transaction data from a general ledger table.  We have run into several issues with various extractors we have tried because they donu2019t allow direct access (0FI_GL_4) or are at a summary level and we canu2019t extract group account, trading partner, and transaction type detail (0FI_GL_1).  Would you have any suggestions on how to extract general ledger data with the detail information required from ECC to be able to load to a BI virtual remote cube?

    We are going forward with getting the natural account detail data using the profit center extractor 0EC_PCA_3, and getting the ferc summary data using the general ledger extractor 0FI_GL_1.  With our testing so far, this combination will provide us the data we need in BCS.

  • Creation of  order details data inside the ECC server..

    hii guys..
    i am facing a problem when i try 2 implement an application in which i have 2 access the order details.but before tht i need to create the info details inside the ECC server..so can u tell me the steps to push the data into ECC server and then deployment of application.
    if u need any further info about my query plz reply me.
    thnks
    ashish

    Hi Ashish,
    The transactions that must be used to create Sales Orders in the ECC are:
    VA01: Create
    VA02: Modify
    VA03: Display
    Specific details on how to create a SO at:
    Creating Sales Orders (SAP Library - Sales (SD-SLS))
    The transactions that must be used to create Purchase Orders in the ECC are:
    ME21N: Create
    ME22N: Change
    ME23N: Display
    Specific details on how to create a PO at:
    Creating a Purchase Order (SAP Library - Sales and Distribution (SD))
    Regarding your question about how to program a Mobile application, it depends on what approach you want to use.
    In the SAP Mobile Platform, there are several different technologies available to develop a mobile app that communicates to SAP. That includes mobile platforms and frameworks.
    The major platforms in the SAP mobile technologies are:
    1. SUP
    2. Syclo
    3. NW gateway
    4.  Sybase Mobiliser.
    SAPUI5, PhoneGap, Sencha, Appcelerator etc are some major frameworks based on web technologies that helps to develop cross platform mobile app.
    You can find more information in this thread:
    SAP Mobile App development
    Best Regards,
    Emanuel

  • Export WebI , only data on the report.

    Hi All,
    I am using Business Objects XI R2.I am trying to generate an excel sheet from a WebI report.When I export i get all the formatting and the embedded report graphs.Is there a way in which I could get just the data in tables that is displayed in the final report and no graphs?
    I am trying to export reports using the SDK.
    Thanks and Regards,
    Arshiya

    Make sure you are using the latest runtime for CR 10.2. See the links in [this|https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsforVisualStudio.NETRuntimeDistribution-Versions9.1to12.0] wiki.
    If that does not help, let me know if you see the data when the report is exported to Crystal Reports format.
    Also, try to enable the "No printer" option on the report(s) and see if the issue goes away when these are run by the customers.
    Finally, check the screen resolution used by these customers. If it is much different than yours, see if matching their resolution to what you have helps.
    Ludek

  • Exporting Crystal Report data to the Excel Print Headers

    Hello everyone.  I am trying to do something with Excel headers that is a little more advanced than the usual.  I have multiple reports that are designed to export to Excel.  Normally I only export a report header.  However, I have a customer who wants a label to appear in each page header and footer in Excel. Here is the catch - they want the label to appear in the Excel print header and footer, not just on the main excel page.  The label contains an SBU marking, so there is a requirement that it gets printed on every page.
    If you are not familiar with the print header, it is a separate section of an Excel document that appears when you print the excel document.  For this operation, I don't think I can use the built-in Crystal Export options.  I have tried to Export to Microsoft Excel and I can send the page header and footer to the Excel data sheet, but not to the print header/footer. 
    Thanks for your help!
      - David

    Hi David,
    I haven't worked with Excel's headers and footers but you are correct that Crystal can't export to those sections.  I have though had to make modifications to an Excel file after exporting and I believe you will need to do something similar to what I did.
    After I exported the report to Excel, I had a program I wrote that opened the Excel file and modified it.  In my case I just had to encrypt it, zip it up and email it.  You may need to do something as well outside of Crystal and Excel.  Crystal doesn't export to an Excel template so automating it in Excel wouldn't work.
    Good luck,
    Brian

  • BCS Data Model (which one is the best)

    Hi,
    We are implementing SEM-BCS 6.0 with SAP BI 7.0.
    We have 2 possibilities for a data model and we need help to decide which one is the best.
    The first possibility is:
    1)       SAP ECC 6.0:
    a.      Define 2 (two) charts of accounts (company chart of accounts and consolidation chart of accounts) that are mapped/linked in transaction FSP0;
    b.      Define Balance and an Income Statement hierarchy for the group/consolidation chart of accounts;
    2)       BW (BI 7.0)
    a.      In BW we also have both charts of accounts, with a Balance and an Income Statement hierarchy for the group/consolidation chart of accounts. These ones were replicated from source system SAP ECC;
    3)       SEM-BCS 6.0
    a.      IN BCS we update the Financial Statement Item automatically based on/equal to consolidation chart of accounts (and not based on Balance and Income statement);
    b.      For reporting issues, we will define BW workbooks,  based on the Group Balance and Income statement,  for Consolidation reporting. In resume, we will have the Balance and an Income Statement hierarchy for the group/consolidation chart of accounts, created in SAP ECC, replicated in BW in order to report consolidated data.
    The second possibility:
    1)       SAP ECC 6.0:
    In R3 we only have the company chart of accounts. For consolidation purposes  we will define a Balance and an Income statement item hierarchies, one for legal report and the second one for management report, which the superior nodes (items) are the aggregation of G/L Accounts (below nodes).
    2)       BW (BI 7.0)
    In BW we will replicate the Balance and Income Statement that was created in SAP ECC.
    3)       SEM-BCS 6.0
    In BCS we would have to:
                                                      i.      Create automatically the Financial Statement Item, based on the items of Balance and an Income Statement hierarchies, which would be a concatenate of the two item hierarchies.
                                                     Or
                                                        ii.      Create 2 Financial Statement Items, where which one would depend on the balance or the income statement hierarchy.
    Which of the possibilities is the best?
    Having 2 charts of accounts (company and consolidation) or just have one chart of accounts (company) and have a balance item hierarchy consolidated and create the financial statement item in BCS having this hierarchy in account and not a consolidation chart of accounts?
    In our opinion the first scenario is the best one, because is seem to be more flexible and as we have the intention to use SEM BPS in the next year, for budget purpose. Furthermore, we think that with the first scenario we can have a FS Chart of accounts (in BCS) that is not dependent of reporting purposes (based on Balance and Income statements). 
    Is this interpretation correct?
    Thanks

    Hi Ricardo,
    Yes, The first one is the best choice and it is the way to work.
    SAP has given some How-to documents, which are available in service market place. These documents also suggest almost same path as first choice.
    Thanks

  • Is there any way to export IT Resource data from OIM using the export tool?

    Hello,
    we are trying to migrate an OIM development environment to a preproduction environment and we need to migrate more than 400 IT Resources. We have exported some IT Resources and when we imported them in the preproduction environment their data was not migrated. Is there any way to export IT Resource data from OIM using the export tool? Or is there any other way to do this without doing it by hand?
    Thank you for your help
    Kind Regards

    Well , OIM doesnot provide any such facility to export ITResource data along with ITResource .
    Directly updating the DB could be an option ..
    Thanks

  • SSRS 2008 R2 - Dynamic header data stays the same when exporting

    Background:
    I have a SSRS 2008 R2 report with a single Tablix.
    The data is grouped by InvoiceID, with each appearing on a separate page.
    I'm displaying some of the detail data in the group header row using Expressions similar to the following:
    ="Invoice # "  & ReportItems!InvoiceID.Value"
    The data referred to by my ReportItems statements are all hidden in the detail row (Advanced Mode, the Hidden Value for the Static Row Group is set to false).
    Problem:
    When I Preview the report in Visual Studio, everything looks as it should - the dynamic header data changes correctly with each group.
    However, whenever I export the results (I've tried all the formats), the header data is the same for every group - its taking the values from the first group and using it in all the groups.
    I've copied the same expressions into my Totals row, and the data is correct when exported; its only happening in my header rows.
    Any help in resolving this is greatly appreciated, thank you.

    Hi Alex,
    According to your description, you have a header with expression contains ReportItems. Now you find it shows incorrect result when exporting to a file. Right?
    In Reporting Services, it has reported some similar issue that the ReportItem returns unexpected result when exporting.  In this scenario, since you just want to show the group name in each page as a header for detail rows. So you can make the
    detail rows group on the Group. Then delete the Group column but still keep the group. After that add a row above detail row (Out side of group) and put in "=Fields!InvoiceID.Value". Now it will show the corresponding Group name
    when you set page break between each group instance. We have tested this case in our local environment. Here are screenshots for your reference:
    Reference:
    SSRS
    field expressions using ReportItem refrences have unexpected results when exporting
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • How to export some data from the tables of an owner with integrity?

    Hi to all,
    How to export some data from the tables of an owner with integrity?
    I want to bring some data from all tables in a single owner of the production database for development environment.
    My initial requirements are: seeking information on company code (emp), contract status (status) and / or effective date of contract settlement (dt_liq_efetiva) - a small amount of data to developers.
    These three fields are present in the main system table (the table of contracts). Then I thought about ...
    - create a temporary table from the query results table to contract;
    - and then use this temporary table as a reference to fetch the data in other tables of the owner while maintaining integrity. But how? I have not found the answer, because: what to do when not there is the possibility of a join between the contract and any other table?
    I am considering the possibility of consulting the names of tables, foreign keys and columns above, and create dynamic SQL. Conceptually, something like:
    select r.constraint_name "FK name",
    r.table_name "FK table",
    r.column_name "FK column",
    up.constraint_name "Referencing name",
    up.table_name "Referencing table",
    up.column_name "Referencing column"
    from all_cons_columns up
    join all_cons_columns r
    using (owner, position), (select r.owner,
    r.constraint_name fk,
    r.table_name table_fk,
    r.r_constraint_name r,
    up.table_name table_r
    from all_constraints up, all_constraints r
    where r.r_owner = up.owner
    and r.r_constraint_name = up.constraint_name
    and up.constraint_type in ('P', 'U')
    and r.constraint_type = 'R'
    and r.owner = 'OWNERNAME') aux
    where r.constraint_name = aux.fk
    and r.table_name = aux.table_fk
    and up.constraint_name = aux.r
    and up.table_name = aux.table_r;
    -- + Dynamic SQL
    If anyone has any suggestions and / or reuse code to me thank you very much!
    After resolving this standoff intend to mount the inserts in utl_file by a table and create another program to read and play in the development environment.
    Thinking...
    Let's Share!
    My thanks in advance,
    Philips

    Thanks, Peter.
    Well, I am working with release 9.2.0.8.0. But the planning is migrate to 10g this year. So my questions are:
    With Data Pump can export data just from tables owned for me (SCHEMAS = MYOWNER) parameterizing the volume of data (SAMPLE) and filters to table (QUERY), right? But parameterizing a contract table QUERY = "WHERE status NOT IN (2,6) ORDER BY contract ":
    1º- the Data Pump automatically searches for related data in other tables in the owner? ex. parcel table has X records related (fk) with Y contracts not in (2,6): X * SAMPLE records will be randomly exported?
    2º- for the tables without relation (fk) and which are within the owner (MYOWNER) the data is exported only based on the parameter SAMPLE?
    Once again, thank you,
    Philips
    Reading Oracle Docs...

  • Set up for Extraction the data from SAP ECC system

    Hi!
    I would like to analyze the transaction and master data from SAP ECC system into SAP BI system.
    I have created the connection (entry for SAP ECC system) within SAP NetWeaver System.
    Unfortunately when I try to load the transaction data for Info source the process does not end successfully.
    There are no information within SM58 on source system.
    The ST22 does not contain some suitable information.
    Question:
    Which settings do I miss and how can solve my problem?
    (user authorization, etc.)
    Thank you very much!
    regards
    Holger

    Hi!
    many thanks for your reply.
    The error I get:
    Errors while sending packages from OLTP to BI
    Diagnosis
    No IDocs could be sent to BI using RFC.
    System Response
    There are IDocs in the source system ALE outbox that did not arrive in the ALE inbox of BI.
    Further analysis:
    Check the TRFC log.
    You can access this log using the wizard or the menu path "Environment -> Transact. RFC -> In source system".
    Error handling:
    If the TRFC is incorrect, check whether the source system is fully connected to BI. In particular, check the authorizations of the background user in the source
    Can you please help me to identify the error?
    Thank you!

  • What is the easiest way to export all tables data from Oracle to MS SQL Server?

    Hello MS,
    I would like to export all tables from Oracle 11.2 to MS SQL Server 2012 R1.
    Using the tool "Microsoft SQL Server Migration Assistant v6.0 for Oracle" did not work for me because there are too many warnings and errors regarding the schema creation (MS cannot know it because they are not the schema designer). My idea is
    to leave/skip the schema creation to the application designer/supplier and instead concentrate on the Oracle data export and MS SQL data import.
    What is the easiest way to export all tables data from Oracle to MS SQL Server quickly?
    Is it:
    - the „MS SQL Import and Export Data“ Tool
    - the “MS SQL Integration Services” Tool
    - not Oracle dump *.dmp format because it is a propritery binary format
    - flat file *.csv (delimited format)
    Thanks!

    Hi lingodingo,
    If you want to directly export all tables from Oracle database to SQL Server, I suggest you use SQL Server Import and Export Wizard. Because you just need to follow the wizard with GUI, this is the easiest way.
    If you want to make some modification for the tables‘ data before loading to SQL Server, I suggest you use SQL Server Integration Services package. For more details, please refer to the following similar thread:
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/38b2bed2-9d4e-48d4-a33f-1d9eed1c062d/flat-file-to-sql-server?forum=sqldatamining
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Displaytag to export the only data not the url

    I am using displaytag to export the data but my data is coming like
    but I only want the data to export
    For example I want the only data not the url should be like:
    78190
    My code is as below:
    :<display:table name="bulkDetails" export="true" pagesize="100" id="row" sort="list"> <display:column title="REQUESTID" sortable="true"> <c:url value="../Status" var="url"> <c:param name="Status_Index" value="${row.REQUESTID}"/> </c:url> <a href=${url>${row.REQUESTID} </display:column> while export this data it gives me with full url likebut my need is only data not the full url .
    please help .

    Thanks Helen.
    As you said the files got saved in other location, apart from the specified folder location. However I need info on the files you got after export. Because in my server I can only see GRACSPMRCODE,GRACSPMRCODESDATA and GRACSPMRCODESYSDATA files but not the owners, fire fighters, firefighter ID files.
    Please let me know the files you received.
    Regards,
    Giridhar

  • Any way to export from iPhoto and have the file date be the photo date?

    I can't deal with iPhoto any longer. I just imported photos from the last few days and they ended up being associated with some "Event" from Jul 19, 2007. So now I have an event that spans Jul 19, 2007 to Feb 21, 2009!!! I'd like to just display, sort, view all photos in my library by date (I am meticulous about dates on all my devices) but apparently that's not possible anymore. "Events" is the worse thing to ever happen to my photo library...
    So I'd like to export them all and just use the Finder. It actually works the way I'd like. However there does not seem to be any way to export the photos so that the file creation or the file modification date is the actual date the photo was taken as shown in the information box in iPhoto. Does anyone know how to to this? Or is this just the iPhoto engineers screwing with people like me who have gotten disgusted with their product?
    Thanks!

    Yes, I know what the Finder is... The cool thing is it actually does know about the contents of the file. For example it can display thumbnails of the images contained within.
    Even better the files can be sorted any way you want, are not hidden in some odd proprietary package, can be backed up, restored at will and can easily be programmatically changed using AppleScript. The file system for an OS is generally bullet-proof and as such doesn't screw with dates like iPhoto did (the events stuff screwed with all our dates and has been a disaster for us and the 40,000 or so pictures we had in our library).
    iPhoto has just gotten too modal, too bloated, and too proprietary while not providing the basics like a way for my wife and I to have a single library for all our photos. On the other hand using just the file system and some network storage this is easy.
    For the recored most pros I consulted with have moved to the file system and Finder as their primary means of managing their photos. I'm just looking for an easy way to get my stuff out of iPhoto so I can do the same.

  • RFC receiver adapter issue - ECC side we are seeing blank data for the RFC

    Hi All,
    We are using Receiver RFC adapter to call a custom RFC (Synchronous call). It was working fine, but recently RFC was modified (They added new fields). We re-imported the RFC into ESR and also modified the mapping to reflect the new RFC strucuture. Now when we execute the RFC, at the ECC side no data is beeing seen. On the PI side we see data in sxmb_moni. It looks fine. However we don't see anydata in ECC.  We did full cache refresh but it did not help.
    Please let me know if anyone has any thoughts on this issue.
    Thanks
    -Pradeep

    I enabled the the RFC adapter trace in PI. It appears like adapter is not sending the structure and tabled that are populated. IT is sending only 230 bytes. Any clue why would rfc adapter drop the tables and structures??
    FUNCTION Z_FI_AA_BAPI_ASSET_CHANGE
        handle = 2
        parameter   = <null>
        parameter   = <null>
        tables = <null>
    >>>> [2] <unknown> EXT <ac: 6> >>> FLUSH (READ) (88578752)
    Send RFCHEADER [2]: 01/BIG/IEEE/SPACE-U2/52494850
    Send UNICODE-RFCHEADER [2]: cp:4102/ce:IGNORE/et:6/cs:2/rc:0x00000023
    UUID: send_rfcuuid B6D708F0-B946-11E0-BC35-EEB4AC138154
    UUID:  RfcCallNew send the uuid to the partner:B6D708F0-B946-11E0-BC35-EEB4AC138154
    >>>> [2] <unknown> EXT <ac: 7> >>> WRITE (88578752)
    000000 | 01010008 01020105 04010002 01010103 |................
    000010 | 00040000 020B0103 0106000B 04010002 |................
    000020 | 01060200 00002301 06000700 1A003100 |......#.......1.
    000030 | 37003200 2E003100 39002E00 31003200 |7.2...1.9...1.2.
    000040 | 39002E00 38003400 07001100 02004500 |9...8.4.......E.
    000050 | 11001200 06003600 34003200 12001300 |......6.4.2.....
    000060 | 08003700 30003000 20001300 08001800 |..7.0.0. .......
    000070 | 73006100 70007000 69002D00 64006500 |s.a.p.p.i.-.d.e.
    000080 | 76002D00 64003100 08000600 28007300 |v.-.d.1.....(.s.
    000090 | 61007000 72006400 62002D00 64006500 |a.p.r.d.b.-.d.e.
    0000a0 | 76002D00 64003000 5F004400 52003300 |v.-.d.0._.D.R.3.
    0000b0 | 5F003000 30000605 140010B6 D708F0B9 |_.0.0...........
    0000c0 | 4611E0BC 35EEB4AC 13815405 14050200 |F...5.....T.....
    0000d0 | 00050200 0B000600 36003400 32000B01 |........6.4.2...
    0000e0 | 02003200 5A005F00 46004900 5F004100 |..2.Z._.F.I._.A.
    0000f0 | 41005F00 42004100 50004900 5F004100 |A._.B.A.P.I._.A.
    000100 | 53005300 45005400 5F004300 48004100 |S.S.E.T._.C.H.A.
    000110 | 4E004700 45010203 37000003 37051400 |N.G.E...7...7...
    000120 | 10B6D708 F0B94611 E0BC35EE B4AC1381 |......F...5.....
    000130 | 54051401 3100E62A 54482A03 00E60000 |T...1..TH.....
    000140 | 00000000 00000000 00000000 00000000 |................
    000150 | 00000000 00000000 00000000 00000000 |................
    000160 | 00000000 00000000 00000000 00000000 |................
    000170 | 00000000 00000000 00000000 00000000 |................
    000180 | 00000000 00000000 00000000 00000000 |................
    000190 | 00000000 00000000 00000000 00000000 |................
    0001a0 | 00000000 00000000 00000000 73617070 |............sapp
    0001b0 | 692D6465 762D6431 5F445049 5F313839 |i-dev-d1_DPI_189
    0001c0 | 34303530 00000000 00000000 63303432 |4050........c042
    0001d0 | 35313733 62393435 31316530 38373562 |5173b94511e0875b
    0001e0 | 30303030 30303163 65366132 00000000 |0000001ce6a2....
    0001f0 | 02C04251 73B94511 E0875B00 00001CE6 |..BQs.E...[.....
    000200 | A2B6D708 F0B94611 E0BC35EE B4AC1381 |......F...5.....
    000210 | 54000000 01000000 002A5448 2A0131FF |T........TH.1.
    000220 | FF0000FF FF000000 00000000 00000000 |................
       >> CPIC native call CMSEND [2] convid: 88578752 14:23:39,159
       << CPIC native call CMSEND [2] convid: 88578752 rc: 0 14:23:39,159

  • How to export the table data to the excel?

    Hi,
    I'm new to WebDynpro. im having a table 5rows and 6 columns, i need the data in the table to be exported to excel sheet by clicking on a button.
    As i went through some of the blogs and tutorials i couldn't understand the procedure, so could any one help out with detailed procedure.
    Thanks & Regards,
      Suresh

    HI! Suresh,
      This is a littile bit complicated process.Here i am trying to expalin the procedure,
    if you are having any problem then let me know.
    Following are the steps:--
    1.create two controls one of type linkToAction and other of type FileDownload and a location on your portal server say it's "/server0/temp/webdynpro/web/local/testexcel.xls"
    2.create a method in your view or controller and call this method as downLoadToXls()
    3.create a Value attribute of type binary in your context,say it's dataContent.
    4.Bind your linkToAction Control to the method downLoadToXls() and control   FileDownLoad data property to dataContent.
    5.In the init() Hook methos write the following code:--
    IWDAttributeInfo attInfo = wdContext.getNodeInfo().getAttribute("dataContent");
    IWDModifiableBinaryType binaryType = (IWDModifiableBinaryType)  attInfo.getModifiableSimpleType();
    // In addition the FileDownload UI element needs for defined resource types
    binaryType.setFileName("testexcel.xls");
    binaryType.setMimeType(WDWebResourceType.XLS);
    6.in DownLoadToXls() method add the following code:--
    try {
            out = new FileOutputStream(path);
           workBook = new HSSFWorkbook();
          hsSheet = workBook.createSheet("UserID");
         cs = workBook.createCellStyle();
         cs1 = workBook.createCellStyle();
         cs2 = workBook.createCellStyle();
         dataFormat = workBook.createDataFormat();
         f = workBook.createFont();
         f1 = workBook.createFont();
         f.setFontHeightInPoints((short) 12);
        //make it blue
         f.setColor( (short)HSSFFont.COLOR_NORMAL );
         //make it bold
        //arial is the default font
        f.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);
        //set font 2 to 10 point type
        f1.setFontHeightInPoints((short) 10);
        //make it red
        f1.setColor( (short)HSSFFont.COLOR_RED);
        //make it bold
        f1.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);
        f1.setStrikeout(false);
       cs.setFont(f);
       cs.setDataFormat(dataFormat.getFormat("#,##0.0"));
       //set a thick border
       cs2.setBorderBottom(cs2.BORDER_THICK);
       //fill w fg fill color
       cs2.setFillPattern((short) HSSFCellStyle.SOLID_FOREGROUND);
       cs2.setFillBackgroundColor((short)HSSFCellStyle.SOLID_FOREGROUND);
       //set the cell format to text see HSSFDataFormat for a full list
       cs2.setDataFormat(HSSFDataFormat.getBuiltinFormat("text"));
       cs2.setFont(f1);
       cs2.setLocked(true);
        cs2.setWrapText(true);
        hsSheet.createFreezePane(0,1,1,1);
        row = hsSheet.createRow(0);
         cell = row.createCell((short)0 ,0);
          cell.setCellValue("User ID");
          cell.setCellStyle(cs2);
          cell = row.createCell((short)1 ,1);
          cell.setCellValue("Last Changed Password Date");
          cell.setCellStyle(cs2);
        int nodeSize = wdContext.nodeUserIDAndPass().size();
        for(int jCount=0; jCount < nodeSize; jCount++) {
         row = hsSheet.createRow(jCount+1);
           for(int count = 0; count < 2; count++) {
          if(count == 0) {
         cell = row.createCell((short)0,count);               
    cell.setCellValue(wdContext.nodeUserIDAndPass().getUserIDAndPassElementAt(jCount).getCtx_UserID());
          if(count == 1) {
            cell = row.createCell((short)1,count);
      cell.setCellValue(wdContext.nodeUserIDAndPass().getUserIDAndPassElementAt(jCount).getCtx_ChangedPasswd());
          cell.setCellStyle(cs2);                            
                                                               workBook.write(out);
    out.close();
    //Read the file that was created.
            FileInputStream fin = new FileInputStream(path);
            byte b[] = new byte[fin.available()];
           fin.read(b,0,b.length);
           fin.close();
            wdContext.currentContextElement().setDataContent(b);
      }catch(Exception e)     {
      wdComponentAPI.getComponent().getMessageManager().reportException("Exception while reading file "+e,true);                   }
    7. Add the follwoing constant at the end:--
    private FileOutputStream out = null;
         private HSSFWorkbook workBook = null;
         private HSSFSheet hsSheet = null;
         private HSSFRow row = null;
         private HSSFCell cell = null;
         private HSSFCellStyle cs = null;
         private HSSFCellStyle cs1 = null;
         private HSSFCellStyle cs2 = null;
         private HSSFDataFormat dataFormat = null;
         private HSSFFont f = null;
         private HSSFFont f1 = null;
         private String path = "/server0/temp/webdynpro/web/local/testexcel.xls";
    8.Add the follwowing jars in your classPath.
    1)poi-3.0.1-FINAL-20070705.jar
    2)jxls.jar
    regards,
    Mithileshwar

Maybe you are looking for

  • How do I sync my progress between games on my iPad and iPhone?

    I know it's trivial, but there are many games such as Jet Pack Joyride, Arm Cartel, and others that I've spent a lot of time playing on my iPhone; however, when I go to play these games on my iPad, I have had to restart from the very beginning even t

  • How to fit frame to content when content contains anchored text box?

    Hi there I am creating a series of inline text frames within a text frame. Each of these inline frames contains text which includes an anchored text frame. If I tell my inline frames to fit to content they seem to ignore the anchored frames contained

  • Portege R600 - Difference between cooling options

    I have a Portege R600 with Windows 7 installed, but I guess my query is generic to all Porteges regardless of the version of Windows. Could someone please explain to me what the different "cooling options" in the power settings actually mean? I could

  • Excel Source cannot find sheet when using Foreach Loop Container

    I have SQL Server 2012 SSIS. I need help with Foreach Loop container. 1) I have C:\\Excel\ folder and multiple Excel.xlsx files are stored there to be imported 2) I have Foreach Loop Container -Foreach File Enumerator is selected -Expressions are emp

  • ThinkPad W530 docked and plugged all the time.

    I just got a new w530 with windows 8 and a 9 cell battery. I am using the mini dock series 3 (without USB 3.0). My question is: is it ok for the battery life to leave it in the laptop knowing that most of the time the machine is docked and plugged? I