‎2007 Mar 20 8:35 AM
Hi all,
I need to export three different tables to a excel file on application server.
any ideas how to do this.
also could any one pass me the copy of 'An easy reference to OLE automation'.The link to this resource is not working any more.
thanks in advance.
‎2007 Mar 20 8:38 AM
hi Sapfan,
Refer
http://www.sapdevelopment.co.uk/file/file_upexcel.htm
http://www.sapdevelopment.co.uk/file/file_uploadsap.htm
Regards,
Santosh
‎2007 Mar 20 8:38 AM
Hi Fan,
Please try this FM,
/HRBP/RH_START_EXCEL_FILE_OLE
Regards,
Ramganesan K.
‎2007 Mar 20 8:41 AM
‎2007 Mar 20 8:49 AM
Sap fan,
DATA : FNAME(255) TYPE C VALUE '/data/sapdata/eu_ums/astdetails.xls'.
CONSTANTS : C_COMMA TYPE C VALUE ','.
*****Adding Column names to output
I_FINAL-DOCNUM = 'IDOCNO'.
I_FINAL-STATXT = 'ERROR TEXT'.
I_FINAL-STAPA1 = 'ERROR DETAILS'.
I_FINAL-QMNUM = 'NOTIFICATION'.
I_FINAL-ZASSETCLASS = 'ASSETCLASS'.
I_FINAL-ZDATACODE = 'DATACODE'.
I_FINAL-ZMFRCODE = 'MANUFACTURER'.
I_FINAL-ZMODELCODE = 'MODELCODE'.
I_FINAL-ZSERNO = 'SERIALNO'.
*
INSERT I_FINAL INDEX 1.
CLEAR I_FINAL.
LOOP AT I_FINAL.
CONCATENATE
I_FINAL-DOCNUM
I_FINAL-STATXT
I_FINAL-STAPA1
I_FINAL-QMNUM
I_FINAL-ZASSETCLASS
I_FINAL-ZDATACODE
I_FINAL-ZMFRCODE
I_FINAL-ZMODELCODE
I_FINAL-ZSERNO
into I_DISPLAY-REC SEPARATED BY C_COMMA.
APPEND I_DISPLAY.
CLEAR I_DISPLAY.
ENDLOOP.
OPEN DATASET FNAME FOR OUTPUT IN TEXT MODE.
LOOP AT I_DISPLAY.
TRANSFER I_DISPLAY TO FNAME.
ENDLOOP.
CLOSE DATASET FNAME.
Pls. reward if useful
‎2007 Mar 20 9:19 AM
hi,
thanks everyone.
I want to see all the attributes and methods of object EXCEL.
In the examples available in the net, they use only few attributes. where do I get the list of all attributes?
Thanks