cancel
Showing results for 
Search instead for 
Did you mean: 

SRM: Create a hyperlink to display PO in a ALV in webdynpro

former_member261745
Participant
0 Kudos

Hi expert,

I have an custom webdynpro report who have a list of PO number as result inside an ALV object .

I want to make each line of the result as a link to open the PO same as the functionnality in the POWL result in SRM.

Can you help me please.

(I sample code is welcome )

Accepted Solutions (1)

Accepted Solutions (1)

RicardoRomero_1
Active Contributor
0 Kudos

Hi,

Try with the following code to get the url;

CALL FUNCTION 'BBP_OUTPUT_GET_SERVICE_URL'

    EXPORTING

      iv_guid       = lv_po_guid     "the guid of your PO

      iv_partner_id = lv_partner  "dummy

      iv_langu      = sy-langu

      ic_bus        = 'BUS2201'

    IMPORTING

      ev_url_long   = lv_url.

Then use the method lo_window_manager->create_external_window to open a new window to display the PO.

Hope this help you.

Regards,

Ricardo.

Answers (0)