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

Include in Customer Function Module

Former Member
0 Likes
820

Hi,

Is it possible to create a Z-Include in a customer Function Module? If yes then how to do it?

Regards,

Sriram.

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
710

Don't insert includes in function module, insert those in the main program of the function group.

- If it is actually a customer function module, just open the main program (should be a customer one beginning with SAPLZ, SAPLY or SAPL<customer namespace>) and add an include at the end.

If the function group is ZXXX, the main program is SAPLZXXX and includes name should begin with LZXXX.

- if it is a Customer Exit Function Module, open the main program (should be a SAP one beginning with SAPLX) there should be a customer reserved include at the end beginning with Z, the name should look like ZXnnnZZZ.

Usually if you add a PERFORM xxx. in a function module, if the form doesnt exist yet, double-click will provide you a pop-up window where you can choose or create the include, SAP will provide a suitable name and will do the job for you.

Regards,

Raymond

2 REPLIES 2
Read only

RaymondGiuseppi
Active Contributor
0 Likes
711

Don't insert includes in function module, insert those in the main program of the function group.

- If it is actually a customer function module, just open the main program (should be a customer one beginning with SAPLZ, SAPLY or SAPL<customer namespace>) and add an include at the end.

If the function group is ZXXX, the main program is SAPLZXXX and includes name should begin with LZXXX.

- if it is a Customer Exit Function Module, open the main program (should be a SAP one beginning with SAPLX) there should be a customer reserved include at the end beginning with Z, the name should look like ZXnnnZZZ.

Usually if you add a PERFORM xxx. in a function module, if the form doesnt exist yet, double-click will provide you a pop-up window where you can choose or create the include, SAP will provide a suitable name and will do the job for you.

Regards,

Raymond

Read only

0 Likes
710

Thanks a lot!!!! for the information provided.