I'm working in a user exit, and I have to repeat some part of the same code, depending of some values, and I would like to put it in a Perform... When I create a perform, It does in a new Include, I active the new include with the form, but when I come back to my original Include -The uSer exit's include- is says that there is a mistake and I'm not able to activate the Include... could you please explain to me what is the mistake? It says that there is not EndFunction.
What I should do, is show an ALV depending of the validation, so, I have to repeat the call functions, and the sentences in order to prepare the fieldcat and layout, in order to show the alv, that's why I need a perform. Is the same thing? I've never used before a define - End of Definition.
Please let me know.
In the attributes section of the user exit you should be able to find out the function group for this user exit. Every user exit function group has a include ZXV****ZZZ where we can put our custom subroutines or forms.
If you function group is ***, then inside include ZX**ZZZ, you can add your subroutine in another include Z***F01.
You should then be able to the subroutine (Form) in your user exit.