Skip to Content
0
Former Member
Jun 02, 2008 at 04:50 PM

Error while creating own BAPI

224 Views

Hey,

trying this step-by-step guide with own names

http://www.sapdevelopment.co.uk/java/jco/bapi_jco.pdf

Got two errors:

1. In SWO1 while trying to add api methods he said:

BAPI &1: The name of the function module &2 does not begin with 'BAPI'

BAPI &1: BAPI function module &2 has no return parameter

Searching in forum, I found that my structures have to begin with ZBAPI. But

why the tutorial can do this? In tutorial the structure is named ZVEND. Why they

can do this?

2. The second error is telling me, that I have no return parameter. Thats not true.

In my export tab of my function module, I have included a Parameter BAPIRET2 TYPE BAPIRET2.

Trying to insert a table like this:

RETURN TYPE BAPIRETURN

He is telling me that "TABLES parameters are obsolete"

In every tutorial they are using like, but I am not able to use LIKE, only TYPE is this something they changed in the SAP version > 4.7 ???

Does every BAPI needs a return structure or table?

If anyone have some good documents about how to create an own bapi let me know.

But please no short description or 1000 links like this: how-to-create-our-own-bapi

thanks

chris

thx

chris