The BAPI must have a RETURN parameter

Message type: E = Error

Message class: B1 - ALE group messages

Message number: 511

Message text: The BAPI must have a RETURN parameter



What causes this issue?

Each BAPI must have a Return parameter that references the type &v1&,
&v2&, &v3& or &v4&. This parameter does not exist. Generation has been
terminated.


How to fix this error?

Add a Return parameter to the BAPI.

Error message extract from SAP system. Copyright SAP SE.