‎2022 Apr 12 12:31 PM
Hi Everyone ,


As you can see in the first photo, I have two tables and buttons(1-2) under these tables.
- When I press the first button, the screen in the second picture opens. no problem here .
- But when I click the back button and click on the second button after the first picture is displayed, it still shows the same result.
- When I examined the codes with break point, I saw that after pressing the back button, pressing the second button did not enter the following if condition.
DATA: lo_tc TYPE REF TO cl_wd_transparent_container.
IF first_time EQ abap_true.
* Ekrandaki default TC bulunur:
lo_tc ?= view->get_element( id = 'ROOTUIELEMENTCONTAINER' ).
" İlk Asıl Belge Ekrana Eklenir
DATA(lo_parent_tc) = wd_this->add_doc_to_ui( EXPORTING io_parent_tc = lo_tc
iv_doc_guid = wd_this->mv_doc_guid ).
ENDIF.
I think I need an else condition, but how should I do it?
Thanks regards.
‎2022 Apr 12 2:19 PM
So you say that "first_time" is always false, so tell us more about what is "first_time"...