Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Changed data not reflecting CL_GUI_ALV_TREE

Former Member
0 Kudos

Hi All,

Iam using CL_GUI_ALV_TREE to display the Balance sheet data. I have added a button on application tool bar to convert data from one currency to other other currency.

Iam changing the data as per requested currency and modified final table.

In PBO , ALV container is called only once.

in PAI my routine converts the currency. I have used

CALL METHOD cl_gui_cfw=>dispatch.

CALL METHOD cl_gui_cfw=>flush.

Iam not able to see changed currency data on my ALV TREE .

Please let me know Iam missing any thing.

Thanks

Krishna

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Dear Krishna ,

U r creating the container and tree in PBO for first display and in PAI after clicking on some button .

Put a condition in PBO befor creating object container that is initial or not.

If initial then code of PBO should execute other wise it should skip.

I think after executing PAI your PBO code executed again .

4 REPLIES 4

Former Member
0 Kudos

Dear Krishna ,

U r creating the container and tree in PBO for first display and in PAI after clicking on some button .

Put a condition in PBO befor creating object container that is initial or not.

If initial then code of PBO should execute other wise it should skip.

I think after executing PAI your PBO code executed again .

0 Kudos

Hi Vishnoi Alok,

In that case my changed data is displayed in another container beside to existing container..

I hope we almost there.

Thanks

Krishna

0 Kudos

If u r using some other container for changed data then u have to FREE/CLEAR ur existing container or tree....

0 Kudos

Hi Vishnoi Alok,

It worked in this way..

In PAI.. after data chaning..

CALL METHOD alv_tree_control->free.

CALL METHOD control_container->free.

In PBO

I have not used if not initial for both the container..custom container and ALV container..

Thanks Alok

Rewarded for your answer.

Thanks

Krishna