Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

FM FREE_SELECTIONS_DIALOG as subscreen of selection screen

former_member210118
Participant
0 Kudos

Hello friends.

I've been searching in the web and specifically here, for a answer to this, but with no success.

So i'm writing this discussion.

What i need ?

I need to use this function module as it is used in a program with logical database, but without using logical databases. I need to have some fields as normal selection screen and with this function as a subscreen of that selection screen. As shown in the following image:

Can this be done ? Anyone knows how ?

Thank you

1 ACCEPTED SOLUTION

custodio_deoliveira
Active Contributor
0 Kudos

Hi Ricardo,

Not sure you can add this as a subscreen, but you can definitely add as dialog (popup) when pushing a button.

* need to declare this table to add text and/or icon to button

TABLES sscrfields .

PARAMETERS p1. "dummy parameter

SELECTION-SCREEN: FUNCTION KEY 1. "this activates a button

AT SELECTION-SCREEN OUTPUT.

   sscrfields-functxt_01 = '@7Z@'. " this adds icon to button

AT SELECTION-SCREEN.

 

   IF sy-ucomm = 'FC01'. " here you code for your added button

* here you call your FM FREE_SELECTIONS_DIALOG

   ENDIF.

START-OF-SELECTION.

cheers,

Custodio

1 REPLY 1

custodio_deoliveira
Active Contributor
0 Kudos

Hi Ricardo,

Not sure you can add this as a subscreen, but you can definitely add as dialog (popup) when pushing a button.

* need to declare this table to add text and/or icon to button

TABLES sscrfields .

PARAMETERS p1. "dummy parameter

SELECTION-SCREEN: FUNCTION KEY 1. "this activates a button

AT SELECTION-SCREEN OUTPUT.

   sscrfields-functxt_01 = '@7Z@'. " this adds icon to button

AT SELECTION-SCREEN.

 

   IF sy-ucomm = 'FC01'. " here you code for your added button

* here you call your FM FREE_SELECTIONS_DIALOG

   ENDIF.

START-OF-SELECTION.

cheers,

Custodio