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: 

Logical Database selection screen pushbutton

Former Member
0 Kudos
274

Hello All,

I need to create a pushbutton on a selection screen of a logical database. Basically this pushbutton when clicked will either display or suppress some fields on the screen. I have tried to use the SSCRFIELDS option to create a pushbutton, however that never displays for me. Logical Database DDF has an example of a pushbutton that I am looking to create, however the functionality will be different. I am not sure what I am missing, can anyone help? Thanks.

John

1 ACCEPTED SOLUTION

jayanthi_jayaraman
Active Contributor
5 REPLIES 5

jayanthi_jayaraman
Active Contributor

andreas_mann3
Active Contributor
0 Kudos
99

Hi,

try that:

1) TABLES sscrfields.

2) SELECTION-SCREEN FUNCTION KEY 1.

3) initialization.

WRITE icon_tools TO sscrfields-functxt_01 AS ICON.

MOVE text-123 TO sscrfields-functxt_01+5.

4) AT SELECTION-SCREEN.

CASE sy-ucomm.

WHEN 'FC01'.

....

regards Andreas

Former Member
0 Kudos
99

Hello All,

Thanks for your replies. However, there is something that is causing these options not to work. For some reason when using SSCRFIELDS nothing displays. For the SELECTION-SCREEN PUSHBUTTON command, we see the push button however our code for some reason is not working. I have another developer working this with me and we are both stumped. We are mirroring that DDF Logical Database and are not having any luck so far. Does anyone have any further suggestions?

John

0 Kudos
99

in which event you have the following code for handling the pushbutton action

<b>if sscrfields-ucomm eq 'FC01' .</b>

it should be in the <b>at selection-screen</b>.

Regards

Raja