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

Refreshing Custom container in Module pool

Former Member
0 Likes
3,167

Hi Experts,

I have a requirement of adding custom container on screen for va01 and va02 at header level at additional data B.

now after enterning the text in custom container field and clicking on save it saves the text but again after entering the next or any other

sales order no it show the same text for previous sales order.(Its not refreshing)

I tried to use

CALL METHOD text_editor1->delete_text

    EXCEPTIONS

        error_cntl_call_method = 1

        OTHERS                 = 2.

    IF sy-subrc <> 0.

      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

                 WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

    ENDIF.

in PBO and PAI but its not refreshing the text in container.

kindly provide me the syntax for refreshing custom container.

Regards,

VikramSingh.

2 REPLIES 2
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,070

If you added you own screen then you can try it like this.

When the control leaves from the screen thorough PAI then just free everything

if editor is not initial.
    call method editor->free.
endif.

if container is not initial.
    call method container->free.
endif.

call method cl_gui_cfw=>flush.

in PBO again call it like

if editor is initial.

create object container

        exporting

            container_name = 'TEDT'.

create object g_editor

exporting

parent = container.

endif.

Read only

Former Member
0 Likes
1,070

Thnks its working