I have written the code in USEREXIT_SAVE_DOCUMENT_PREPARE as follows but it is not working . Please help me on this . I also tried user exitUSEREXIT_SAVE_DOCUMENT . That is also not working .
But you have mentioned that you tried with USEREXIT_SAVE_DOCUMENT_PREPARE as well.
anyways close the thread by hitting assumed answered.