Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

ALV tree

Hi everyone..

I have one problem, please help me out.

scenario: first screen : selection screen

Second screen : list of data in ALV GRID format and in application bar there is Two buttons (1. Summery , 2. Detail)

Third screen : one container (to display data in tree format).

Problem:

After coming in third screen by pressing summery button if i do press expand all node button from toolbar and after this i am press back button, so i m coming into second screen. now from this screen in i want to display tree view by pressing any button. to do this i am pressing detail button, but in third screen it will display same output as displayed before for summery button. this problem is coming only if i do use any button from toolbar of alv tree. otherwise both the time data is coming as per expectation.

please help me in this and if you want any further explanation of problem then ask me.

Thanks,

Siddharth

replied

Hi,

This probaly is because in the secondary list.

You check for the control and then get the data some thing like this

If G_CONT is intiail.

Get data

Create Object

etc.

endif.

this condition fails.

hence always before leaving the second screen

Clear G_CONT.

santhosh

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question