Skip to Content
0
Former Member
Nov 16, 2005 at 11:16 AM

Creating a Function with a screen

43 Views

Hi,

what I'm trying to do is create a screen within a function. What I would like to do is display a number of lines from an internal table, and have ICONS, which I can decide what happens when the user selects an icon ( Pf-status)

What I have done is the following so far, but it will not compile

FUNCTION z_fs_spool_history.

*"----


""Local interface:

*" IMPORTING

*" VALUE(ID_LIST) TYPE SP01R_ID_LIST

*"----


TABLES tsp02.

CALL SCREEN '100'.

  • Dialog Module PBO

MODULE status_0100 OUTPUT.

ENDMODULE. "STATUS_0100 OUTPUT

  • Dialog Module PAI

*MODULE user_command_0100 INPUT.

*ENDMODULE. "USER_COMMAND_0100 INPUT

ENDFUNCTION.

Am I approaching this the right way? Or is there a better way of doing this?