The following blog post is relevant only for SAP S/4HANA Cloud Public Edition. Please note that Developer Extensibility is required.
Below some example use cases for BAdI EDOC_ADAPTOR_CLOUD~GET_VARIABLE_KEY
- Chile: Modification of the standard determination of DTE type
- Colombia: Use BAdI to change the variable key used for selection of customizing activity “Assign Number Ranges to eDocument Types”
- Peru: Use BAdI to change the variable key used for selection of customizing activity “Assign Series and Number Range to Document Type”
Implementation
To implement, use method “if_edoc_adaptor_cloud~get_variable_key” in BAdI EDOC_ADAPTOR_CLOUD (enhancement spot ES_EDOCUMENT_CLOUD). The method “get_variable_key” receives the source data in the importing parameter “is_source_data”, “iv_source_key”, “iv_source_type” and “iv_edoc_type”. The changing parameter “cv_varkey” allows you to change the variable key.
Implementation Steps:
- Create implementation for enhancement spot ES_DOCUMENT_CLOUD.
- Create BAdI implementation for EDOC_ADAPTOR_CLOUD.
- (Optional) Create BAdI Filter for Country and/or Generic Filter.
- Create implementing class for BAdI EDOC_ADAPTOR_CLOUD, which implements the interfaces “if_badi_interfaces” and “if_edoc_adaptor_cloud”.
- Implement method “get_variable_key” of interface “if_edoc_adaptor_cloud” in your BAdI class.
- Activate your BAdI implementation.
Source link
