Enterprise Resource Planning Blogs by SAP
Get insights and updates about cloud ERP and RISE with SAP, SAP S/4HANA and SAP S/4HANA Cloud, and more enterprise management capabilities with SAP blog posts.
cancel
Showing results for 
Search instead for 
Did you mean: 
Andi_M
Product and Topic Expert
Product and Topic Expert
1,171
At your projects you might ask yourself how to restrict available Business Partner Categories (Person, Organization, Group). Very often Business Partner Category 'Group' should be hidden. In this blog I will describe a simple way by using a BAdI implementation.


Target audience: Functional expert, Development expert

Version: SAP S/4HANA On premise 1610 and higher

 

With SAP S/4HANA a BAdI is available to control available Business Partner Categories to avoid Business Partner creation with a specific Business Partner Category.

BAdI BUPA_PARTNER_CATEGORY can be used for this approach.

Just create an implementation and mark relevant Business Partner Categories.
  method IF_EX_BUPA_PARTNER_CATEGORY~ALLOW_CATEGORY.
EV_AUTH_PERSONS = 'X'.
EV_AUTH_ORGANIZATIONS = 'X'.
EV_AUTH_GROUPS = ''.
endmethod.

With this simple example creation button 'Group' will not be available any more.


 

Furthermore there are additional input parameters available to define this control a bit more granular.

Additional parameters are:

  • IV_REQUEST_ROLE: Optional import parameter is transferred. It is of type structure BU_ROLES, which is passed by value. The Business Partner role would be passed

  • EV_AUTH_PERSONS: This parameter indicates the BP category of type person. It is of type BU_BOOLEAN

  • EV_AUTH_ORGANIZATIONS: This parameter indicates BP category of type organization. This parameter is of type BU_BOOLEAN

  • EV_AUTH_GROUPS: This parameter indicates BP category of type group. This parameter is of type BU_BOOLEAN