01-17-2019 2:44 PM
Hi Experts,
We have implemented some logic in userexit_save_document of MV45AFZZ to include a header text of sales order. The text is populated correctly when the user just saves the document. But when the user decides to include some texts on his own, our logic does not work anymore, and only the user entered text appears in the sales order.
What we want is that if a user enters header text , our text should be appended below his text.
We are using fm SAVE_TEXT with insert = X and savemode_direct = X.
Where actually I am going wrong?
01-17-2019 11:05 PM
Hi,
SAVE_TEXT does not just append the "new" text to the existing text. You need to use READ_TEXT to read the existing text from TLINES and when you call SAVE_TEXT, add the existing TLINES (read from previous step) along with your new text and call FM SAVE_TEXT.
01-18-2019 6:03 AM
Hi Alfred,
Thanks for replying. But I tried that already. But the problem remains.