BAPI &1: RETURN parameter of FM must be of type EXPORT or TABLE
Message type: E = Error
Message class: S& - SBF_BAPI: Messages service BAPIs and Batman
Message number: 546
Message text: BAPI &1: RETURN parameter of FM must be of type EXPORT or TABLE
What causes this issue?
Each BOR parameter requires an equivalent type parameter in the
function module.
Here the system checks:
If the parameter in the function module is IMPORT, the parameter in the
BOR has to be IMPORT and one line only.
If the parameter in the function module is EXPORT, the parameter in the
BOR has to be EXPORTand one line only.
If the parameter in the function module is type TABLE, the parameter in
the BOR has to be multi-line.
If it is a return parameter, the parameter in the function module has
to be TABLES or EXPORT.
How to fix this error?
Change the parameter definitions accordingly.
Note that only incompatible changes can be made to BAPIs already
released and delivered.
Find out about enhancing or modifying BAPIs that have already been
delivered by calling the BAPI Explorer (<LS>Tools </>-> <LS>Business
Framework </>-> <LS>BAPI Explorer</>) and reading the project form
"Project to change an existing BAPI".
&FURTHER_HINTS&
For more information see the BAPI Programming Guide in the SAP Library
under CA-BFA.
The system issues an error message and will not allow you to continue with this transaction until the error is resolved.
Error message extract from SAP system. Copyright SAP SE.