11-19-2013 10:48 AM
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
11-20-2013 12:24 AM
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
11-20-2013 12:24 AM
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