Application Development 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: 

table control program

Former Member
0 Kudos

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

3 REPLIES 3

former_member188685
Active Contributor
0 Kudos

When you are creating the Tocde , you just check all the checkboxes related to GUI.

SAP GUI For HTML

SAP GUI for Java

SAP GUI for Windows.

then it will not give that message

Former Member
0 Kudos

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.

ENDLOOP.

MODULE status_0110.

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

PROCESS AFTER INPUT.

MODULE user_command_0110.

LOOP AT ITAB.

ENDLOOP.

3. pbo event.

&----


*& Module status_0110 OUTPUT

&----


text

-


module status_0110 output.

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

and in painter the table control column name should be ur internal table field name

like

itab-abc

itab-ffsf

regards

anil chaudhary

Former Member
0 Kudos

Hi Yog Raj,

You will get the required example in the system only,

go to trasaction se38, get the F4 help for the program name demodynpro*..

Now in the displayed pop up you will get the all module pool examples you can fing for the ab control.

assgn points if it helps........

regards,

mahantesh