In se37 tcode, under attributes tab I can see 2 details such as program name, include name. Can you please tell,
1. Are they created automatically once we create our FM.
2. What is the use of them
Use of includes from SAP Help:
>>Include programs are used to split ABAP source texts into individual Repository objects. An ABAP program can be created in the program attributes using the program type include program. Include programs do not need to contain introductory statements for programs and cannot be generated independently from the ABAP compiler. When using the statement INCLUDE, however, include programs can be integrated in programs that can be generated.
>>An include program must contain complete statements. It can include other include programs but not it cannot include itself. An include program does not need to contain complete processing blocks.
If you double click on the program name in attributes -> It will display function pool with few includes -> if you double click the second includename(with comments function modules) -> it will show a set of includes. These include names are nothing but the automatically generated include name while creating the function modules.
It is always advisable to go through sap help for better understanding.