Implementation problems with specific inquiry

SOLVED

Hello everyone Slight smile

We have programmed a specific inquiry for our client. There should be a back and next button.

Only a part of the data records should be displayed. When you click on next other records should be loaded.

In the function GESGTC (Inquiry screens under setup > General parameters) I have tried to make an entry for my inquiry.

Unfortunately I get the following error:

I want to configure in GESGTC the number of lines shown on the custom inquiry. Can we here also configure custom inguiries? I compared my inquiry with standard inquiries and it seems to have no relevant difference. 

Here is the definition of the specific inquiry:

Does anybody now what I have to do in order to solve the error "This inquiry code cannot be used in this function"?

Is it enougth to configure here how many lines should be displayed between back and next button clicks on the inquiry screens or do I have to write code in the specific inquiry script? Can I also define the number of lines directly in the script? Does anyone have a documentation on how to implement a specific inquiry with back and next buttons?

Thank you for your help.

Kind regards