Page 2 of 2

Re: CL_SALV_TABLE weird refresh

PostPosted: Thu Aug 09, 2012 8:05 am
by VLozano
From weird to weirdest... I've decided to create a new dynpro, use a new container object, a new grid object (CL_GUI_ALV_GRID) and... the refresh thing is still the same piece of sh!t...

Re: CL_SALV_TABLE weird refresh

PostPosted: Thu Aug 09, 2012 8:23 am
by VLozano
Hint: the only thing both screens have in common (but the program, of course) is the use of a CL_GUI_CUSTOM_CONTAINER object... I'm working in this line now...

Re: CL_SALV_TABLE weird refresh

PostPosted: Thu Aug 09, 2012 8:31 am
by VLozano
->free( )

for the container.

I'm idiot.

Nothing new, I guess.

Re: CL_SALV_TABLE weird refresh [SOLVED]

PostPosted: Wed Aug 29, 2012 4:35 am
by VLozano
Necroposting alert!

I'm sorry, but the weird'o'city continues.

I solved the problem through the free method of the classes (after move my code from CL_SALV_TABLE to CL_GUI_ALV_GRID and so. I missed some refreshes in a screen, added the free( ) methods before leaving that screen and solved it, BUT...

... BUT when I change any subscreen in the weird dynpro, those free() are not called or are not working. I'm still debugging it, but I though it was a nice idea to share my doom with you and future searchers (hey mate, if you reached this post through the search button, welcome and thanks for use it).

Re: CL_SALV_TABLE weird refresh [SOLVED]

PostPosted: Wed Aug 29, 2012 7:27 am
by VLozano
And the winner is... the refresh_table_display() method.

You must call it in the PBO if the grid object is already declared. Something like:
Code: Select all
IF mygrid IS INITIAL.
  CREATE OBJECT mygrid
      ....
  CALL METHOD mygrid->set_table_for_first_display( ).
ELSE.
  CALL METHOD mygrid->refresh_table_display( ).
ENDIF.
CALL METHOD cl_gui_cfw=>flush( ). "I add it just because it works, but I dunno why

Something stinks in SAP if you can destroy (free) an object but its ghost will continue alive...

Re: CL_SALV_TABLE weird refresh [SOLVED]

PostPosted: Wed Aug 29, 2012 8:43 am
by Rich
VLozano wrote:but its ghost will continue alive...


Is this the true meaning of a Necro Post then ?

Re: CL_SALV_TABLE weird refresh [SOLVED]

PostPosted: Thu Aug 30, 2012 1:38 am
by VLozano
It could be... It's raised long time after been solved, something stinks and ... doh! It only needs a moron's post... Let's wait few months :twisted:

Re: CL_SALV_TABLE weird refresh [SOLVED]

PostPosted: Tue Jan 31, 2017 11:11 am
by VLozano
I gladly necropost here after almost five years just to say I could solve my problem just today.

Another client, another work, another program... but it works. Me rulez!