initialize_document

Use this method to reset the contents of a dynamic document.

This method does not destroy the control used to display the dynamic document. Consequently, you can use the method to clear the contents of a document and then construct a new document using the same object reference. For further details, refer to Displaying a Dynamic Document.

CALL METHOD valid_reference->initialize_document
          EXPORTING background_color = background_color
                    no_margins       = no_margins

Parameter and Type

Opt.

Description

background_color
TYPE I

X

Sets the background color for the document. Possible values are constants from class cl_dd_area beginning COL_*

no_margins
TYPE SDYDO_FLAG

X

Specifies whether the system should leave margins around the document. Possible values:

  • 'X' : Document created without margins
  • ' ' (default): Document created with margins