2023 Jul 18 8:25 AM
Example: CV01N
Reiter / Slider -> Objektverknüpfungen / Objectlinks
linking a material.
We have an Enhancement where we would send an Email with Subject ( documentnumber and materialnumber)
There we Use method add additional classes:
IF_EX_DOCUMENT_MAIN01~ADD_ADDITIONAL_CLASSES
But the problem is that at this time we dont have access to the linked material because it is before the save.
How can i get access to the linked material (from buffer?). Does someone know a function module or solution.
Because we need to use the add_additional_classes methode and no other from this userexit.
2023 Jul 19 9:16 AM
Hi Frank,
You can try the BAdI DOCUMENT_OBJ. If you have the necessary data, you can store it, for example, as public attributes in the BAdI class and later call it directly in your target method IF_EX_DOCUMENT_MAIN01~ADD_ADDITIONAL_CLASSES.
<DOCUMENT_OBJ>=><mat_values>
This is just an example and you can of course do it differently if you have the values you need.
Regards
Jim
2023 Jul 19 12:37 PM
I tried this but it dont works for my case. I need a function moule like CLFM_GET_INTERNAL_TABLES which gets the classification data from buffer before it is saved. But i need such a function module which gets me the linked objects before saving.
2023 Jul 19 3:04 PM
The BADI IF_EX_DOCUMENT_OBJ2 contains the method LINKS_UPDATE. This is called as soon as the assignment changes. The following function module is called in the processing routine CV140_SELECT_DRAD_DOCUMENTS.
There are also the following function modules: