cancel
Showing results for 
Search instead for 
Did you mean: 

Regading closing the popup window for component usage

Former Member
0 Kudos

Hi,

Please check my piece of code -

wd_comp_controller->GREF_W_POPUP = wd_comp_controller->GREF_W_MANAGER->create_window_for_cmp_usage(

interface_view_name = wd_assist->gc_TABLE

component_usage_name = wd_assist->gc_U_ALV_EXPENSE_SPLIT

TITLE = wd_assist->gc_title_split "Expense split maintenance

close_in_any_case = abap_false

message_display_mode = if_wd_window=>co_msg_display_mode_ALL

CALL METHOD wd_comp_controller->GREF_W_POPUP->SET_CLOSE_BUTTON

EXPORTING

CLOSE_BUTTON = abap_true.

CALL METHOD wd_comp_controller->GREF_W_POPUP->SET_ON_CLOSE_ACTION

EXPORTING

VIEW = wd_comp_controller->GREF_V_CONTROLLER

ACTION_NAME = wd_assist->GC_CLOSE_SPLIT.

In the close action I wrote the following code -

CALL METHOD wd_comp_controller->GREF_W_POPUP->SET_CLOSE_IN_ANY_CASE

EXPORTING

CLOSE_IN_ANY_CASE = abap_true.

CALL METHOD wd_comp_controller->GREF_W_POPUP->CLOSE.

Here the problem is, when I set the close in any case is set to abap_false then explicitly I'm using the

SET_CLOSE_IN_ANY_CASE but the window is not getting closed.

I'm using the latest version of netweaver.

Any ideas on this.

Regards,

Lekha.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

resolved by me

Former Member
0 Kudos

Hi,

In addtion to the original post -

There is one view upon link click Im opening the ALV component in the form of the popup.

In this ALV, we have got one button (delete) inside ALV, upon this Im showing another popup for

deletion of the data with YES and NO butttons. If I click YES then the data gets deleted. Now when I try to close the ALV popup it is not getting closed. This is the issue.

How to close the popup in this case. I wrote all the ncessaery code in the original post.

If I remove this deletion popup the ALV popup is getting closed otherwise Not.

Any views.

Regards,

Lekha.

Former Member
0 Kudos

Hi All,

I resolved by myself.

Regards,

Lekha.

Former Member
0 Kudos

Try using method CLOSE instead of SET_CLOSE_IN_ANY_CASE in the event handler of close method.