This scenario applies when there is invoice issuance from SD (Sales and Distribution module). The functionalities of the package /EDGE/FC_SAPSD_INT should be used.
To initiate a Business Object business unit of this nature, the following steps must be followed:
- 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 "General Parameters Configuration of general parameters".
- Configure the specific Business Objectbusiness unit(s) in question. Review all the configuration in the chapter "Specific Configuration configuration for Each Process/Business Objecteach process/business unit". Also, review the entire configuration process in "Functional Configuration configuration of the b+ Core Framework".
- Set up the automatic determination of Business Objectsbusiness units. Refer to the chapter "Automatic Determination of Business Objects ConfigurationConfiguration 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 Objectsbusiness 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 Objectbusiness unit.
The source code of the implementation is as follows:
...