on 12-08-2008 1:06 PM
Hello all,
I am searching for a way to react to a user uploading a new attachment to an opportunity in the Web UI. Initially I thought I could simply put custom code in a Badi or write a new EC function module but it seems there is neither an event for this, nor is there a Badi that is executed. Additionally, attachments are obviously saved to the opportunity without needing to run Badi ordersave first.
Is there any way to have custom code run in this case?
I tried to enhance view AddDoc in component GS_CM but in the appropriate methods (or at least those I think are appropriate) do not seem to have access to the opportunity guid (private objects).
Any ideas?
Regards
Thomas
Just to post the correct solution... There is indeed a Badi for this, CRM_DOCUMENTS. Works like a charm for my requirement!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Thomas,
To find the BADI that is triggered after adding an attachment, do the following:
1. Go to the TCode SE24 and enter CL_EXITHANDLER as object type.
2. In 'Display' mode, go to 'Methods' tab.
3. Double click the method 'Get Instance' to display it source code.
4. Set a breakpoint on 'CALL METHOD cl_exithandler=>get_class_name_by_interface'.
5. Then run your transaction and add an attachment.
6. The screen will stop at this method.
7. Check the value of parameter 'EXIT_NAME'. It will show you the BADI for that transaction.
Do let me know in case of any further help.
Regards,
Saumya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.