Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
Former Member
0 Kudos

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.

1 Comment
Labels in this area