cancel
Showing results for 
Search instead for 
Did you mean: 

Delete Attachment link and the launchWebdynpro button in the UWL iview

Former Member
0 Kudos

Hi,

Can anyone help me in deleting or hiding the Attachment link and the launchWebdynpro button in the UWL iview. I dont want to do it in the iview properties which would affect all the tasks. Is there a way I can do it in the backend.\

I appreciate the help.

Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

surjith_kumar
Active Contributor
0 Kudos

Hi,

For Deleting the Attachment use FM SAP_WAPI_ATTACHMENT_DELETE.

To remove the Attachment, the binding which you assigned have to be removed. Then the attachment link won't appear.

Regards,

Surjith

Former Member
0 Kudos

Hi Surjith,

I have the same problem. How can I remove the link? After I called the mentioned function module, the attachment was removed (content) but in the UWL the file name is still there:

From UWL:

myFile.pdf by WF-BATCH (94 kb)

myDeletedFile.pdf <-- I removed this one with the function module



        CALL FUNCTION 'SAP_WAPI_ATTACHMENT_DELETE'
          EXPORTING
            workitem_id     = me->mv_wf_instance_id
            att_id          = ls_att_id
            delete_document = abap_true
          IMPORTING
            return_code     = lv_return.

Could you please help me?

Thanks,

Thomas

surjith_kumar
Active Contributor
0 Kudos

Hi Thomas Mocker,

You don't want to see the attachment in the workitem right.

Goto T.code SWFVISU, Click the Object visualization and click new entries, give the select object and give your in Object type BO and in the 'visualization type' select 'None Object not Represented' .

Then save and test your workflow.

Regards,

Surjith