Skip to Content
0
Former Member
Nov 14, 2011 at 01:44 PM

attachment url in workflow

245 Views

Please help me. I have this code, but when executing it ,show the url in type text, and not in the browser.

I have two links but the result is the same

http://wiki.sdn.sap.com/wiki/display/CRM/CRMWorklist-LaunchBSP-WebdynproApplications

please put an example .

Thanks and excuses me my English.

url = 'www.google.com'.

ls_Att_header-FILE_TYPE = 'T'.

ls_Att_header-FILE_NAME = 'Modificaciòn de texto'.

ls_Att_header-FILE_EXTENSION = 'HTM'.

ls_Att_header-LANGUAGE = sy-langu.

  • Call the API to Attach the URL attachment

lv_Work_item_id = WF_ID.

CALL FUNCTION 'SAP_WAPI_ATTACHMENT_ADD'

EXPORTING

WORKITEM_ID = lv_Work_item_id

ATT_HEADER = ls_Att_header

ATT_TXT = url

DOCUMENT_OWNER = SY-UNAME

LANGUAGE = SY-LANGU

DO_COMMIT = 'X'

IMPORTING

RETURN_CODE = rv_value

ATT_ID = att_id.