‎2006 Nov 16 8:38 AM
Hi all ,
Am new to this class concepts...Im my report am using class CL_DD_DOCUMENT...In my class i have to use the method export document , merge document...How to make use of this methods and what parameters i have to pass for this class.....Can anybody please help me...
‎2006 Nov 16 9:00 AM
Hi Abaper,
I listed the order in which the FM's are called.
Also i have mentioned below how the container and the document handle are assigned.
CALL METHOD g_dd->initialize_document.
(1)Add Table
CALL METHOD g_dd->add_table
EXPORTING
no_of_columns = 3
width = '40%'
cell_background_transparent = space
IMPORTING
table = l_table.
(2.1)Add Header Line
CALL METHOD l_table->add_column
EXPORTING
width = '30%'
IMPORTING
column = l_column1.
Right aligning the amount fields
CALL METHOD l_table->set_column_style
EXPORTING
col_no = 2
sap_align = 'right'.
(2.3)Add Header Line Columns Contents
CALL METHOD l_table->new_row.
CALL METHOD l_column2->add_text
EXPORTING
text = text-010.
CALL METHOD g_dd->merge_document.
CALL METHOD g_dd->display_document
EXPORTING
reuse_control = 'X'
parent = g_cell_foot
EXCEPTIONS
html_display_error = 1
OTHERS = 2.
Container and Document handle.
g_cell_foot TYPE REF TO cl_gui_container
g_cell_foot = g_splitter->get_container( row = 3 column = 1 ).
Reward points if it helps.
Regards
Meera
‎2006 Nov 16 9:06 AM
Hi Contact Abaper,
Please Check the Demo Program <b>DD_STYLE_TABLE</b>, here you get a good Idea , how to use the class CL_DD_DOCUMENT.
Regards
Vijay
‎2006 Nov 16 9:16 AM
hi
good
go through these links and use accordingly
http://sap.ittoolbox.com/code/archives.asp?i=10&d=2590&a=s
/people/venkata.ramisetti/blog/2005/12/20/dynamic-documents-in-abap-objects
thanks
mrutyun^