Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Header text in Sales order not populated when user enters some text.

0 Kudos

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?

2 REPLIES 2

former_member392439
Discoverer
0 Kudos

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.

0 Kudos

Hi Alfred,

Thanks for replying. But I tried that already. But the problem remains.