Quantcast
Channel: SCN: Message List - SAP CRM: Webclient UI - Framework
Viewing all articles
Browse latest Browse all 7775

How to manage DO_PREPARE_OUTPUT

$
0
0


Hi All,


I added the following code into DO_PREPARE_OUTPUT method of my custom assigment block's IMPL class.

As you see, I am looking if it is the first time in the request for change order or not.

If it is first time in the order then I am gonna add lines into the assignment block otherwise I wont.

But when I click the standart 'Notes' assignment block in the same order and add a note and go back to the order page, the page triggers DO_PREPARE_OUTPUT again and it acts like its the first time in the order and adds 2 more lines too!! 


How can I handle if its second time in the same page but DO_PREPARE_OUTPUT thinks its the first time?

 

 

   if iv_first_time eq abap_true.

 

* Populate the lines of the assignment block

     me->mv_min_empty_lines = 2.


    else.

     me->mv_min_empty_lines = 2.

    

     endif.


Viewing all articles
Browse latest Browse all 7775

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>