cancel
Showing results for 
Search instead for 
Did you mean: 

How to clear custom fields in Sales order header-Additional Data B tab while creating Sales order

former_member357236
Participant
0 Kudos

Hi,

I have few custom fields in Additional Data B tab in sales order header.. i want to clear those fields while i saw the sales order.. i tried to clear that on userexit_Save_document. But it is not clearing and saved in table VBAK. Can someone suggest me how to clear the values in vbak.?

Regards,

Jelena
Active Contributor
0 Kudos

What fields exactly and why? You should not be clearing anything while saving IMHO, it needs to be done before that. But I don't understand what exactly you're trying to achieve here, sorry.

Accepted Solutions (0)

Answers (2)

Answers (2)

raymond_giuseppi
Active Contributor

USEREXIT_SAVE_DOCUMENT is not suitable, its purpose is follow-up document or task. use SAVE_DOCUMENT_PREPARE. But why would you want to clear some data that user has input?

former_member194575
Active Participant
0 Kudos

Give me the code which you have written in the user exit. You may need to clear XVBAK fields for this purpose. Just check it in debugging and try.

Thanks,

Shanthi