Quantcast
Channel: SCN : Blog List - SAP Solution Manager
Viewing all articles
Browse latest Browse all 337

How to add the Attachment Assignment Block in AIC_SRVREQ_G - ITSM Service Request Guided Procedure WebUI SM7.1

$
0
0

Purpose

 

It’s had been a request in my organization of adding Attachment function on to Service Request Guided Procedure WebUI since my Solution Manger project kicked off. I was very confident in adding the attachment function because the edit mode version of Service Request as BRole SOLMANREQU has the attachment assignment block, well…but it turned out that the attachment view is not built-in view of AIC_SRVREQ_G and couldn’t find any patch making a change of AIC_SRVREQ_G to get the attachment Assignment Block or whatsoever.

 

After some survey and tests, I realized that UI enhancement is the only option in my situation, so I did enhance AIC_SRVREQ_G with the reference to AIC_INCIDENT_G - Incident UI objects. AIC_INCIDENT_G has GC_CM an attachment view not like AIC_SRVREQ_G and is also guided procedure UI as  AIC_SRVREQ_G is. Fortunately, the Attachment object GC_CM is a reusable component, so plugging in GC_CM to AIC_SRVREQ_G like other reusable objects was not impossible.    

 

For my case, I added the GS_CM assignment block on ViewSet AIC_SRVREQ_G/vStep2OV, but you can assign it as a separate step or as a view in a ViewSet. 

 

 

Here are the steps

 

     1. Build 2 component usages for GS_CM, one for edit mode and the other for GS_CM overview mode in the Runtime Repository Editor

     cf > ComponentUsage CUGSCMEdit , ComponentUsage CUGSCMOverview

1.png

     2. Add the interface view CUGSCMEdit.MainWindow under the main Window AIC_INCIDENT_G/MainWindow

2.png

      3. Build Navigation links and tide the in/outbound plugins(ADDxxx, URLxxx, etc) between main views ofCUGSCMEdit andCUGSCMOverview . you can refer Navigation links in AIC_INCIDENT_G

111.PNG

 

     4. Assign View CUGSCMOverview.MainWindow  to ViewSet AIC_SRVREQ_G/vStep2OV

4.png

     5. In Component Structure Browser, enhance the Component Controller ~ WD_USAGE_INITIALIZE and register comp. usagesCUGSCMEdit &CUGSCMOverview as below, You might not need to enhance this part depending on Solman version. In Solman 7.1, I didn't have to. I recommend that you better to check the same method in the super classes    

 

when 'CUGSCMOverview' OR 'CUGSCMEdit'.

       iv_usage->bind_context_node( iv_controller_type = cl_bsp_wd_controller=>co_type_component

iv_target_node_name= 'BTADMINH'

iv_node_2_bind     = 'PARENTNODE' ).

 

     6. Finally, add the GS_CM Assignment Block to AIC_SRVREQ_G/vStep2OV  via View configuration tool

6.png

Result

rrrr.PNG

 

Option

 

You can use the IMG configuration for global activity to assign a new step for AIC_SRVREQ_G. but in that case you should enhance the interfaced methods of target UI component after IMG configuration and have to enhance some more other objects. It was no point to me using such tedious way instead of using a simpler way of just enhancing UI that already exists. However, which way suits to you is totally up to your situation and up to design of your project and, of course, up to your preference.   

 

 

Conclusion

 

Solution Manager 7.1 is a much improved and more user friendly version in comparison of previous ones, Especially, ABAP Webdynpro UI parts look bit loaded with new features but still depending on CRM UI in many ways. Therefore, it’s inevitable to have to use CRM WebUI anyway which requires CRM background technically and functionally. If your organization needs to implant own process into SM, it means you might need CRM guys on that. Hope this article helps your “Solution Manger life” easier ….  


Viewing all articles
Browse latest Browse all 337

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>