Application Development 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: 

No BAPI return values in DELPHI

gsanroman
Explorer
0 Kudos

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

1 REPLY 1

gsanroman
Explorer
0 Kudos

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