cancel
Showing results for 
Search instead for 
Did you mean: 

FPM Suspend and Resume feature to communicate to External catalog

ashish_shah
Contributor
0 Kudos

Hi Team,

I am working on ECC 6.0 EHP5 system to implement custom solution for communicating with External catalogs from Purchase requisition WDA application MMPUR_SPPR_MAIN_APPL, Currently this application does not have catalog button.

Following is my idea:

  1. Maintain necessary entries in SPRO -->Material Management --> Purchasing --> Environment Data --> Web Services: ID  and Description for external catalogs.
  2. Add a custom button for catalog in component configuration.
  3. For handling an action of this button,Create a custom WebDynpro ABAP Component  implementing FPM interface, to send data to external catalogs and to receive the data from external catalogs.
  4. On click of catalog button WDA application, read data from this customizing and show the external catalog options to the users.
  5. Based on user selection, send data to catalog by calling this external OCI websites by suspending current application.
  6. User will select the items on catalogs screen and press check out, user will now be back to the application which was suspended.
  7. In this resumed application, read the items from URL and process it to add it in PR.

My questions are:

  1. How do i launch this custom webdynpro application on click of a button? do i need to create any launch pads in lpd_cust transaction?
  2. How do i suspend the current application?
  3. How do i resume the application when data is sent back from catalog?
  4. what should be the HOOK_URL for this custom application?

Can you kindly help to get these questions answered?

Regards,

Ashish Shah

Accepted Solutions (0)

Answers (1)

Answers (1)

ashish_shah
Contributor
0 Kudos

Hi,

I managed to call the external url using

DATA: lo_fpm          TYPE REF TO   if_fpm,            "Instance du FPM manager
         lo_navigate_to  TYPE REF TO if_fpm_navigate_to,
         ls_url_fields    TYPE fpm_s_launch_url,
         lv_url          TYPE  string.

       lo_fpm = cl_fpm_factory=>get_instance( ).


CALL METHOD lo_fpm->get_navigate_to
         RECEIVING
           ro_navigate_to = lo_navigate_to.

* Prepare URL to the external catalogin lv_url.


       ls_url_fields-url = lv_url.     " lv_url  type  string
       ls_url_fields-use_suspend_resume = abap_true.

       CALL METHOD lo_navigate_to->launch_url
         EXPORTING
           is_url_fields = ls_url_fields.

in Hook_url parameter when i provide URL to my same application , it is creating a new session and calling my application again , however it should resume to the same application.

This does not happen

is it because i am not testing my application in Portal ?

Regards,

Ashish Shah

ashish_shah
Contributor
0 Kudos

Can you suggest what could i be missing ?

The problem seems to be , I am unable to come back to the same suspended application.

Rather i am navigated to the new session.