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

OLE problem during upgrade

Former Member
0 Likes
1,037

It is still unsolved mystery.

Why OLE is not working after upgarde??

Pls check below thread & I have same problem.

My prog run fine in 46C but in ECC60..it's open MSWORD but did not include table.

I have done & checked all config settings related to SOLE. I thought it could be issue with SAPGUI since we have 620 but then why is running in 46C?

Any one has any idea?

Thanks,

Arpit

It is still unsolved mystery.

Why OLE is not working after upgarde??

Pls check below thread & I have same problem.

My prog run fine in 46C but in ECC60..it's open MSWORD but did not include table.

I have done & checked all config settings related to SOLE. I thought it could be issue with SAPGUI since we have 620 but then why is running in 46C?

Any one has any idea?

Thanks,

Arpit

7 REPLIES 7
Read only

Former Member
0 Likes
995

Arpit,

Open up MS Word, go to menu bar and choose: Tools > Option > Security tab > Macro Security... > and set security to Medium.

Apply it and re-run your SAP app.

Read only

0 Likes
995

John,

Macro Security. is already in medium. I put low also but no effect.

Prog in ECC 60 open MS word but doesn't insert table or contents.

But same place when I log into 46C and run. System open MS Word with table.

I m confuse. I can't debug also. I cudn't find any notes.

Thanks,

Arpit

Anyone??

Should I talk to SAP?

Message was edited by:

Arpit Nigam

Read only

0 Likes
995

How is your ABAP calling up Word?

Please include the Func Mod (or whatever code is in this area).

Read only

0 Likes
995

Pls see below code....

System is failing at bold statements.

FORM CALL_MSWORD.

DATA: WORDOBJ TYPE OLE2_OBJECT,

I TYPE I.

DESCRIBE TABLE ADRS_DATA LINES SY-TABIX.

CHECK SY-TABIX GT 0.

CREATE OBJECT WORDOBJ 'Word.Basic' .

CALL METHOD OF WORDOBJ 'FileNew' EXPORTING #1 = 'normal.dot'.

CALL METHOD OF WORDOBJ 'AppShow'.

<b>CALL METHOD OF WORDOBJ

'ToolsCreateLabels'

EXPORTING #1 = '0'

#2 = PETTY

#3 = PETNO

#4 = '0'

#5 = '0'

#6 = '0'.

</b>IF NOT PETFT IS INITIAL.

CALL METHOD OF WORDOBJ

'Font' "WBIK018729

  • 'Schriftart' "WBIK018729

EXPORTING #1 = PETFT

#2 = PETCS.

ENDIF.

DO PSKET TIMES.

CALL METHOD OF WORDOBJ 'NextCell'.

ENDDO.

LOOP AT ADRS_DATA.

IF SY-TABIX NE 1 AND ADRS_DATA-XFELD EQ 'X'.

CALL METHOD OF WORDOBJ 'NextCell'.

IF NOT PETFT IS INITIAL.

CALL METHOD OF WORDOBJ

  • 'Schriftart' "WBIK018729

'Font' "WBIK018729

EXPORTING #1 = PETFT

#2 = PETCS.

ENDIF.

ENDIF.

<b>

CALL METHOD OF WORDOBJ 'Insert' EXPORTING #1 = ADRS_DATA-LINE.

CALL METHOD OF WORDOBJ 'InsertPara'.

</b>

ENDLOOP.

ENDFORM. " CALL_MSWORD

Any clue??

I tried all ways..

Message was edited by:

Arpit Nigam

I solved the problem. Hence I am closing it.

Message was edited by:

Arpit Nigam

Read only

Former Member
0 Likes
995

Problem has been solved by myself.

Read only

0 Likes
995

hi, can you tell me how do you solve the problem?

I also met such problem.

Best regards,

Read only

0 Likes
995

Hi Arpit,

Appreciate a lot if you can share the solution for this.

Thanks

Kiran