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: 
Read only

doubt in class CL_DD_DOCUMENT

Former Member
0 Likes
947

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...

3 REPLIES 3
Read only

Former Member
0 Likes
591

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

Read only

Former Member
0 Likes
591

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

Read only

Former Member
0 Likes
591

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^