Skip to Content

Dear All; Thought to share a document on how to display SAP archived document from ABAP webdynpro application; Step1: Create Webdynpro application to display the required business document for (e.g Sales Order). In our scenario we will be displaying the Claim process. Step2: On lead selection display the list of attachments (table) Step3: On lead selection from the attachment table launch a new window to display the archived document. *- Data declaration data:  Lv_OBJECTTYPE      LIKE  TOAV0-SAP_OBJECT, data:  Lv_OBJECT_ID          LIKE  TOAV0-OBJECT_ID, data:  lit_uri                        TYPE standard table of toauri. 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. data:  ld_url type string. *- End of data declaration *- call function module “ARCHIVOBJECT_GET_URI” call function ‘ARCHIVOBJECT_GET_URI’ exporting objecttype              = Lv_OBJECTTYPE object_id                = Lv_OBJECT_ID  location                = ‘F’ http_url_only            = ‘ ‘ tables uri_table                = lit_uri. *- Read the internal table with the key for the document selected by the user read table lit_uri into lwa_uri with key arc_doc_id = lwa_alist-arc_doc_id. *- If sucess call the method “create_external_window” from  if_wd_window_manager if sy-subrc eq 0. lo_api_component  = wd_comp_controller->wd_get_api( ). lo_window_manager = lo_api_component->get_window_manager( ). ld_url = lwa_uri-uri. cll method lo_window_manager->create_external_window exporting url    = ld_url receiving      window = lo_window. lo_window->open( ). endif.

To report this post you need to login first.

1 Comment

You must be Logged on to comment or reply to a post.

  1. Mansoor Ahmed

    Thank you so much for the info but when I am putting this URL

    http://10.1.25.105:1090/ContentServer/ContentServer.dll?get&pVersion=0046&contRep=Z9&docId=26AE59514F61B92AE10000000A011968&accessMode=r&authId=CN%3DDEV&expiration=20160128142127&secKey=MIH4BgkqhkiG9w0BBwKggeowgecCAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHATGBx&downloadAs=XLS&secKey=MIH4BgkqhkiG9w0BBwKggeowgecCAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHATGBx

    Above URL is supposed to download an Excel file but it’s downloading as ContentServer.dll instead of xls.. when dll is downloaded I have changed its extension to XLS and i can see the excel correctly.. but it’s downloading it as ContenServer.dll

    Rest of the formats are working as desired.

    Please help.

    (0) 

Leave a Reply