logo

Are you need IT Support Engineer? Free Consultant

EDOC_ADAPTOR_CLOUD BAdI Implementation for GET_VARIABLE_KEY

  • By Sanjay
  • 21/10/2026
  • 41 Views



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:

  1. Create implementation for enhancement spot ES_DOCUMENT_CLOUD.
  2. Create BAdI implementation for EDOC_ADAPTOR_CLOUD.
  3. (Optional) Create BAdI Filter for Country and/or Generic Filter.
  4. Create implementing class for BAdI EDOC_ADAPTOR_CLOUD, which implements the interfaces “if_badi_interfaces” and “if_edoc_adaptor_cloud”.
  5. Implement method “get_variable_key” of interface “if_edoc_adaptor_cloud” in your BAdI class.
  6. Activate your BAdI implementation.




Source link

Leave a Reply

Your email address will not be published. Required fields are marked *

Chat with us on WhatsApp!