Skip to Content
0
Former Member
Nov 06, 2006 at 05:06 PM

SAP BDS SOFFICEINTEGRATION

137 Views

I am trying to print the sap variables into word but could not do so. i am using the following code. could you please tell me if i am doing something wrong.

after starting the link server i am passing the SAP variable 'TOPIC' using follwoing method to link server.

CALL METHOD LINK_SERVER->ADD_STRING_ITEM

EXPORTING ITEM_NAME = 'TOPIC' "#EC NOTEXT

ITEM_VALUE = GT_EKKO-EBELN

NO_FLUSH = 'X'

IMPORTING RETCODE = RETCODE.

In word document i am using the follwing links to retrive the variable.

{LINK SAP.OLELinkServer.Item.Object.1 SAPOLELinkServer TOPIC \t}

{LINK SAP.LinkItem.1 SAPOLELinkServer TOPIC \t}

i tried both of the above links but the word documents is not printing the variable and printing the above links as it is.

i would appreciate if someone could provide me any solution on how to achive it.?