Skip to Content

Enhancement to Shopping Cart Monitor

                                                – By Sushil Kumar

Overview:

We had a requirement to let the Procurement Department check what Carts are pending with a given approver. This feature is available in standard SAP via t-code SWI5. However I came up with the idea of enhancing the Shopping cart Monitor for this request. For End-user this ensures simpler access to this info by using the existing Monitor application.

Enhancement details:

This involves following parts:

    1. Structure enhancements – Creation of append structures for /SAPSRM/S_CLL_MON_SC_HEADER and /SAPSRM/S_PDO_SC_HDR (For Items /SAPSRM/S_CLL_MON_SC_ITEM and /SAPSRM/S_PDO_SC_ITEMS)
    2. Enhancement of Webdynpro component /SAPSRM/WDC_UI_SC_AMF_CA to include new fields.
    3. Implementation of enhancement spot /SAPSRM/BD_CLL_MONITOR_SC
    4. Implementation of enhancement spot /SAPSRM/BD_PDO_MONITOR_SC(optional- unnecessary for my requirement)

UI Part:

  • SE11- Add the new field(s) via Append Structure to /SAPSRM/S_CLL_MON_SC_HEADER and /SAPSRM/S_PDO_SC_HDR
  • SE80 – Enhancement of Webdynpro component /SAPSRM/WDC_UI_SC_AMF_CA to include new fields.

1.JPG

Use CTRL+F4 to create the Enhancement Implementation:

2.JPG

Add the new custom fields on the Context tab of the view

Add the new input fields for the custom fields on the Layout tab of the view.

Activate the Webdynpro Component.

Logic Part:

  • SE18 – Create Implementation for enhancement spot /SAPSRM/BD_CLL_MONITOR_SC

3.JPG

4.JPG

5.JPG

  • From my point of view Implementation of Enhancement spot /SAPSRM/BD_PDO_MONITOR_SC is optional. It appears complicated to manipulate the custom input criteria at this point.
  • Logic to consider while Implementing BADI /SAPSRM/BD_CLL_MONITOR_SC

Method: /SAPSRM/IF_EX_BD_CLL_MON_SC~MODIFY_CRITERIA

      1. Save the Custom/Standard (if required) input criteria in Static attributes in this method. These are not available in other methods.

Method: /SAPSRM/IF_EX_BD_CLL_MON_SC~MODIFY_HEADER_RESULTS     

      1. Change Parameter CT_SC_HEADERS has the Shopping cart headers matching the Input criteria part of Standard input fields (like Creation date, Number, Name, Vendor etc). In this method manipulate the table CT_SC_HEADERS and Delete/Add the Carts matching Custom input criteria.

Method: /SAPSRM/IF_EX_BD_CLL_MON_SC~MODIFY_ITEM_RESULTS           

      1. Change Parameter CT_SC_ITEMS has the items belonging to the Shopping cart header which was expanded in the current update cycle. So use the Saved custom input criteria to manipulate the table

To report this post you need to login first.

3 Comments

You must be Logged on to comment or reply to a post.

Leave a Reply