Skip to Content
Author's profile photo Former Member

Adding a Custom Button and Custom Functionality in PO Worklist screen of Supply Network Collaboration

The following steps will explain you on how to add the custom button and handle corresponding functionality in PO Worklist screen of Supply Network Collaboration.

Below is the PO Worklist screen with standard functionality. We will add a new push button next to ‘Base UoM’ button.

PO_Worklist 

 

Enhance method ‘IF_POWL_FEEDER~GET_ACTIONS’ of class ‘/SCF/CL_FEEDER_CONFPUB_POWL’ to add custom button.

Pass below values to insert new row to table ‘mt_action_def’.

actionid : ‘ZTEST’

cardinality : ‘I’

placement : ‘B’

enabled : ‘X’

placementindx : 3

text : ‘Test’

tooltip : ‘Test Button’

Activate the enhancement.

 

PO Worklist screen will now have the custom button ‘Test’ as shown below.

PO_Worklist_1

 

Handling custom button functionality:

Enhance the method ‘IF_POWL_FEEDER~HANDLE_ACTION’ of class ‘/SCF/CL_FEEDER_CONFPUB_POWL’.

Add custom button functionality when the action id is ‘ZTEST’.

You can make use of the following fields, structures, tables:

I_USERNAME, I_APPLID, I_TYPE, I_ACTIONID, I_CHANGED, I_ACTION_INDEX, I_ACTION_CONF, I_LANGU, I_ADDITIONAL_DATA, I_VISIBLE_FIELDS, C_SELECTED, C_RESULT_TAB, C_WORKFLOW_RESULT_COUNT, C_ACTION_DEFS, C_FIRST_VISIBLE_ROW, C_FIRST_VISIBLE_SCROLL_COL.

 

You can populate/update following fields, structures, tables:

E_PORTAL_ACTIONS, E_MESSAGES, E_DO_REFRESH, E_RESULT_LINES_CHANGED, E_CHANGES_PROCESSED, E_SELECTED_CHANGED, E_ACTIONS_CHANGED, C_SELECTED, C_RESULT_TAB, C_WORKFLOW_RESULT_COUNT, C_ACTION_DEFS, C_FIRST_VISIBLE_ROW, C_FIRST_VISIBLE_SCROLL_COL.

The custom functionality can be added to other screens of supplier network collaboration using this approach.

Assigned Tags

      3 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo krishnaraj Baskar
      krishnaraj Baskar

      Would you please let me know how to add new columns in the table and in the form view SNC 7.0.It will highly appreciated if you could provide some example if you have it .

      Thanks

      K

      Author's profile photo Former Member
      Former Member

      Naveen,

      Very useful posting!

      Would you please explain how to insert new fields on the webdynpro Product Detail screen which is using WBDynpro component - /SAPAPO/SPP_PROD_DE!

      For ex: on Selection Box Component.

      Thanks in advance for your response.

      Appreciated,

      SK

      Author's profile photo Steve Oldner
      Steve Oldner

      Okay! I have something similar but to ibo_wdc_inbox for HRMSS_CC_POWL_INBOX_2.  Hope this works for that also!