...
- Configure the class /EDGE/CL_FC_START_PROCESS_EXT as an external start in the system's general parameters. Refer to the configuration in the chapter "Configuration of general parameters".
- Configure the specific business unit(s) in question. Review all the configuration in the chapter "Specific configuration for each process/business unit". Also, review the entire configuration process in "Functional configuration of the b+ Core Frameworkdgtal eInvoice".
- Set up the automatic determination of business units. Refer to the chapter "Configuration automatic determination of business unit.".
- Configure the input channel for this functionality, which is implemented in the class /EDGE/CL_FC_SAPSD_INT_CHAN_IN. If additional data needs to be saved beyond what is stored by this functionality, a class can be created that inherits from this one and re-implements the method SAVE_INVOICE_ADDITIONAL_DATA. This method should call the superclass method first and then implement the additional data to be saved.
An example of this implementation can be found in the class /EDGE/CL_FC_CRVJL_SD_CHAN_IN. - When importing the package /EDGE/FC_SAPSD_INT, the implementation of the BADI SD_CIN_LV60AU02 was created in the system. This BADI is executed whenever any change is made to an SD invoice. In the implementation /EDGE/FC_BADI_IMP_SD, all the internal tables of the billing process that reach this point are obtained and sent to the external start process of business units.
In theory, no modifications need to be made to this implementation, as all the logic is already implemented. Only the functional configuration steps need to be performed to automatically determine the business unit.
The source code of the implementation is as follows:
...