Skip to Content

HTMLB link using iterator,internal table cleared if link clicked twice.

Hi All,

we are showing a column as HTMLB link using iterator .


when 'ACTION'.

        if p_edit_mode is not initial.

          data: bee_table  type ref to cl_bsp_bee_table,
                link       type ref to cl_htmlb_link.
          data: cell_id_del(20).

          cell_id_del = p_cell_id.
          create object bee_table.
          link ?= cl_htmlb_link=>factory( id = p_cell_id
                                           text = 'Modify Entries'
                                           o n c l i c k  = 'modify').

          bee_table->add( element = link level = 1 ).
          p_replacement_bee ?= bee_table.

in eventhandler OnInputProcessing , we are executing some ABAP code.

IF event IS NOT INITIAL AND event->event_name = htmlb_events=>link.
  link_event ?= event.

  CASE event->event_server_name.

    WHEN 'modify'.
Some ABAP code.
flag = 'X' .


In Layout we are checking the flag and calling a new popup window using .

When the link is clicked for the first time , everything works fine.

But when we click the link second time , the popup window opens but , in the calling page (which contains the table view)  all the internal tables are refreshed.

Application is stateful.

What can be the reason?



Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on Dec 11, 2008 at 11:38 AM

    Hi anubhav

    Once check in debugging mode whether you are clearing the internal table of data, else i guess this should not happen.



    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 11, 2008 at 07:44 PM

    Why don't you use "protectDoubleSubmit" tag to avoid the double click?

    <xhtmlb:protectDoubleSubmit  active="TRUE"/>


    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Raja,

      The issue is not that the link is clicked twice in succession , even if the user clicks the link after the first click is procssed completely , the itabs are refreshed and i am using protectdoublesubmit.

      The problem is that the internal tables refreshed if the link is clicked more than once.

      Thanks a lot,


      Edited by: Anubhav Jain on Dec 12, 2008 5:56 AM

  • Posted on Dec 12, 2008 at 08:01 AM


    The URL of window , which is called on click of the link.

    w i  nd ow.o p e n('tv_popup.htm?sap-sessioncmd=open&matcode='+matcode+'&end','mywindow','width=440,height=220,resizable=no');

    can there be any problem in the url of called window?

    Thanks All,


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.