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

ABAP OLE data transfer

Former Member
0 Likes
414

Hi.. m working on a program..where i have to transfer data from sap to word doc using abap OLE..

i have an internal table itab where all the related fields are stored and this table's contents are pasted to word document using the function 'clpb_export'.. now this itab contains some 20 odd fields with some having static values(constant values) and others being populated by values from selections.

When i run the program , there is an error.

the error is in the function module 'clpb_export'. the line of error is:

ASSIGN COMPONENT 1 OF STRUCTURE <fs> TO <f>.

The error says:

' You attempted to assign a field to a typed field symbol, but the field does not have the required type. '

Now wen i remove those fields with static values , the program runs fine.

so pls help

Hi.. m working on a program..where i have to transfer data from sap to word doc using abap OLE..

i have an internal table itab where all the related fields are stored and this table's contents are pasted to word document using the function 'clpb_export'.. now this itab contains some 20 odd fields with some having static values(constant values) and others being populated by values from selections.

When i run the program , there is an error.

the error is in the function module 'clpb_export'. the line of error is:

ASSIGN COMPONENT 1 OF STRUCTURE <fs> TO <f>.

The error says:

' You attempted to assign a field to a typed field symbol, but the field does not have the required type. '

Now wen i remove those fields with static values , the program runs fine.

so pls help

1 REPLY 1
Read only

Former Member
0 Likes
357

Use gui_download function module u will get .doc(word format).