Skip to Content
author's profile photo Former Member
Former Member

error on calling a function from vba

hello guys

I have an ABAP function developed on our SAP environment called /TENR/CFBPP_SAP_ACT_TO_SQE

It works fine when called from SE37 transaction, but when I call it from my VB app, I get a SYSTEM_FAILURE error at MyFunC.Call

I guess I can call it just like a BAPI function, so I created the code above (I supressed the connection because it works)




MyFunC.Exports("I_PEP").value = "P/87620/E.AAF"

MyFunC.Exports("I_CLASE_ORDEN").value = "CF02"


'MyFunC.Exports("MAX_ROWS").value = "100"

'MyFunC.Exports("WITH_USERNAME").value = ""

If MyFunC.Call Then

Dim objReturn As Object

'objReturn = MyFunC.TABLES("USERLIST")

objReturn = MyFunC.imports("T_ACTIVIDADES")

Return objReturn.rowcount


Return MyFunC.Exception

End If


when I toogle to call BAPI_USER_GETLIST which have similiar params, it works fine

I checked function name and param names and they are ok.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jan 07, 2014 at 07:54 PM

    Hello Alessandro,


    Is your function module RFC enabled?

    What does the namespace /TENR/ stands for?

    Let us know the results.



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.