Ansicht
Dokumentation

FI_BUPLA_DETERMINE - Determine Business Place ID

FI_BUPLA_DETERMINE - Determine Business Place ID

ABAP Short Reference   General Material Data  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) is used in the Business Place (FI-LOC-BUP) component. You can use this BAdI to determine applicable business place IDs.

For example, in the standard solution, all business places are available. However, your organization would like to determine the business place from the field values available when creating a billing document. You can use this BAdI to determine applicable business place IDs, based on information available in the business transaction.

Note
This BAdI is not available for the scenarios FI_PSH, FI_PSI, and FI_OTH at the moment.

Your country/ region has adopted the enhanced business place framework.

For more information about the standard settings (filters, single or multiple uses), see the Enh. Spot Element Definitions tab in the BAdI Builder (transaction SE18).

BAdI Implementation

The BAdI implementation filter value is important for filtering relevant BAdIs for your organization. You can apply a filter, for example by country/ region, and then create multiple, active implementations based on different values. Without a filter value, a BAdI can only have one single, active implementation.

Filter values are mandatory for business place BAdIs, as every BAdI implementation works only for the selected scenario in the country/ region specified. BAdI implementations without filter values can be saved but will not be executed.

To implement this BAdI, you first define the implementation filter using the following parameters:

  • SERVICE_COUNTRY:Country/ region key
  • BUPLA_SCEN_ID: ID of business place scenario

Parameters for Method EXECUTE include the following:

  • Importing
  • IV_CONTEXT_RAW: The application context in string format

  • IV_CONTEXT_DTYPE: The ABAP data structure type of application context

  • IS_APP_INFO: Additional application information, for example, transaction code

  • Changing
  • CS_BUPLA_KEY: Determined business place ID with company code

You can find example implementations in the BAdI Builder on the Enhancement Spot Element Definitionstab in the Implementation Example Classessection. The following example implementation is available:

  • CL_BUPLA_DETERMINE_EXAMPLE
Sample class for business place determination

You can use example implementations to see how to parse the business document data (context data) back to the ABAP data structure.

Refer to the BAdI example implementation class CL_BUPLA_DETERMINE_EXAMPLE.






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

Length: 3302 Date: 20240523 Time: 190422     sap01-206 ( 52 ms )