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: 

Question on creation of function module without starting with 'Z' or 'Y'

Former Member
0 Kudos
786

Hi Experts,

Why does SAP allows us to create a Function Module without starting with Z or Y unlike creation of programs where this is not allowed?

Thanks a lot in advance.

Regards

T

1 ACCEPTED SOLUTION

Former Member
0 Kudos
294

Hi Tush,

you are correct SAP allows us to create function modules without starting with 'Z' or 'Y' because internally they are include programs and SAP prefixes some standard character just before the FM name such as 'SAPL' so even if you create FM without starting with 'Z' or 'Y' it is going to prefix it so it does not matter with what ever name you give. but for programs there is no prefix by standard characters from SAP, so for easy differentiation of SAP development and custom development they have maintained this standard.

to differentiate for function modules they use the function group name if they are in custom name spacwe i.e. if they start with y or z then the function modules under them are said to be in custom only.... so it does not matter with what ever name you give for function module..

Regards,

Siddarth

13 REPLIES 13

Former Member
0 Kudos
294

This message was moderated.

Former Member
0 Kudos
294

This message was moderated.

anuj_srivastava
Active Participant
0 Kudos
294

This message was moderated.

Former Member
0 Kudos
294

Just log onto https://service.sap.com.

There is a patch there for this on the front page.

Cheers,

Julius

former_member156446
Active Contributor
0 Kudos
294

Think that you and your kid has the same name. If you get a mail (post) whom do you think it is for? so we keep John Jr. for as kids name soo Jr. in terms of SAP means Z and Y.

Former Member
0 Kudos
294

Function modules are contained in FUnction Group, which must start with Y* or Z*. Actual function module name can start from any character, but if it doesnt start with Y_ or Z_ you will get a warnign message.

same with Module pools, you can create programs using SAPMZ* or SAPMY, and can have include with MY or MZ*.

Just in Function modules, your program name is SAPLZ* or SAPLY* , and include names will be LY* or LZ*, Actual function module name doesnt matter

Former Member
0 Kudos
294

This message was moderated.

Former Member
0 Kudos
294

This message was moderated.

Former Member
0 Kudos
295

Hi Tush,

you are correct SAP allows us to create function modules without starting with 'Z' or 'Y' because internally they are include programs and SAP prefixes some standard character just before the FM name such as 'SAPL' so even if you create FM without starting with 'Z' or 'Y' it is going to prefix it so it does not matter with what ever name you give. but for programs there is no prefix by standard characters from SAP, so for easy differentiation of SAP development and custom development they have maintained this standard.

to differentiate for function modules they use the function group name if they are in custom name spacwe i.e. if they start with y or z then the function modules under them are said to be in custom only.... so it does not matter with what ever name you give for function module..

Regards,

Siddarth

matt
Active Contributor
0 Kudos
294

The above answer is, in my view, perfect in almost all respects. I say "almost", because you get the warning unless it is Z_ or Y_ - you have to have the underscore. But you CAN call them anything.

All those answered otherwise have received an email explaining this fact. And the posts have been rejected.

It's very sad that so many answered this question with the wrong answer. You answered from opinion, NOT knowledge. You didn't even bother to check.

matt

0 Kudos
294

Hi Siddarth and Matt,

You are both very right.. some of the users did not even bother reading the question well.

Thanks a lot to both of you.

Former Member
0 Kudos
294

This message was moderated.

Former Member
0 Kudos
294

This message was moderated.