Ansicht
Dokumentation

V_TACE_TRNSFTYP_ACAC - Define Automatic Data Transfer

V_TACE_TRNSFTYP_ACAC - Define Automatic Data Transfer

PERFORM Short Reference   Vendor Master (General Section)  
This documentation is copyright by SAP AG.
SAP E-Book

In this IMG activity you define the automatic transfer of data to the application component Manual Accruals. This enables you to transfer data automatically and create accrual objects via an interface. The interface uses the function module ACAC_OBJECT_MODIFY_EXT.

When you use the interface you have the following options:

  • Customer-defined report
    You can define your own report that selects data from any chosen data source, converts it to the format required by the interface of function module ACAC_OBJECT_MODIFY_EXT, and then calls this function module to store the data in the Accrual Engine.
    You do not have to make any settings in this IMG activity.
  • Example report
    You can use the report ACAC_DATA_TRANSFER_EXAMPLE delivered by SAP. You can enter a selection method on the selection screen of this report.
    In this IMG activity you assign the following data to your selection method:
  • User-defined function module that carries out data selection and data conversion

  • The DDIC structure of the results list displayed in report ACAC_DATA_TRANSFER_EXAMPLE

If you want to use report ACAC_DATA_TRANSFER_EXAMPLE, proceed as follows:

  1. Create a new selection method. To do this, choose New Entries and enter a name.
  2. Program a function module that performs the data selection and conversion. Assign this function module to your selection method.
You can use the following function modules as reference for your function module:
  • ACAC_DATA_TRANSFER_EXAMPLE_1

  • ACAC_DATA_TRANSFER_EXAMPLE_2

  1. Assign a DDIC structure to your selection method. The fields in this DDIC structure are displayed in the results list of report ACAC_DATA_TRANSFER_EXAMPLE. The DDIC structure must contain the fields from DDIC structure ACAC_DATA_TRANSFER_RESULT.

Own selection options in report ACAC_DATA_TRANSFER_EXAMPLE

The report ACAC_DATA_TRANSFER_EXAMPLE delivered by SAP only contains fields that are used to select vendor invoices as selection options. These selection options are not generally sufficient. To use user-defined selection options, proceed as follows:

  1. Create a customer-defined field (such as ZACAC_DATA_TRNSF_SELOPT_EXAMPLE) that contains the selection option instructions that you require. MODIF ID SEL always has to be appended to the selection option instructions. You can use the include ACAC_DATA_TRNSF_SELOPT_EXAMPLE as template.
  2. Copy report ACAC_DATA_TRANSFER_EXAMPLE to a customer-defined report, for example, ZACAC_DATA_TRANSFER_EXAMPLE. Make the following specifications in the following dialog box:
  • Set the indicator Interface.

  • To make sure that documentation is copied too, set the Documentation indicator.

  • Do not set the Includes indicator.

  1. In the customer-defined program, line INCLUDE ACAC_DATA_TRNSF_SELOPT_EXAMPLE, replace the string ACAC_DATA_TRNSF_SELOPT_EXAMPLE with the name of the customer-defined include that you had created previously, such as ZACAC_DATA_TRNSF_SELOPT_EXAMPLE.
    You can now use your own report instead of the report delivered by SAP. The system automatically transfers the selection options that you defined to the function module defined in the Customizing of the selection method.
  2. If you also want to enter additional accrual parameters in addition to the customer-specific selection options, in your report you can replace the include ACAC_GENERIC_DATA_TRANSF_ACP with a customer-defined include that contains the accrual parameters you require. This is in addition to the include ACAC_DATA_TRNSF_SELOPT_EXAMPLE. The corresponding selection option instructions must contain MODIF ID SEL. Accrual parameters defined in this way are passed on automatically to the function module that is defined in Customizing for the selection method.

SAP delivers two sample selection methods. You can use these as template for your own selection methods.






General Material Data   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.

Length: 5935 Date: 20240523 Time: 184351     sap01-206 ( 94 ms )