Skip to Content

No BAPI return values in DELPHI

Hello,

I'm having a trouble receiving the result of a BAPI in Delphi.

When i test the business object BUS7011 inside SAP, the function CheckCollision returns two tables COLLISIONRECORDS and RETURN with several records each, but when i send the same data with a Delphi program using the DCOM BAPI OCX I get no result. No error either.

Any ideas what can be the problem?

I'm testing this to replace an old program that uses the Transaction OCX to simulate a batch input, this method doesn't seem to work anymore in ECC 6.0.

Thanks in advance, Gabriel

PD: I have also tested it using the SAPRFC test script, with the same results. EXTERNALRECORDS is OK but RETURN and COLLISIONRECORDS are empty

Message was edited by:

Gabriel Roman

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Nov 30, 2007 at 12:37 PM

    My bad, the problem seems to be with authorizations. I was testing the BAPI with a dialog user and the Delphi program was using a "system" user. Those two had different authorizations. I added RFC authorization to the dialog user and used it with the Delphi program and it works as expected, now to find the missing role.

    Bye, Gabriel

    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.