This website is not affiliated with, sponsored by, or approved by SAP AG.

CL_SALV_TABLE weird refresh [SOLVED]

Development (ABAP Development WorkBench, ABAP/4 programming)

Moderators: Snowy, thx4allthefish, YuriT, Gothmog

Re: CL_SALV_TABLE weird refresh

Postby VLozano » Thu Aug 09, 2012 8:05 am

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...
Tuly Idiots
Because we know we are part of the problem
VLozano
 
Posts: 5140
Joined: Mon Sep 13, 2004 8:17 am
Location: Idiocity

Re: CL_SALV_TABLE weird refresh

Postby VLozano » Thu Aug 09, 2012 8:23 am

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...
Tuly Idiots
Because we know we are part of the problem
VLozano
 
Posts: 5140
Joined: Mon Sep 13, 2004 8:17 am
Location: Idiocity

Re: CL_SALV_TABLE weird refresh

Postby VLozano » Thu Aug 09, 2012 8:31 am

->free( )

for the container.

I'm idiot.

Nothing new, I guess.
Tuly Idiots
Because we know we are part of the problem
VLozano
 
Posts: 5140
Joined: Mon Sep 13, 2004 8:17 am
Location: Idiocity

Re: CL_SALV_TABLE weird refresh [SOLVED]

Postby VLozano » Wed Aug 29, 2012 4:35 am

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).
Tuly Idiots
Because we know we are part of the problem
VLozano
 
Posts: 5140
Joined: Mon Sep 13, 2004 8:17 am
Location: Idiocity

Re: CL_SALV_TABLE weird refresh [SOLVED]

Postby VLozano » Wed Aug 29, 2012 7:27 am

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...
Tuly Idiots
Because we know we are part of the problem
VLozano
 
Posts: 5140
Joined: Mon Sep 13, 2004 8:17 am
Location: Idiocity

Re: CL_SALV_TABLE weird refresh [SOLVED]

Postby Rich » Wed Aug 29, 2012 8:43 am

VLozano wrote:but its ghost will continue alive...


Is this the true meaning of a Necro Post then ?
Regards

Rich

Image
Abap KC:http://www.richard-harper.me.uk/Kb
SFMDR:http://www.se37.com
Rich
 
Posts: 7112
Joined: Thu Oct 31, 2002 4:47 pm
Location: Liverpool

Re: CL_SALV_TABLE weird refresh [SOLVED]

Postby VLozano » Thu Aug 30, 2012 1:38 am

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:
Tuly Idiots
Because we know we are part of the problem
VLozano
 
Posts: 5140
Joined: Mon Sep 13, 2004 8:17 am
Location: Idiocity

Re: CL_SALV_TABLE weird refresh [SOLVED]

Postby VLozano » Tue Jan 31, 2017 11:11 am

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!
Tuly Idiots
Because we know we are part of the problem
VLozano
 
Posts: 5140
Joined: Mon Sep 13, 2004 8:17 am
Location: Idiocity

Previous

Return to ABAP

Who is online

Users browsing this forum: Google Adsense [Bot] and 8 guests





loading...


This website is not affiliated with, sponsored by, or approved by SAP AG.