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

How this program is created with SAP namespace

Former Member
0 Likes
3,727

Greetings to All ,

There is a Tcode in our system for Gate Pass ZGPMAIN.

I was checking the code of that tcode and I saw that its name is SAPMZD_MM_GP .

How is this possible .

My ABAPER here has told me that they can't create any program with  name other than starting from either Z or Y.

He is also clueless regarding this matter , reason being its not his creation.

Am a MM consultant ans just curious to know about this.

Moderator message - Please search before posting your question. I understand you are an MM consultant but Forum Rules of Engagement applies to all

Message was edited by: Suhas Saha

Greetings to All ,

There is a Tcode in our system for Gate Pass ZGPMAIN.

I was checking the code of that tcode and I saw that its name is SAPMZD_MM_GP .

How is this possible .

My ABAPER here has told me that they can't create any program with  name other than starting from either Z or Y.

He is also clueless regarding this matter , reason being its not his creation.

Am a MM consultant ans just curious to know about this.

Moderator message - Please search before posting your question. I understand you are an MM consultant but Forum Rules of Engagement applies to all

Message was edited by: Suhas Saha

6 REPLIES 6
Read only

aferngas
Active Participant
0 Likes
1,975

Hi Prasanna,

This is a Module Pool. It generates a function group, the main programa autogenerated by system has a name like "SAPM" + modul pool name. Actually your modul pool is called ZD_MM_GP.

Regards,

Alex

Read only

0 Likes
1,975

The same goes for the generated includes of function groups, your ABAP colleague should be familiar with this behaviour from these.

Module pools are kind of seldom used nowadays, so this might have been a bit misleading.

Regards

Andre

Read only

Former Member
0 Likes
1,975

Hi Prasanna,

This is not SAP namespace it is customer name space only

For Module pool Programs and Function Groups SAP has reserved a prefix SAPMZ and SAPLZ

SAPM means Module Pool

SAPL  means Function Group.

The next character after the prefix suggest what name space it belongs to.

If you open a Function group and go on the GO TO -> Main Program read the name you will have a clear idea.

Regards

Read only

Former Member
0 Likes
1,975

Hi Prasanna,

Good Evening.

In SAP ABAP, a program can be created to serve many purposes like :

For reporting purposes (reports)  we create an executable program using T code SE38. In this transaction the customs program name should start with Z or Y .its a mandate. the same can also be accessed through se80 transaction

A program with Screens generally used for developing a functionality is created as a Module pool program. Which is created using  T code SE80. While creating Module pool programs SAP recommends to start the program name with prefix "SAPMZ____" which indicates that this is an SAPModule pool Z program and rest you can provide any relevant name.

If you are following this naming convention the system automatically identifies that you are about to create a module pool program and proposes whether to create a TOP include or not (TOP include is the programming area where all the basic declarations are carried out).

So what you seen is a custom development program which belongs to module pool category. thats the reason why the program starts with SAPMZ.. the Z indicates that it is a Custom developed program for your internal purposes.

Go to T code    : se93

Give the t code : ZGPMAIN and press Display

Here is where you  will see that the program name will be given as SAPMZD_MM_GP. Also with this, a screen number will be associated which may be '9000' '9001' etc. which are custom screens.

So Concluding: the program that you see (SAPMZD_MM_GP) is a custom developed Z program.

Also catch here is : Module pool programs are recommended to start with SAPMZ_____.

For report program if you go into the transaction you will find that the program, starts with Z or other custom namespace.

Regards

Devanand D Shenoy

Read only

Former Member
0 Likes
1,975

Hi Prasanna,

It correct that a custome program needs to be started with either Z or Y,

but the one which you are talking about in your question (SAPMZD_MM_GP) is a module pool program.

The naming convention for a custom module pool program is SAPMZ or SAPMY which gets generated automatically,similarilly for a custom function module it starts with SAPLZ or SAPLY

Here the fifth letter  'z' OR 'y' denotes it as custom.

Hence your program is a module pool program(ZD_MM_GP) which is custom only.

Hope it helps!!!!!

Regards,

Alora

Read only

ThomasZloch
Active Contributor
0 Likes
1,975

Please search for available documentation:

SAP Library - Namespaces and Naming Conventions (BC-CTS-NAM)

Thomas