‎2012 Apr 11 9:37 AM
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.
‎2012 Apr 11 11:14 AM
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.
‎2012 Apr 13 6:38 AM