Skip to Content

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

table control program

hai I have problem in table control in 'se80'

create table control in screen painter and the program is follow,,,,,,

__1.include__

TABLES SPFLI.

CONTROLS MYTABLE TYPE TABLEVIEW USING SCREEN 110.

DATA: ITAB LIKE SPFLI OCCURS 0 WITH HEADER LINE.

2.flow logic

PROCESS BEFORE OUTPUT.

LOOP AT ITAB WITH COTROL MYTABLE CURSOR MYTABLE-CURRENT_LINE.

***LOOP WITH CONTROL mytable."-current_line.

MODULE status_0110.

ENDLOOP.

here it ll show the error 'itab is not data base table'

PROCESS AFTER INPUT.

MODULE user_command_0110.

LOOP AT ITAB.

***LOOP WITH CONTROL mytable."-current_line.

ENDLOOP.

3. pbo event.

&----


*& Module status_0110 OUTPUT

&----


  • text

----


module status_0110 output.

SPFLI-CARRID = ITAB-CARRID.

SPFLI-CONNID = ITAB-CONNID.

SPFLI-CITYFROM = ITAB-CITYFROM.

SPFLI-CITYTO = ITAB-CITYTO.

SPFLI-FLTIME = ITAB-FLTIME.

endmodule. " status_0110 OUTPUT

4.pai event

&----


*& Module user_command_0110 INPUT

&----


  • text

----


module user_command_0110 input.

CASE SY-UCOMM.

WHEN 'DISPLAY'.

SELECT * FROM SPFLI INTO TABLE ITAB .

*MYTABLE-LINES = SY-DBCNT.

WHEN 'EXIT'.

LEAVE PROGRAM.

ENDCASE.

endmodule. " user_command_0110 INPUT.

when creating transaction it ll show error' GUI capability of transaction Z1234 classified '..

any modify my program and send to me ..........

and send me the example program and description,,,,,,,,,,

thankyou

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