Ansicht
Dokumentation

MSS_WDA_SUB_API - BAdI: For Substitute-API (Function Group SWRS)

MSS_WDA_SUB_API - BAdI: For Substitute-API (Function Group SWRS)

Vendor Master (General Section)   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.
SAP E-Book

This BAdI is integrated in the workflow interfaces for substitute maintenance. These interfaces are used for substitute maintenance using the Universal Worklist, for example.

The BAdI only has an effect on substitute maintenance when using the named Workflow interfaces. The BAdI is not used in the Business Workplace, for example.

The BAdI has three methods, which are called in the following function modules:

Method Workflow Interface (Function Module)
MAINTAIN_SUBSTITUTE SAP_WAPI_SUBSTITUTE_MAINTAIN (Maintain Substitute)
DELETE_SUBSTITUTE SAP_WAPI_SUBSTITUTE_DELETE (Delete Substitute)
RESTRICT_PROFILES SAP_WAPI_SUBSTITUTE_PROF_GET (List of Substitute Profiles)

RESTRICT_PROFILES

RESTRICT_PROFILES RESTRICT_PROFILES

Method MAINTAIN_SUBSTITUTE

The method is called before substitute maintenance is executed.
Substitute maintenance is only executed when the method call returns the return code 0.
Using the data, you can refuse substitute maintenance and set an appropriate error message, update customer-specific tables, or change the attributes of the substitute (for example, the substitute profile).
The method must not trigger a COMMIT WORK.

Import Parameters

SUBSTITUTED_OBJECT Person substituted
SUBSTITUTE Substitute

Export Parameters

RETURN_CODE Return value
MSG Table with T100 messages

Change Parameters

SUBST_BEGIN Start of substitution
SUBST_END End of substitution
SUBST_PROFILE Substitute profile
SUBST_ACTIVE Flag: Substitution Active

Method DELETE_SUBSTITUTE

The method is called before the substitutes are deleted.
Deletion is not executed when the method call returns the return code 0.
You can update customer-specific tables in the method, or refuse the deletion of the substitutes.
The method must not trigger a COMMIT WORK.

Import Parameters

SUBSTITUTED_OBJECT Person substituted
SUBSTITUTES Table of substitutes
START_DATE Delete from this date
END_DATE Delete until this date
DELETE_WITHOUT_DATE Delete without date restriction

Export Parameters

RETURN_CODE Return value
MSG Table with T100 messages

Method RESTRICT_PROFILES

The method is called after the substitute profiles have been determined.
You can restrict the list of substitute profiles, for example.

Change Parameters

PROFILES Table of substitute profiles

PROFILES

See the example implementation in class CL_EXM_IM_WF_SUBSTITUTE.






ROGBILLS - Synchronize billing plans   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.

Length: 4593 Date: 20240523 Time: 185206     sap01-206 ( 39 ms )