cancel
Showing results for 
Search instead for 
Did you mean: 

outbound exit plugs

Former Member
0 Kudos

Hi experts,

We have just upgraded to SRM SPS 21 and realized the outbound plug is not working as expected. By right, if the interface outbound plug is declared as plug type 'Exit', it should close the current window. However, this is not the case. Any advice on this?

Thanks!

Accepted Solutions (1)

Accepted Solutions (1)

former_member184578
Active Contributor
0 Kudos

Hi.,

You have to pass close_window = 'X' . check this help docu : [Exit Plug in WDA|http://help.sap.com/saphelp_nw04s/helpdata/en/45/1bc575ba064574e10000000a114a6b/content.htm]

also check this article : [How to use exit plug in WDA|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0018077-f0c9-2b10-87af-eb9bb40776d4?quicklink=index&overridelayout=true]

hope this helps u.,

Thanks & Regards,

Kiran

Answers (1)

Answers (1)

Former Member
0 Kudos

Make an EXIT plug let say EXIT in  OUTBOUND PLUGS tab in window in which your  view is embedded. EXIT plug must have a parameter CLOSE_WINDOW type string.

write the below code in view method where ever you want to exit the application.

* Exit the application if a specific condition is met.

     DATA LO_VIEW_CNTR TYPE REF TO IF_WD_VIEW_CONTROLLER.

     DATA LO_WIN_CNTR TYPE REF TO IF_WD_WINDOW_CONTROLLER.

     DATA:

           L_PARAMETER_LIST TYPE WDR_EVENT_PARAMETER_LIST,

           L_PARAMETER TYPE WDR_EVENT_PARAMETER,

           L_VAL TYPE REF TO DATA.

     FIELD-SYMBOLS: <FS> TYPE ANY.

     LO_VIEW_CNTR = WD_THIS->WD_GET_API( ).

     LO_WIN_CNTR = LO_VIEW_CNTR->GET_EMBEDDING_WINDOW_CTLR( ).

     L_PARAMETER-NAME = 'CLOSE_WINDOW'.

     CREATE DATA L_VAL TYPE C.

     ASSIGN L_VAL->* TO <FS>.

     <FS> = 'X'.

     L_PARAMETER-VALUE = L_VAL.

     INSERT L_PARAMETER INTO TABLE L_PARAMETER_LIST.

     LO_WIN_CNTR->IF_WD_VIEW_CONTROLLER~FIRE_PLUG( EXPORTING PLUG_NAME = 'EXIT'

     PARAMETERS = L_PARAMETER_LIST ).