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

Function call in SAP GUI with errors

Former Member
0 Likes
911

Dear All,

When i am calling FM of Comports using OLE Integration i got " Function call in SAP GUI with errors" error

now my front end version is 6.40. how to solved this problem.

In my Function Module i am creating object like this

CREATE OBJECT O_OBJ 'MSCOMMLib.MSComm.1'.

IF SY-SUBRC <> 0.

RAISE NO_CREATE_OBJECT.

ENDIF.

it raised the sy-subrc = 2 this error is "Function call in SAP GUI with errors"

send to me how to handle this error.

Thank,

Vijay.g

2 REPLIES 2
Read only

Former Member
0 Likes
561

Hi Vijay,

We are facing the same issue.

Interestingly

  1. From program's code only we are facing this issue.
  2. If we display the program and Execute (Direct processing), it is working fine.

Can you please share how you resolved this issue.

Thanks

Sreedhar

Read only

0 Likes
561

HI Sreedhar,

First you have to Register the MSCOMM32.OCX file in the windows XP or Later then this object works with SAP.

Thanks,

Vijay Reddy.