Hi Learned folk,
the problem I have concerns a particular type of sales order item text which we wish to use to store text in addition to any entered by the user on VA01.
In sapmv45a userexit_save_document I have put a call to function module read_text to get the current text lines and then added my extra line and used save_text to apply the cahnges.
In debug I can see that save_text is dealing with the extra data, it does an 'úpdate' on STXH to indicate that there are the same number of lines in the text that I expect and then it does an 'éxport' to database STXL(TX) to send the text lines themselves. All the data I want is being exported. These commands are executed with 0 subrc. Shortly after leaving the exit the 'commit' occurs but tables STXH and STXL now have values consistent with how they were before my changed text lines were added. VA03 also shows that my additional text is not present.
The only thing that I can think is that another use of save_text is occurring somewhere between the user exit and the commit but I haven't been able to find it yet.
Does anybody have any other ideas why the text changes are not being retained?