cancel
Showing results for 
Search instead for 
Did you mean: 

How to get attachments to a material and open it via fm ?

gerd_hotz
Contributor
0 Kudos

Hello experts,

in crm 5.0, in tx commpr01 I have a material where I have attached some documents in tabstrip documents.

Now I want to select the documents for this material per report and and then after clicking on the

selected attachement I want to open it.

Does anybody know how to do this with a fm etc. ?

Thanks and best regards

Gerd

View Entire Topic
Former Member
0 Kudos

Hi Gerd,

For opening attachments in CRM 5.0 there are 2 possibilities:

1. SAP GUI ---> FOR this please refer to class CL_CRM_DOCUMENT_EXPLORER. Here EXECUTE_FUNCTION hass all the events that you want. (eg. create doc, open doc, etc.) Just call this with the right parameters.

2. PCUI ---> For this please refer to class CL_CRM_DOCUMENTS. Here the method 'do_handle_event' has all the events one can trigger.

I hope this helps.

Regards,

Saurabh