SAP ABAP IMG Activity WZRE_EPO_DET_CONT (BAdI:Determine Fields That Control Agency Document Creation)
Hierarchy
SAP_APPL (Software Component) Logistics and Accounting
   LO-AB (Application Component) Agency Business (Global Trade)
     WZRE_EXTERNAL_POSTING (Package) External posting via agency business
IMG Activity
ID WZRE_EPO_DET_CONT BAdI:Determine Fields That Control Agency Document Creation  
Transaction Code S_EBS_44000557   (empty) 
Created on 20111220    
Customizing Attributes WZRE_EPO_DET_CONT   BAdI:Determine Fields That Control Agency Document Creation 
Customizing Activity WZRE_EPO_DET_CONT   BAdI:Determine Fields That Control Agency Document Creation 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name WZRE_DET_CONTR_FIELDS_BADI    

Use

You can use this Business Add-In (BAdI) of component Agency Business (LO-AB) for components that use the posting engine. The BAdI enables you to set fields that control the creation of agency documents via the posting engine. Based on a posting item the implementation must specify:

  • Whether pricing is used on the sales side or purchase side, by setting field KAPPL of the control structure to IF_WZRE_POSTING_CONST=>KAPPL-PURCHASE or IF_WZRE_POSTING_CONST=>KAPPL-SALES.
  • The Use Case Type used by agency business to perform the postings, by setting a value in field USE_CASE.
  • The Agency Document Category (invoice or settlement) by setting field AB_DOC_CAT to IF_WZRE_POSTING_CONST=>AGENCY_DOC_CATEGORY-INVOICE or IF_WZRE_POSTING_CONST=>AGENCY_DOC_CATEGORY-SETTLEMENT.
  • A Posting Type, by setting field EXT_POST_TYPE to a value defined in customizing table Posting Types for this application (optional).

If SAP itself is using the posting engine, it delivers an implementation of this BAdI. You can still provide an additional implementation (by specifying the BADI Implementation Owner customer or partner) that is called after the SAP implementation. You are free to change the SAP result provided in table CT_AB_CONTROL_FIELDS. If you use the posting engine with your own application in a project, you must implement this BAdI.

Normally, table CT_AB_CONTROL_FIELDS is filled with one entry. We provide a table here to support creation of multiple agency document items for one posting item. If you have, for example, the requirement to create an invoice and a settlement item for one posting item, you just have to fill table CT_AB_CONTROL_FIELDS with two entries, using the document categories invoice and settlement.

Requirements

Standard settings

In the standard system, there are activated BAdI implementations for the filter value application delivered by SAP. The BAdI is designed for multiple use.

The system calls up and executes all active implementations with matching filter values.

Activities

For information about implementing BAdIs as part of the Enhancement Concept, see SAP Library for SAP NetWeaver under BAdIs - Embedding in the Enhancement Framework.

Example

See also

IF_WZRE_DET_CONTR_FIELDS_BADI ~DETERMINE_AB_CONTROL_FIELDS

Business Attributes
ASAP Roadmap ID 257   Create User Exits 
Mandatory / Optional 2   Optional activity 
Critical / Non-Critical 1   Critical 
Country-Dependency A   Valid for all countries 
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20111223 
SAP Release Created in 606