cancel
Showing results for 
Search instead for 
Did you mean: 

Popup screen is not working Properly

former_member574468
Participant
0 Kudos

Hi all,

I m using one Popup Screen tp show the Details in ALV by Clicking a Button.

In first time, Output Details are coming in the POPUp screen.

In the second time without refreshing the screen, when i Click the same button, the screen only coming. No alv is showing and No data is showing.

But in the debug mode i saw the data are binded properly.

Plz give me the solution.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI,

Where are you instantiating the ALV...and paste that code..

try to instantiate the ALV on the button clikc..so that everytime you will have the data and also new instance..

One more this...are you using the SET_DATA of ALV or statically you are binding the DATA node of ALV.

Regards,

Lekha.

Edited by: Lekha on Dec 12, 2009 4:44 PM

former_member574468
Participant
0 Kudos

Hi Lekha,

Instantiation is made on the Button Click event only and I statically binding the DATA node of ALV.

Eventhough all are there as per ur norms, it is not showing when the button is pressed in the second time...

Help me to cmeout of this...

Former Member
0 Kudos

Ca you paste the code once...for this instantiation...

former_member574468
Participant
0 Kudos

Hi,

the below is the code...

DATA lo_cmp_usage TYPE REF TO if_wd_component_usage.

lo_cmp_usage = wd_this->wd_cpuse_alv_variant( ).

IF lo_cmp_usage->has_active_component( ) IS INITIAL.

lo_cmp_usage->create_component( ).

ENDIF.

If i wrongly understood the instantiation, plz tell me the code....

Thanks in advance...

Former Member
0 Kudos

Hi,

DATA lo_cmp_usage TYPE REF TO if_wd_component_usage.

lo_cmp_usage = wd_this->wd_cpuse_alv_variant( ).


IF lo_cmp_usage->has_active_component( ) IS INITIAL.
lo_cmp_usage->delete_component( ).
lo_cmp_usage->create_component( ).
ENDIF.

Try to use the DELETE_COMPONENT method then try creating he instance using CREATE_COMPONENT..

this solves the issue...

Regards,

Lekha.

Edited by: Lekha on Dec 14, 2009 11:35 AM

former_member574468
Participant
0 Kudos

Thank a lot Lekha...

My issue is solved....

Now working perfect...

Thanks for ur support...

Answers (0)