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

BAPI Error

Former Member
0 Likes
1,092

Hi ,

i am trying to execute BAPI example from

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

In page 30 (first half window), when i click continue button its showing some error, like

Error:
BAPI &1: The name of the function module &2 does not begin with BAPI
BAPI ZVENDFUN: The ref. structure LFA1 of parameter LIFNR does not begin with BAPI
BAPI ZVENDFUN: The ref. structure VEND of parameter ITAB does not begin with BAPI
BAPI &1: BAPI function module &2 has no return parameter

Warning Messages:
BAPI &1: The input help for field &2-&3 is not defined

and when i click Continue button on Error dialog box and its giving Info like

Method contains errors -  we advise you not to create

and when i click continue on this window also its showing page 31 and when i click Continue on page 31..

its giving error..

BAPI : Method does not define a RETURN parameter

how to solve this?

Thanks

Seshu

5 REPLIES 5
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
763

The problem here is that the document is not telling you that the BAPI name and the parameters should always begin with BAPI_ or ZBAPI_ this is the rule when creating custom BAPIs.

Regards,

Rich Heilman

Read only

0 Likes
763

Hi,

Tq reply..

Tried with changing parameters in Fun. Module..

with BAPI_

But same error..

and also

Then what about RETURN Parameter..

BAPI : Method does not define a RETURN parameter

Thanks

Seshu

Read only

0 Likes
763

You need to specify the RETURN parameter in the signature under the TABLES section, typed as BAPIRET2.

REgards,

Rich Heilman

Read only

0 Likes
763

Hi Rich,

thanks for reply..

Tried with changing parameters in Fun. Module..

with BAPI_

But same error..

Do i need to write Return parameter in Tables tab or Export Tab?

if in Tables Tab, is it as Optional?

in export tab i gave

BAPI_RETURN LIKE BAPIRET2

Seshu

Message was edited by: Seshu

Read only

0 Likes
763

check this .

<b>BAPI name    : BAPI_CUSTOMER_AR.
Import paras : 
KUNNR    LIKE YBAPICUSTAR-KUNNR
BUDAT    LIKE YBAPICUSTAR-REF_DOC_DATE
BUDAT_TO LIKE YBAPICUSTAR-REFSY-DATUM.
Tables       :
CUSTOMER_AR	LIKE	YBAPICUSTAR
RETURN	        LIKE	BAPIRETURN.</b>

here YBAPI is structure.

Regards

Prabhu