We are hiring and constantly growing! Have a look through our vacancies to find the right role for you!
This function module is a user exit within the framework of the processing of IDOCs involving purchasing documents. The call of this function module is programmed at the time of each extension of the internal table for the intermediate document (that is, on the addition of a further segment). This means that when the call is activated, all relevant application data (for example, document header, document item, delivery schedules) and the previously generated IDOC are made available in this function module.
Within this function module, users can themselves add coding that extends the internal table for the IDOC with their own data or changes already included data.
You can determine the segment after which the user exit was invoked from the data in the header of tables INT_EDIDD and XEKPO. You can then still change the current segment data after the append, or supply a customer's own segment with data (from the current item, for example). (See also EXIT_SAPLEINM_001). The update or append on the internal table must be programmed in the function module itself.