Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Excel OLE

Former Member
0 Likes
606

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.

5 REPLIES 5
Read only

Former Member
Read only

former_member189631
Active Contributor
0 Likes
570

Hi Fan,

Please try this FM,

/HRBP/RH_START_EXCEL_FILE_OLE

Regards,

Ramganesan K.

Read only

Former Member
0 Likes
570

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

Read only

Former Member
0 Likes
570

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