Skip to Content
2
Dec 10, 2020 at 03:09 PM

VL01 vs VL10 Updating header text while saving (userexit_save_document_prepare)

89 Views

Hello,

I am trying to update header text of my delivery during delivery creation. For which I have written code in include MV50AFZ1 under perform: userexit_save_document_prepare. (Using SAVE_TEXT FM).

When I run this via VL01N it's working fine.
When I run this via VL10 for a single document it's working fine.
When I run this via VL10 for multiple documents only for last document the header text is getting updated.

I think this is because perform userexit_save_document_prepare only trigger once while saving the documents in VL10.

But we want to update header text for each document, here I am not sure what will be the best way to do it.
I didn't find exact answer to this in answers.sap.com.

Can you please help me finding the solution of this problem. Thanks in advance.

Regards,
M.