Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

button

hi, someone knows how include a button in a selection-screen?

thank you

Tags:
Former Member
Former Member replied

Hi,

Observe the code bellow.

PARAMETERS: A TYPE I,

B TYPE I,

C TYPE I.

SELECTION-SCREEN SKIP.

SELECTION-SCREEN PUSHBUTTON /10(10) LB1 USER-COMMAND PB1.

SELECTION-SCREEN PUSHBUTTON 30(10) LB2 USER-COMMAND PB2.

INITIALIZATION.

LB1 = ‘ADD’.

LB2 = ‘EXIT’.

AT SELECTION-SCREEN.

CASE SY-UCOMM.

WHEN ‘PB1’.

C = A + B.

WHEN ‘PB2’.

LEAVE PROGRAM.

ENDCASE.

Don't forget to reward,

Thanks & Regards,

Kalyan.

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question