‎2008 May 12 7:32 AM
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
‎2008 May 12 8:26 AM
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
‎2008 May 12 8:58 AM
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