Skip to Content

CL_DD_DOCUMENT Refresh Issue

I am using CL_DD_DOCUMENT header to display text.

if user select operation 10, I want to display operation 10 in the display text.

if user select operation 20, I want to display operation 20 in the display text.

But its not getting refresh!! its only displaying first variable only.

I am passing parameters as desired,

ALL METHOD o_dyndoc_id->display_document
EXPORTING
reuse_control = 'X'
container = 'o_cont_topt
EXCEPTIONS

html_display_error = 1.

Regards

Sas

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Feb 01 at 08:39 AM

    There are 2 solutions:

    1st proposition: REUSE_CONTROL = 'X' is the right way to do it, but also make sure you don't re-create O_DYNDOC_ID (if two active controls occupy the same container, only the first one is displayed). Do a debug on method DISPLAY_DOCUMENT to make sure the control is not created every time.

    2nd proposition: Or use the method FREE of the container every time you leave/reload the screen (it will free the HTML control), but it may be more complex to do.

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 03 at 07:21 AM

    hi,

    i have got same problem, for my problem i have solved differently

    that is

    1. clear object of container of document display.

    2. create document for every time for refresh

    3. again create container object.

    4. use that created container object for document display

    like that i have solved my problem

    Add comment
    10|10000 characters needed characters exceeded