cancel
Showing results for 
Search instead for 
Did you mean: 

table control in screen programing

Former Member
0 Kudos

Hi..

i am working with table contrl. I am able to display the table layout in ouput. I need to display the retieved data from standaar table (vbak) on to the table layout in the ouput.

what i need to do???????????

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

hi

check this code may help you

report ztest message-id 00. " FISK999999

tables: bsis.

types: begin of fi,

bukrs type bukrs,

hkont type hkont,

gjahr type gjahr,

belnr type bsis-belnr,

buzei type buzei,

budat type budat,

blart type blart,

shkzg type shkzg,

dmbtr type dmbtr,

end of fi.

data: fi_int type table of fi with header line,

cr_amt type dmbtr,

dr_amt type dmbtr.

controls: my_ctl type tableview using screen 9999.

start-of-selection.

call screen 9999.

&----


*& Module MOVE_DATA_TO_SCREEN OUTPUT

&----


module move_data_to_screen output.

move-corresponding fi_int to bsis.

endmodule. " MOVE_DATA_TO_SCREEN OUTPUT

&----


*& Module STATUS_9999 OUTPUT

&----


module status_9999 output.

set pf-status 'STD'.

endmodule. " STATUS_9999 OUTPUT

&----


*& Module MOVE_DATA_TO_ITAB INPUT

&----


module move_data_to_itab input.

move-corresponding bsis to fi_int.

append fi_int.

endmodule. " MOVE_DATA_TO_ITAB INPUT

&----


*& Module EXIT_9999 INPUT

&----


  • text

----


module exit_9999 input.

leave program.

endmodule. " EXIT_9999 INPUT

Former Member
0 Kudos

Venu - rather than cutting and pasting a portion of a blog, it would be more helpful to the original poster to simply supply the link to the original blog (which gives details of how to create the screen):

[Automatic Calculation of Totals in Table Controls|/people/rob.burbank/blog/2008/05/26/automatic-calculation-of-totals-in-table-controls]

Rob

Former Member
0 Kudos

yh... i got the values in the internal table. bt i dont know how to pass the internal table to table control internal table(????). can u suggest me.

Edited by: swathi Chandra on Jun 12, 2008 8:44 AM

Edited by: swathi Chandra on Jun 12, 2008 8:44 AM

Former Member
0 Kudos

hi Swathi,

afetr getting the values into int.table(say I_BSEG)...u need to use the following code.

process before output.

module status_0010.

loop at i_bseg with control tbcl.-->>tbcl is the table control name in layout.

module fill_table_control.-->>defined below.plz cjeck

endloop.

*

process after input.

  • MODULE USER_COMMAND_0010.

loop at i_bseg .

endloop.

&----


*& Module fill_table_control OUTPUT

&----


  • text

----


module fill_table_control output.

read table i_bseg index tbcl-current_line.

endmodule.

reward points if useful or ask questions if u have any

regards

parthu

Former Member
0 Kudos

pass the final internal table in to tablecontrol internal table

that it..........

reward If

Regards

Anbu