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
Add a comment