on 06-12-2008 7:33 AM
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???????????
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
pass the final internal table in to tablecontrol internal table
that it..........
reward If
Regards
Anbu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.