09-12-2008 8:14 AM
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
09-12-2008 8:23 AM
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
09-12-2008 12:56 PM
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
09-12-2008 1:08 PM
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