IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Creation of Excel Sheet in webMethods

webMethods Community Member

webMethods Community MemberTue October 10, 2017 03:01 AM

  • 1.  Creation of Excel Sheet in webMethods

    Posted Thu October 05, 2017 01:46 AM

    Hi All,

    Can anyone please help me to understand how to create Excel sheet in webMethods?

    wM version is 9.8.

    Its urgent.

    Thanks


    #webMethods
    #edi
    #Integration-Server-and-ESB


  • 2.  RE: Creation of Excel Sheet in webMethods

    Posted Thu October 05, 2017 02:14 AM

    Somewhere i could see that we can use RecordListToExcel but i couldnt find this particular service.

    Please help.


    #webMethods
    #Integration-Server-and-ESB
    #edi


  • 3.  RE: Creation of Excel Sheet in webMethods

    Posted Thu October 05, 2017 03:18 PM

    There are no OOTB services for creating Excel files (Except WxExcel which is a paid utility), however, there are some utilities available here in Tech Community.

    You may have to check POI libraries to write your own java service.


    #webMethods
    #Integration-Server-and-ESB
    #edi


  • 4.  RE: Creation of Excel Sheet in webMethods

    Posted Thu October 05, 2017 07:41 PM

    Are you trying to output the data to a .csv? Will that work for you in this req?

    If yes, then use the WmFlatFile Adapter to generate a string output (comma separated) that could create a worksheet and writeToFile with .csv extension.

    HTH,
    RMG


    #Integration-Server-and-ESB
    #edi
    #webMethods


  • 5.  RE: Creation of Excel Sheet in webMethods

    Posted Mon October 09, 2017 04:12 AM

    Hi RMG,

    As suggested i have used the WmFlatFile Adapter to generate a string output (comma separated) that could create a worksheet and writeToFile with .csv extension .

    But then i could see that the fileds having values starting with zeroes are not coming properly in the excel sheet.

    Like if the field values are “00001233” , in the excel we could see as 1233.

    But in the CSV file its coming as “00001233”

    Kindly help.

    Thanks


    #Integration-Server-and-ESB
    #edi
    #webMethods


  • 6.  RE: Creation of Excel Sheet in webMethods

    Posted Mon October 09, 2017 07:06 AM

    We know how to retain those leading zeroes while opening the Excel file manually , pasting the contents from CSV file by changing the options from general to text for each of the columns.

    But is there any way to do it automatically as we want to send the file to open it proper format at the clients server.

    Or can you suggest any other alternative for this issue.

    Thanks


    #Integration-Server-and-ESB
    #edi
    #webMethods


  • 7.  RE: Creation of Excel Sheet in webMethods

    Posted Mon October 09, 2017 03:56 PM

    Good question, but I have no clue if there is any easier way other than you can try concat each field that has leading zeros prefix with quot(') for eg:'001,'002,'003, and then generate the csv string output so that excel can retain the leading zero’s.

    HTH,
    RMG


    #webMethods
    #edi
    #Integration-Server-and-ESB


  • 8.  RE: Creation of Excel Sheet in webMethods

    Posted Tue October 10, 2017 03:01 AM

    Thank you.

    This is working .

    :slight_smile:


    #Integration-Server-and-ESB
    #webMethods
    #edi


  • 9.  RE: Creation of Excel Sheet in webMethods

    Posted Tue August 20, 2019 10:00 AM

    Hi,

    Can anyone please help me to understand how to create Excel sheet in webMethods?. exporting data to excel files using flow service perhaps from oracle database


    #edi
    #Integration-Server-and-ESB
    #webMethods


  • 10.  RE: Creation of Excel Sheet in webMethods

    Posted Tue August 20, 2019 01:30 PM

    Hi Stanley,

    unfortunately this is not available ootb.

    You will have to write some java services by using an office API like i.e. POI from Apache to get access to the excel file formats.

    For connecting to Oracle Database you can use JDBC Adapter and Oracle Thin Driver available from OTN (Oracle Tech Net).

    Regards,
    Holger


    #Integration-Server-and-ESB
    #webMethods
    #edi


  • 11.  RE: Creation of Excel Sheet in webMethods

    Posted Tue August 20, 2019 04:03 PM

    Hi Stanley,

    Apart from what Holger mentioned above also what extension format is your target system expecting is it .csv or xlsx?

    HTH,
    RMG


    #edi
    #Integration-Server-and-ESB
    #webMethods


  • 12.  RE: Creation of Excel Sheet in webMethods



  • 13.  RE: Creation of Excel Sheet in webMethods

    Posted Fri January 22, 2021 08:32 AM

    Hi Mahesh,

    I have requirement to create native excel from pipeline data.seems this suits my requirement. Can you share latest link for this code. the link is redirecting to home page.


    #Integration-Server-and-ESB
    #webMethods
    #edi