Skip to Content
0
Jun 19, 2012 at 05:02 PM

Closing popup window when parent and child are different components

71 Views

Hi Forum,

I am enhancing a standard component in SRM 7 to achieve some functionality.

The WD Component is FPM_OIF_COMPONENT, created a post exit for the method ONACTION_BUTTONPRESSED and opening a new window from there

CALL METHOD lo_window_manager->create_window_for_cmp_usage

EXPORTING

interface_view_name = 'ZWD_LGC_LRSC'

component_usage_name = 'ZWD_LGC_LRSC'

close_in_any_case = ABAP_TRUE <------------this should close the window?

is_resizable = ABAP_FALSE

RECEIVING

window = LO_WINDOW

.

lo_window->open( ).

In the component ZWD_LGC_LRSC thers a Create button, on clicking this some processing happens. I expected that the pop up window will close after the processing is completed because of close_in_any_case = ABAP_TRUE ?

But that is not happening.

How can achieve the functionality to close the pop up window automatically after the processing finishes on click of Create button?

Thanks,

Anubhav