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

Parents Reply Children
  • 0 in reply to Regard Hulsbos

    Thank you very much for your help.

    My function and action definition looks like this:

    The template in the action is set to inquiry. On the type field I have choosen miscellaneous. There is no option for inquiry.

    Unfortunately I still get this error.

    Kind regards

  • +1 in reply to Bense
    verified answer

    Thank you for all the images, on your criteria window add a fields called ECRAN, data type GTC. See the image above, for you to be able to use the criteria window over multiple customized inquiry windows, X3 need to know what the display window to use, hence the screen code. This should solve your problem as its the hard check within process SUBGTC.

  • 0 in reply to Regard Hulsbos

    Thank you very much :) The error no longer occurs after I added an ECRAN field of type GTC to the criteria mask. I set the number of lines in the function GESGTC to 200. But in the function there are still about 10000 lines shown. Probably I still have to write some custom code in the mask skript. So that only 200 lines will be shown and the back and next buttons works correctly. Maybe I have to look in some standard inquiry mask scripts for examples.