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

Webdynpro

Neithan
Participant
0 Likes
690

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.

1 REPLY 1
Read only

Sandra_Rossi
Active Contributor
0 Likes
653

So you say that "first_time" is always false, so tell us more about what is "first_time"...