cancel
Showing results for 
Search instead for 
Did you mean: 

METHOD cl_its_runtime=>get_url in SRM 7.0

Former Member
0 Kudos

Hello,

We are upgrading from SRM5.0 to SRM7.0.

In SRM5.0 We developed add-on function of RFx.

In this function, we can move(pop-up) to SAP standard Purchase Order screen clicking PO document No.

We used METHOD cl_its_runtime=>get_url(SAP standard method) in SRM 5.0,

to run out a new po layout,after clicking the Purchasing Document Number.

What we need your help is:

In SRM 7.0,can you give us some advice instead of using this method,or

how to use this method in SRM 7.0, to get the similar effect we saw in

SRM 5.0?

Thanks,

Ryo

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

Try below code  it will open the PO screen.

* get single attribute
  lo_el_context->get_attribute(
    EXPORTING
      name =  'PO_NUMBER'

    IMPORTING
      value = lv_po_number ).

get the guid of po number and pass it to   lv_bo_guid


  CALL FUNCTION 'BBP_OUTPUT_GET_SERVICE_URL'
    EXPORTING
      iv_guid       = lv_bo_guid
      iv_partner_id = lv_pt_no
      iv_langu      = 'E'
      ic_bus        = 'BUS2201'
    IMPORTING
      ev_url_long   = lv_url.
  DATA lo_window_manager TYPE REF TO if_wd_window_manager.
  DATA lo_api_component  TYPE REF TO if_wd_component.
  DATA lo_window         TYPE REF TO if_wd_window.lo_api_component  = wd_comp_controller->wd_get_api( ).
  lo_window_manager = lo_api_component->get_window_manager( ).

  CALL METHOD lo_window_manager->create_external_window
    EXPORTING
      url            = lv_url
      modal          = abap_false
      has_menubar    = abap_true
      is_resizable   = abap_true
      has_scrollbars = abap_true
      has_statusbar  = abap_true
      has_toolbar    = abap_true
      has_location   = abap_true
    RECEIVING
      window         = lo_window.
  lo_window->open( ).

Thanks,

Neelima

Former Member
0 Kudos

Neelima,

Thank you for your e-mail.

We could resolve the problem by source code which you teach us.

We appreciate your help!

Ryo

Answers (0)