Ansicht
Dokumentation

SMI_FILL_ANONYMIZED - BAdI: Fill Anonymized Pseudo Name

SMI_FILL_ANONYMIZED - BAdI: Fill Anonymized Pseudo Name

CL_GUI_FRONTEND_SERVICES - Frontend Services   Vendor Master (General Section)  
This documentation is copyright by SAP AG.
SAP E-Book

You use this BAdI to obtain pseudo names for social media users during anonymization. You need to run the report SMI_APPLY_CONSENT_MGNT_01 to anonymize the social media users. If a particular social media user has only posts that are relevant for anonymization in the SOCIALDATAtable, the corresponding user record is deleted from the SOCIALUSERINFO table. In the other case where the user has posts that are not relevant for anonymization, for example, posts with SOCIALPOSTACTIONSTATUS as Consent Required, the user record is not cleared. During anonymization the CREATEDBY field in the SOCIALDATA table was being cleared and there was no way to infer any information about the number or nature of users who created those posts. You can also use this BAdI to track the number or nature of anonymized users.

The pseudo names returned by this BAdI are filled in the CREATEDBYUSER field in the SOCIALDATA records during anonymization only if a record with the same pseudo name does not exist. You use this to identify whether the two anonymized records were from the same user. A record is also created in SOCIALUSERINFO table corresponding to each pseudo name. In the pseudo user record, the fields that can lead to the actual user, such as SOCIALUSERPROFILELINK, SOCIALUSERACCOUNT, SOCIALUSERNAME, SOCIALUSERMAILADDRESS, SOCIALUSERNAME_UC, and SOCIALUSERIMAGELINK are cleared and the ISPSEUDOUSER checkbox is selected to indicate that the user is not an actual social media user.

The BAdI is provided with the list of social media records to be anonymized and the list of social media users (SOCIALMEDIACHANNEL and SOCIALUSER) for which the BAdI should return the pseudo names. The BAdI should return the mapping from social media user (SOCIALMEDIACHANNEL and SOCIALUSER) to pseudo name.

The BAdI has a fallback class that returns a pseudo name equal to "blank" for all social media users. If the BAdI is not implemented , the pseudo user records will not be created and the CREATEDBYUSER field in SOCIALDATA table is cleared.

This Business Add-In (BAdI) has one method - FILL_ANONYMIZED_USRNAME.

The method FILL_ANONYMIZED_USRNAME has the following importing parameters:

  • IT_SOCIALDATA of the type SMI_T_SOCIALDATA - (Contains the context of anonymization that is the records from the SOCIALDATA table that has to be anonymized.)
  • IT_USERINFO of the type SMI_T_SOCIALUSER_KEY - (Contains the list of social media users who have records in the SOCIALDATA table that are going to be anonymized. This table consists of SOCIALMEDIACHANNEL and SOCIALUSER fields.)

The method FILL_ANONYMIZED_USRNAME has the following exporting parameter:

  • ET_USERINFO_PSEUDO of the type SMI_T_USERINFO_PSEUDO - (ET_USERINFO_PSEUDO table is filled with the pseudo name corresponding to each social media user in IT_USERINFO. If the pseudo name is specified as "blank" then the corresponding pseudo user records will not be created in the SOCIALUSERINFO table. It is recommended that the pseudo name be completely different from the SOCIALUSER for security purposes and the same pseudo name is returned for the same SOCIALUSER.)

For more information about the standard settings (filters, single or multiple use), see the

Enhancement Spot Element Definitions tab in the BAdI Builder (transaction SE18).






PERFORM Short Reference   Vendor Master (General Section)  
This documentation is copyright by SAP AG.

Length: 4755 Date: 20240523 Time: 183224     sap01-206 ( 93 ms )