Sunteți pe pagina 1din 4

Types of Plugs( In Bound, Out Bound, Startup, Exit, Suspend, Resume

plugs )
Window-Exits,
Navigation between the Views( Within same component )
Navigation between the Views( Between different components )
View Assembly & Contextual Panels.( Side Panels )
View Container UI Element
Calling Transaction Codes

Suspend and Resume Calls


Suspend and resume calls in Web Dynpro ABAP applications are useful if you
want to navigate to a second application running stand-alone, without
closing the first application. To make suspend and resume calls you can
select any outbound or inbound plugs from the interface view of a Web
Dynpro window to use as suspend or resume plugs. The suspend plug call is
similar to an exit plug call in as much as both plugs are used to exit an active
Web Dynpro ABAP application. The suspend plug is different from the Exit
Plug because it enables you to return to the original application after you
have used a second, stand-alone application. The original application is only
temporarily deactivated or suspended; it is not shut down as it would be with
an exit plug, and it can be reactivated by calling the resume plug.
You can set up a suspend plug in a Web Dynpro ABAP application to call:

Another Web Dynpro application


A Web application using a different technology (e.g. BSP).

*
Since suspend and resume plugs are used for communicating from the
active application, they have to be added to the interface view of the window.
Each suspend plug has the URL parameter, which here is mandatory, not
optional as it is with the exit plug. When a suspend plug is called, a target URL
must be specified.
If at least one suspend plug is created for an interface view, one resume plug
must also be created too. Without a resume plug an application cannot be
reactivated once it has been suspended. Only one resume plug can be
defined for each Web Dynpro window.
Suspend Call to a Web Dynpro ABAP Application

It is easy to set up this suspend call: First select an outbound plug as the
suspend plug in the primary WDA application. Call the plug, and as the value
for the URL parameter specify a string that represents the URL of the target
application (see the example code below).
method ONACTIONGO_SUSPENDING .
data: L_REF_MAIN_WINDOW type ref to IG_MAIN_WINDOW .
L_REF_MAIN_WINDOW = WD_THIS->GET_MAIN_WINDOW_CTR( ).
L_REF_MAIN_WINDOW->FIRE_GO_SUSPENDING_PLG(
URL = 'http:///webdynpro/sap/my_secondary_wda' ).
endmethod..
The Web Dynpro application URL is defined as one of the application's
properties on the relevant tab page of the application, and it can be
accessed from here.
When an exit plug is triggered in the secondary WDA application, this
application is closed and the resume plug of the primary application is called
automatically. Within the Web Dynpro framework a reference to the active
instance of the primary application is always transferred in the suspend
call. The secondary application knows its status as the subsequent
application of a suspended primary application, and returns to the resume
plug of the primary application when an exit plug is called using the specified
reference.
In this case no further programming steps are necessary.

Suspend Call to a non-Web Dynpro ABAP Application

It is more difficult to create a suspend call to a non-WDA application because


modifications are also required in the secondary application. For instance,
you have to implement the mechanism for returning to the primary
application.As well as specifying the address of the secondary application in
the mandatory URL parameter, you have to also specify the URL of your own
application for the subsequent return step. This is known as the resume URL
and this is also transferred as the URL parameter to the secondary
application.
The resume URL must be read in the secondary application. A redirect to the
resume URL is then opened in the browser window of the secondary
application.

With this URL the primary application is called using the resume plug, and
reactivated.
Suspend and resume plugs can have user-defined parameters. For more
information, seeWindow: Inbound and Outbound Plugs.
Suspend and resume calls are not released for use in a portal
environment.

Hi
1.Create Suspend Outbound plug in window ( when you create this URL parameter is automatically added to the plug
by the framework )
2.Create Resume In bound plug in the same window

3. add the window controller usage to the View in Properties Tab


4. fire the window outbound plug by passing the Other Applicaiton URL
-

Now, in the Second Application to come back to the First Application


You have to read teh Application Parameter 'sap-wd-resumeurl' which is a URL and using LinkToURL or ExitPlug you
can achieve this

S-ar putea să vă placă și