Skip to Content
author's profile photo
Former Member

Include in Customer Function Module

Hi,

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

Regards,

Sriram.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    Posted on May 06, 2011 at 11:27 AM

    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 comment
    10|10000 characters needed characters exceeded