‎2012 Jan 27 4:05 PM
Hello, folks. I will prefix my question with the fact that I am a relative dinosaur in the development arena, still focused primarily procedural coding practices. Although this still serves me well, it also means that I know little about OO development. I have had some training and can make use of such common tools as OO ALV. However, I know next to nothing about MVC (model view controller) programming, WEB Dynpro for ABAP, etc. I am currently assigned to a CRM project (I am also new to CRM) and have a particular requirement that I cannot seem to address with any sort of procedural-based solution (i.e. function module).
My requirement is to create a "URL Attachment" to a service request in CRM. To elaborate, I have created an inbound point-to-point interface (i.e. not PI/XI) from an external system using Web Services. The Web Service I have created ultimately invokes a call to function CRMXIF_ORDER_SAVE via a wrapper function I developed with the same interface. This function, however, does not support the creation of "URL Attachments", only "Attachment Links". So, my approach then is to implement additional functionality in my wrapper function to create this URL Attachment via some other means. If you have any questions regarding URL Attachments vs. Attachment Links, please let me know.
I have scoured the function modules to no avail. What I have found is that via MVC, the functionality on the CRM Web UI is associated with the following class: CL_GS_CM_ADDURL_IMPL. A search in SE24 reveals that there are actually several related? classes:
CL_GS_CM_ADDURL
CL_GS_CM_ADDURL_CN02
CL_GS_CM_ADDURL_CN03
CL_GS_CM_ADDURL_CTXT
CL_GS_CM_ADDURL_IMPL
My question is whether I can somehow implement one of these classes to address my requirement. Looking at the logic within the IP_TO_ADDURL method, I cannot figure out whether I can somehow leverage this and, if so, exactly what coding would be required in my wrapper function. I should also point that, at least from a Web UI point of view, this is a two step process whereby you must first create the attachment and the actually save it.
Any and all insights are much appreciated.
Thanks.
..
‎2012 Jan 31 3:53 PM
Any OO and/or ABAP WebDynpro gurus out there that might be able to help me?? Any insights are greatly appreciated.
Thanks.
..
‎2012 Feb 06 5:07 PM
Bump. Last call.......
I'll take any input anyone has.
Thanks,
Kelly.
..
‎2012 Mar 16 4:52 AM
The classes you've listed are the view controller and context/context node classes of view GS_CM/AddUrl.
You may think of either enhance this view (your controller class of the enhanced view will be automatically derived from the standard controller class), or if you're not reusing the view, please look for the model and API layer for reuse.
‎2012 Mar 18 9:38 PM
Hi there,
I am not familiar with the CRM classes you mention - but what you describe is pretty much standard functionality included in Generic Object Services. May that path will lead you home.
Cheers
Graham Robbo