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

SAP conventions for function modules

Former Member
0 Likes
606

Hi,

if i take a look at the BAPI Programming Guide CA-BFA, i found the following in the section "Actions in the Function Builder":

All function modules must have the naming convention:

<Name space>BAPI_<business object>_<method>.

A maximum of 30 characters is allowed.

So, i named my function module for a BAPI: "ZABAPI_FLIGHT_GETBLA"...

If i try to add a method to my business object and use this function module, i receive an error:

The name of the function module ZABAPI_FLIGHT_GETBLA does not begin with 'BAPI'

If i click on the information button in the error message, the diagnosis says the following:

"Function modules that implement BAPIs must start with the prefix "BAPI_". If required, other prefixes for namespaces (e.g. of customers) can be placed before the BAPI prefix."

So please tell me, where is the failure?!

Thanks for your answers

3 REPLIES 3
Read only

Former Member
0 Likes
501

Hi Harry,

your name space should Z instead ZA.

Try the name ZBAPI_FLIGHT_GETBLA

Kindly Regards,

Stefan

Read only

former_member156446
Active Contributor
0 Likes
501

yes try ... ZBAPI_FLIGHT_GETBLA

else in SE37 hit ZBAPI and check, ur organization might have some other naming convention..

Read only

Former Member
0 Likes
501

Thank you guys, it worked with ZBAPI_*

The "problem" is that my university uses a SAP system of a university network which is used by different universities. So the namespace is ZA, it seems that SAP checks only the first character... so i have to find a solution!

But thank you, it works at my local test system