Ansicht
Dokumentation

WES_BADI_01 - BAdI: Override the Implementation of Interfaces

WES_BADI_01 - BAdI: Override the Implementation of Interfaces

SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.
SAP E-Book

Transaction Create Messages for Application enables you to transfer master data to external systems on the basis of enterprise SOA. Apart from an initial data transfer, you can also send changed objects.

If you want to modify the change pointer analysis for a customer project implemented by SAP, this BAdI enables you to specify that certain program components use your own classes instead of those classes (ABAP OO) supplied by SAP.

This BAdI is a technically oriented version. It enables you to avoid modifications of the SAP Standard in the event of new requirements that were unforeseen at the time of development. You can have the system use program objects that you developed yourself.

If you want to implement this BAdI, you should have an advanced knowledge of ABAP programming and of the program objects you want to replace. We recommend that you copy the supplied classes (ABAP OO) and then adjust the copies.

The programming for the transfer of master data to external systems makes use of interfaces (ABAP OO) that are implemented by classes (ABAP OO). In the program version supplied by SAP, the interfaces are implemented as follows:

Function Interface Implementing Class
Material group hierarchy (access to class system data) IF_WSFP_CLASSIF_HLP CL_WSFP_CLASSIF_HLP
Material group hierarchy (change pointer analysis) IF_WSFP_MCH_HLP CL_WSFP_MCH_HLP
Site grouping (change pointer analysis) IF_WSFP_STGRP_HLP CL_WSFP_STGRP_HLP
Site (change pointer analysis) IF_WSFP_STORE_HLP CL_WSFP_STORE_HLP
Vendor (change pointer analysis) IF_WSFP_VENDOR_HLP CL_WSFP_VENDOR_HLP

IF_WSFP_VENDOR_HLP

The classes that implement the corresponding interfaces must cover the following functions:

  • Interface IF_WSFP_CLASSIF_HLP:
  • Downward and upward determination of material group hierarchy path

  • Determination of all child nodes for material groups or material group hierarchy levels

  • Determination of the parent node for material groups or material group hierarchy levels

  • Determination of class system data; for example, internal characteristic number for a change pointer, assignment of characteristics to classes, material groups to a characteristic profile

  • Interface IF_WSFP_MCH_HLP:
  • Determination of material groups to which a specific characteristic is assigned

  • Determination of changed material groups or material group hierarchy levels for a change pointer

  • Interface IF_WSFP_STGRP_HLP:
  • Determination of site groups to which a specific characteristic is assigned

  • Determination of site group(s) for a change pointer

  • Setting the class type for the transfer

  • Interface IF_WSFP_STORE_HLP:
  • Determination of changed site for a change pointer

  • With information from change pointer, determination whether the changed object is a site

  • Interface IF_WSFP_VENDOR_HLP:
  • Determination of changed vendor for a change pointer

  • With information from change pointer, determination whether the changed object is a vendor

IF_WSFP_VENDOR_HLP

Implement this BAdI if you want to change the SAP Standard for the change analysis of site groups.

  • Copy class CL_WSFP_STGRP_HLP to a class in the customer namespace, for example to ZCL_STGRP_HLP. In your copied class, ensure that you type attribute GO_STGRP_HLP according to your class.
  • Change the source text strings that do not match your requirements and add additional logical items. If you want to waive the transfer of site groups when changing characteristics or characteristic values, you can reduce method READ_KLAH_FOR_ATINN in your copy to the command clear: et_klah.
  • Add the following code to your BAdI implementation (method GET_INSTANCE):
if i_interface_name = cl_wsfp_factory=>co_stgrp_hlp.
eo_instance = zcl_stgrp_hlp=>get_instance( ).
endif.

Make sure that you do not influence the instantiation of interfaces for which you have not deviated from the SAP standard during implementation.






CPI1466 during Backup   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.

Length: 5977 Date: 20240523 Time: 195250     sap01-206 ( 70 ms )