cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Express document error ion VA01

Former Member
0 Kudos

Hi

In VA01 transaction, i'm using userexit SAVE_DOCUMENT_PREPARE to override the item level entries based on value from a Ztable. However whenever a customer exists in the Ztable, the document fails to save and an SAP Express document error is fired.

When the customer doesnt exist in my Ztable, there is no such error and the order is saved successfully..

Any idea what the issue is?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Rishi,

This is difficult to tell without having seen the concrete code. It depends on which values on which item level table you overwrite (XVBAP ?)

Therefore some general suggestions:

= You should be very careful if you change SAP standard tables like XVBAP XVBEP via userexits. For instance if fields are changed which serve as keys later in update task this symptom might occur

= You should never sort SAP standard tables. If you use a SORT command on a SAP table this might be a reason.

= You should never use COMMIT WORK or ROLLBACK WORK commands in userexits.

Kind regards,

Holger Kutz

Development Support (IMS)

SAP

Former Member
0 Kudos

Hi Rishi,

The error could be due to duplicate entries. Whenever a duplicate entry occurs you would get an SAP express document. You could also analyze via T-Code SM13

prasanna