Ansicht
Dokumentation

CRM_ISA_AUTH - BAdI: Authorizations in Vehicle Life-Cycle Info

CRM_ISA_AUTH - BAdI: Authorizations in Vehicle Life-Cycle Info

General Data in Customer Master   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) is used in the Automotive (CRM-IA) component.

You can use this BAdI to implement authorization checks for the People-Centric User Interface (BSP UI) of the Vehicle Life-Cycle Info. It restricts user access to vehicle and business partner information.

Example: An automotive dealer should see only those vehicles or customers (business partners) for which he is the main dealer; he should not be able to see vehicles or customers of other dealers.

The BAdI is called when the user searches for vehicles and business partners using alternative IDs.

The BAdI contains the following methods:

  • VALIDATE_USER
    Checks whether the user accessing the application is a valid business partner in the system.
  • VALID_USER_RELATIONSHIPS
    Determines the business partners to which the user has access.
  • GET_BP_REL_TYPE
    Checks the relationship between the user and business partners. This is a hard-coded check for relationship type 'is end customer of'. If needed, you can replace this relationship type with a different one.
  • CHECK_VEHICLE_ACCESS
    Determines the vehicles to which the user has access.
  • CREATE_PARTNER_RELATIONSHIP
    Creates a relationship of the type Sales Dealer between the newly-created vehicle and the dealer.

If you need the authorization concept, you should implement this BAdI. For proper user access, the following prerequisites must be fulfilled:

  • The user or Internet user is attached to a valid business partner in the CRM system.
  • The relationship he has to the business partners whose vehicles he needs to view are of the type defined in method GET_BP_REL_TYPE.
  • He is assigned to the vehicles to which he needs access as the main dealer (partner function).






General Material Data   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.

Length: 2199 Date: 20240523 Time: 160723     sap01-206 ( 34 ms )