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: 

Push button in table control not visible

Former Member
0 Kudos
681

Hi all,

I am trying to place a push button in a table control.

I drag and drop the push button into the table control as a column.

I am not able to see the push button when i execute the program,All other columns are visible. The push button is in the same group (G1) as that of other columns in the table control.

What could be the reason for the push button not being visible.

Any input would be of great help

Thanks,

nsp.

3 REPLIES 3

Former Member
0 Kudos
303

&----


*& Report ZBCR_TC *

*& *

&----


REPORT ZBCR_TC .

tables : zcourse .

types : begin of gty_course ,

sel type c ,

mark(4) type c .

include structure zcourse .

types : end of gty_course .

controls : ztc type tableview using screen '8888' .

data : gt_course type standard table of gty_course ,

gt_cols like ztc-cols ,

gw_course type gty_course ,

gw_temp type gty_course ,

gw_cols like line of ztc-cols ,

gv_fname(30) type c ,

gv_tot_cols type i .

initialization .

start-of-selection .

select * from zcourse into corresponding fields of table gt_course .

clear gw_course .

gw_course-mark = '@06@' .

modify gt_course from gw_course index 2 transporting mark .

clear gw_course .

gw_course-mark = '@07@' .

modify gt_course from gw_course index 3 transporting mark .

describe table ztc-cols lines gv_tot_cols .

call screen 8888 .

&----


*& Module PF_8888 OUTPUT

&----


MODULE PF_8888 OUTPUT.

set pf-status 'PF_8888' .

set titlebar 'TITLE_8888' .

ENDMODULE. " PF_8888 OUTPUT

&----


*& Module UCOMM_8888 INPUT

&----


MODULE UCOMM_8888 INPUT.

if sy-ucomm = 'BACK' or

sy-ucomm = 'EXIT' or

sy-ucomm = 'CANCEL' .

leave program .

endif .

case sy-ucomm .

when 'SALL' .

clear gw_temp .

gw_temp-sel = 'X' .

modify gt_course from gw_temp

transporting sel where mandt = '200' .

when 'DALL' .

clear gw_temp .

gw_temp-sel = '' .

modify gt_course from gw_temp

transporting sel where mandt = '200' .

when 'COL' .

clear : gv_fname, gw_cols .

loop at ztc-cols into gw_cols .

if gw_cols-selected = 'X' .

gv_fname = gw_cols-screen-name+10 .

message i000(zgeneral) with 'Selected column is' gv_fname .

gw_cols-selected = '' .

modify ztc-cols from gw_cols

transporting selected

where screen-name = gw_cols-screen-name .

endif .

endloop .

if gv_fname is initial .

message i000(zgeneral) with 'None of the column was selected' .

endif.

when 'HIDE' .

if gv_tot_cols = 1 .

message i000(zgeneral) with

'At least one column has to be displayed' .

exit .

endif .

clear gw_cols .

gw_cols-invisible = 'X' .

modify ztc-cols from gw_cols transporting invisible

where selected = 'X' .

gv_tot_cols = gv_tot_cols - 1 .

when 'SHOW' .

describe table ztc-cols lines gv_tot_cols .

clear gw_cols .

gw_cols-invisible = '' .

gw_cols-selected = '' .

modify ztc-cols from gw_cols transporting invisible selected

where invisible = 'X'.

endcase .

clear sy-ucomm .

ENDMODULE. " UCOMM_8888 INPUT

&----


*& Module fill_tc OUTPUT

&----


MODULE fill_tc OUTPUT.

read table gt_course into gw_course index ztc-current_line .

ENDMODULE. " fill_tc OUTPUT

&----


*& Module read_tc INPUT

&----


MODULE read_tc INPUT.

modify gt_course from gw_course index ztc-current_line .

ENDMODULE. " read_tc INPUT

Former Member
0 Kudos
303

Hi

Look at the demo program in SAP

DEMO_DYNPRO_TABLE_CONTROL_2

Here in this Program we have code for page up and Page down, you can use that code

Check the below links.

just refer to the link below

http://www.sapmaterial.com/tablecontrol_sap.html

step by step procedure with screen shots

http://www.planetsap.com/howdo_a.htm

http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbac5135c111d1829f0000e829fbfe/content.htm

http://sap.niraj.tripod.com/id25.html

Also you can see the below examples...

Go to se38 and give demodynpro and press F4.

YOu will get a list of demo module pool programs.

One more T-Code is ABAPDOCU.

YOu can find more examples there.

See the prgrams:

DEMO_DYNPRO_TABLE_CONTROL_1 Table Control with LOOP Statement

DEMO_DYNPRO_TABLE_CONTROL_2 Table Control with LOOP AT ITAB

http://www.geocities.com/ZSAPcHAT

http://www.allsaplinks.com/files/using_table_in_screen.pdf

hymavathi_oruganti
Active Contributor
0 Kudos
303

u can put the pushbutton above the table control, but u cant place it as a column of the table control.the columns to be displayed in the table control should be selected, not dragged from any where.