Skip to end of metadata
Go to start of metadata

List of all pages

Pages at first level

Let’s consider our requirement is to remove columns Requested by and Vendor Name form Sourcing Cockpit. Below is the procedure which needs to be followed:  

  • Create a custom Implementation for BADI: BBP_UI_CONTROL_BADI.
  • Declare filters for  Shopping cart and Sourcing Cockpit :

                  BUS2121 - Shopping Cart

                  SOCO      - Sourcing Cockpit

  • Method to be implemented: BBP_SOCO_UI_CTRL.
  • Check if IV_FIELDNAME values if it is equal to Vendor and Requestor fields hide them.

Sample Code for above scenario:

Error rendering macro 'code': Invalid value specified for parameter 'com.atlassian.confluence.ext.code.render.InvalidValueException'
METHOD if_ex_bbp_ui_control_badi~bbp_soco_ui_ctrl.
  DATA: lt_field TYPE RANGE OF dynfnam,                "Fieldname range table
        ls_field LIKE LINE OF lt_field.                "Work area for Range table
  CONSTANTS :
    c_vendor_name TYPE dynfnam VALUE 'BBPS_SOCO_ITEM-VENDOR_NAME',   "Vendor Name
    c_req_nam    TYPE dynfnam VALUE 'BBPS_SOCO_ITEM-REQ_NAME',       "Requestor
    c_true   TYPE c  VALUE '1',                    "Flag
    c_sign   TYPE c   VALUE 'I',                   "Sign
    c_option(2)  TYPE c     VALUE 'EQ'.            "Option
* Assign sign value as I
  ls_field-sign = c_sign.
* Assign option value as 'EQ'
  ls_field-option = c_option.
* Vendor name
  ls_field-low = c_vendor_name.
  APPEND ls_field TO lt_field.
  CLEAR: ls_field-low.
* Requestor
  ls_field-low = c_req_nam.
  APPEND ls_field TO lt_field.
  CLEAR: ls_field-low.
* Check if fields which needs to be hide is present in range table
  IF iv_fieldname IN lt_field .
    cv_invisible = c_true.
  ENDIF.
ENDMETHOD.                    "if_ex_bbp_ui_control_badi~bbp_soco_ui_ctrl

The purpose of this tutorial is to familiarize the target readers with the various validation operations possible on Purchasing Documents in SRM.

Contents
I.  Introduction 

II. SRM BADIs for Document Validation 
1.  BBP_DOC_CHECK_BADI
     a.   Technical Details 
     b.   Filter Values 
     c.   Method: BBP_DOC_CHECK 
2.  BBP_ITEM_CHECK_BADI
     a.   Technical Details 
     b.   Filter Values 
     c.   Method: BBP_ITEM_CHECK 

III.Function Modules to get Header Details 
1.   Shopping Cart 
•     BBP_PD_SC_GETDETAIL 
2.   RFx 
•     BBP_PD_BID_GETDTAIL 
3.   Auction 
•     BBP_PD_AUC_GETDTAIL 
4.   Confirmation 
•     BBP_PD_CONF_GETDTAIL 
IV. Function Modules to get Item Details 
a.   Shopping Cart 
•     BBP_PD_SC_ITEM_GETDETAIL 
b.   RFx 
•     BBP_PD_BID_ITEM_GETDTAIL 
c.   Confirmation 
•     BBP_PD_CONF_ITEM_GETDTAIL 
d.   Bid Response 
•     BBP_PD_QUOT_ITEM_GETDTAIL 

  • No labels