2010 Dec 06 9:20 AM
Save Environment. Save Yourself.
Hi Experts!!
I have 2 screens in an application - left being ALV tree (in which user id is an item under a node) and at right I have an input field. Initially, item was showing X and even the input field. Once I changed input field to Y and saved, the value is being updated there but the item under ALV tree is still showing X.
I searched for this issue in SCN and found a lot. But none of the methods solved my problem. Can anybody please help?
I have tried with SET_SCREEN_UPDATE, FRONTEND_UPDATE, FREE etc.
Thanks in advance!!
Save Environment. Save Yourself.
Hi Experts!!
I have 2 screens in an application - left being ALV tree (in which user id is an item under a node) and at right I have an input field. Initially, item was showing X and even the input field. Once I changed input field to Y and saved, the value is being updated there but the item under ALV tree is still showing X.
I searched for this issue in SCN and found a lot. But none of the methods solved my problem. Can anybody please help?
I have tried with SET_SCREEN_UPDATE, FRONTEND_UPDATE, FREE etc.
Thanks in advance!!
2010 Dec 06 9:27 AM
Hi
Use
CALL METHOD g_alv_tree->frontend_update.
CALL METHOD cl_gui_cfw=>flush
EXCEPTIONS
cntl_system_error = 1
cntl_error = 2.
declare g_alv_tree refering to cl_gui_alv_tree.
Regards,
Raghu.
2010 Dec 06 9:30 AM
Thanks for the reply. I have already tried it. It's not working.
2010 Dec 06 9:33 AM
2010 Dec 06 9:35 AM
2010 Dec 06 9:51 AM
Hi,
try using...
In PAI,
Where G_GRID- (Object for CL_GUI_ALV_TREE)
CALL METHOD G_GRID->FREE.
CLEAR G_GRID.
In PBO,
Again recreate the object .
Hope this helps.
2010 Dec 06 10:05 AM
2010 Dec 06 10:16 AM
Have u recreated the object and displayed the ALV Tree in PBO?
2010 Dec 06 10:20 AM
2010 Dec 06 10:31 AM
Ok try like this,
When u change the value in ur input field and press save, do all the actions that has to be did at the table level.
Now, Free your ALV Tree object...
say, CALL METHOD C_ALVGD->FREE.
CLEAR C_ALVGD.
try performing CALL SCREEN 9000 -
> Your Display screen. (call the same screen once again,
immediately after freeing the object).
This may help you....
2010 Dec 06 10:41 AM
Thanks for the reply. But still the problem persists... When I am FREEing the tree, the tree is disappearing. When I am going for some other options (like frontend_update etc.), it's not updating at all.
2010 Dec 06 10:43 AM
Have you tried calling the same screen, after freeing the objects....
2010 Dec 06 10:44 AM
2010 Dec 06 10:47 AM
Is the Object freeing writtern:
User_command -> Under Case ...Endcase -> When 'SAVE' -> after doing all the data processing - > free object -> Call Screen (Your display screen number)....
2010 Dec 06 10:50 AM
2010 Dec 06 11:06 AM
I can see CHANGEITEM in the class, but when being used, it's giving error. Can somebody tell me why so? How can I access it. It's under public section only. Please help me out.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |