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

Former Member
0 Likes
517

Hi All,

I am creating a BAPI. while creating the method , i gives the error.

BAPI : Method does not define a RETURN parameter

but i have already defind return parameter. kindly help

thanks,

kavitha.

4 REPLIES 4
Read only

Former Member
0 Likes
490

Hi Kavitha,

Could you please specify here the import, export and tables parameters that you have defined in BAPI.

Regards,

Himanshu

Read only

0 Likes
490

Hi Himanshu,

these are the parameters

Tables:

RESREV_DETAILS like ZRESN,

BAPIRETURN like ZRES_REC_RETURN(similar to bapi sructure),

Import:

FROMDATE LIKE RESB-BDTER,

TODATE like RESB-BDTER,

thanks,

kavitha.

Read only

0 Likes
490

check these things:

All the parameters in BAPI should always in pass by value mode.

export tab must have one return parameter like:

RETURN LIKE BAPIRET2

within the source code you have to write the error messages:

IF SY_DBCNT<>0.

RETURN_TYPE = 'message type'.

RETURN-MESSAGE = 'message'.

ENDIF.

Regards,

Dara.

Read only

Former Member
0 Likes
490

Give a parameter in Exporting tab.

Regards

Kannaiah