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

PushButton in Screen

Former Member
0 Likes
338

hi! all

1. I have created an Executable Program.

2. which has a screen to get the Input values.

3. screen has Push buttons.

4. fetched the push button using sy-ucomm.

5. is it possible to list the data using classical list display method under the pushbutton, explain how to display the list.

Example :

Print Pre-view

po.no po.date . . . .

Thanks and Regards,

Nagulan

2 REPLIES 2
Read only

Former Member
0 Likes
304

Hi,

I am giving one example code.It will help for you.

TABLES: spfli.

DATA:

BEGIN OF itab OCCURS 10,

carrid TYPE spfli-carrid,

connid TYPE spfli-connid,

fldate TYPE sflight-fldate,

END OF itab.

DATA: ok_code TYPE sy-ucomm.

CALL SCREEN '0100'.

&----


*& Module USER_COMMAND_0100 INPUT

&----


  • text

----


MODULE user_command_0100 INPUT.

CASE ok_code.

WHEN 'DISP'.

LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.

SELECT carrid

connid

fldate

FROM sflight INTO TABLE itab

WHERE carrid EQ spfli-carrid AND

connid EQ spfli-connid.

LOOP AT itab.

WRITE: / itab-carrid,

itab-connid,

itab-fldate.

ENDLOOP.

ENDCASE.

ENDMODULE. " USER_COMMAND_0100 INP

Regards,

Jagadeesh

Read only

Former Member
0 Likes
304

hi

frist use the at user -command event and when the fcode is triggerd

call a subroutine in which u can wrute ur code to display it in classical list or write statements

EX:

let ur push button have fcode DISP.

AT USER-COMMAND.

case SY-ucomm.

when DISP.

*call subroutine

PERFORM DISPLAY.

endcase .

form display .

write field 1.

write fiel2.

.

.

.

.

.

endform.

Cheers

Snehi Chouhan