Skip to Content
0

Call external subroutine in a program that has a screen

Jan 04 at 05:59 PM

52

avatar image

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?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Sandra Rossi Jan 04 at 06:16 PM
1

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.

Share
10 |10000 characters needed characters left characters exceeded