SAP S/4HANA Business Partner – Control Business Partner Category (Person, Organization, Group)
2023-11-17 18:3:18 Author: blogs.sap.com(查看原文) 阅读量:8 收藏

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

文章来源: https://blogs.sap.com/2023/11/17/sap-s-4hana-business-partner-control-business-partner-category-person-organization-group/
如有侵权请联系:admin#unsafe.sh