Application Development 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: 

Function Module Naming Convention

TuncayKaraca
Active Contributor
0 Kudos

Hi,

I'd like to ask some general questions:

What is your approach to create a function module in terms of naming convention?

The first thing is Function Module Name, then import, export, change, table parameters and exceptions?

For example do you use

BILLING_DOCUMENT

or

VBELN

as an input parameter?

Do you use prefix for parameter names? Like

IM_<parameter_name>

,

EX_<parameter_name>

,

CH_<parameter_name>

, etc...

There are some recommended naming conventions for BAPI function modules (RFC), and ABAP Objects, but what about non RFC Function Modules?

Any idea, experience, suggestion?

Thanks,

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

I usually prefix IM_ for Importing, EX_ for exporting and CH_ for changing parameters...

Thanks,

Naren

2 REPLIES 2

Former Member
0 Kudos

Hi,

I usually prefix IM_ for Importing, EX_ for exporting and CH_ for changing parameters...

Thanks,

Naren

Former Member
0 Kudos

Hi,

Basically this depends on the Company Standards or Client Standards.

If client does not specify any naming convention, the compnay that is implementing SAP follows its own standards. In general, SAP suggests certain naming cnvention for Function groups.

Function group names are freely definable up to a maximum length of 26 alphanumeric characters. Remember to observe the normal naming conventions for the first character (A-X for SAP development, Y and Z for customers).

When you create a new function group, the system automatically creates a main program containing two includes. Like any other programs and includes, you can display them in the Repository Browser.

The name of the main program is assigned by the system. This is made up of the prefix SAPL followed by the function group name. For example, the main program for function group SXXX is called SAPLSXXX.

The names of the include files begin with L followed by the name of the function group, and conclude with UXX ( or TOP for the TOP include). The TOP include contains global data declarations that are used by all of the function modules in the function group. The other include file within the main program is used to hold the function modules within the group.

In General all the custom funciton module names should start with Z or Y.

There is no specific naming convention for import/export parameters.

consider the following naming conventions that our company follows...

IV - Importing Variable

IX - Importing Structure

EV - Exporting Variable

EX - exporting Structure

IT - Table

Regards,

Vara