01-04-2018 5:59 PM
Hi,
In a ME21N user exit I am trying to call a form in a custom program:
PERFORM form_name IN PROGRAM zprog IF FOUND.
Within this form there is a call to a selection screen:
REPORT zprog
...
FORM form_name
CALL SELECTION-SCREEN 0200 STARTING AT 5 5.
ENDFORM.
After the PERFORM in the user I get a short dump:
"You are trying to use screen 0200 in program "SAPLXM06". This screen does not
exist."
Is there a way to make this work?
01-04-2018 6:16 PM
Yes indeed, short dump DYNPRO_NOT_FOUND.
Either transfer your code into a function group ZFUGR, and do PERFORM form_name IN PROGRAM saplzfugr IF FOUND.
Or if you don't need absolutely the popup, use SUBMIT zprog VIA SELECTION-SCREEN USING SELECTION-SCREEN 0200 AND RETURN.
01-04-2018 6:16 PM
Yes indeed, short dump DYNPRO_NOT_FOUND.
Either transfer your code into a function group ZFUGR, and do PERFORM form_name IN PROGRAM saplzfugr IF FOUND.
Or if you don't need absolutely the popup, use SUBMIT zprog VIA SELECTION-SCREEN USING SELECTION-SCREEN 0200 AND RETURN.