Application Development and Automation 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: 
Read only

toolbar button

Former Member
0 Likes
476

Hello!

I added button to application toolbar in selection screen with SELECTION-SCREEN FUNCTION KEY 1. I want when push tish button to get a list with the content of table-which

is result from RFC.

Can you help me somebody?

Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
444

chk this demo program and modify acoordingly

DEMO_SEL_SCREEN_PUSHBUTTON

2 REPLIES 2
Read only

Former Member
0 Likes
445

chk this demo program and modify acoordingly

DEMO_SEL_SCREEN_PUSHBUTTON

Read only

Former Member
0 Likes
444

Hi,

Try this code:

ZSAMPLE.

TABLES SSCRFIELDS.

*It can create max 5 buttoms (see the structure SSCRFIELDS).

SELECTION-SCREEN FUNCTION KEY 1.

*SELECTION-SCREEN FUNCTION KEY N.

*SELECTION-SCREEN FUNCTION KEY 5.

SELECTION-SCREEN FUNCTION KEY 2.

parameter: distance type spfli-distance.

INITIALIZATION.

MOVE: 'My button 1' TO SSCRFIELDS-FUNCTXT_01,

'My button 2' TO SSCRFIELDS-FUNCTXT_02.

  • ...........................................,

  • 'My button 5' TO SSCRFIELDS-FUNCTXT_05.

AT SELECTION-SCREEN.

CASE SSCRFIELDS-UCOMM.

WHEN 'FC01'.

**logic required

WHEN 'FC02'.

call transaction 'SE24'.

  • ...................

  • WHEN 'FC05'.

ENDCASE.

Regards,

Beejal

**reward if this helps