cancel
Showing results for 
Search instead for 
Did you mean: 

SD User Exit After Save

Former Member
0 Kudos

Hi,

I want to update the xvbap table after the sales order no is generated. It is not possible through 'USEREXIT_SAVE_DOCUMENT_PREPARE' and 'USEREXIT_SAVE_DOCUMENT' as the sales order number is not generated when these subroutines are called.

I have to fetch some data based on sales order and save it to xvbap table.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

What you want to does not make sense. Internal tables like XVBAP has data as long as you are still processing the sales order. Once you exit the transaction like VA01, table XVBAP disappears. Even if you are creating sales order by way of program or interfaces using something like BAPI_SALES_ORDER_CREATE. The first thing SAP does is to initialize these table before doing anything.

Please provide more details about what your requirements are then maybe we can find a solution.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Check on below link for all available user exits for SD. You should be able to find a one for your requirement.

https://wiki.sdn.sap.com/wiki/display/ERPLO/SDUserexits

Best regards,

Anupa

former_member131745
Product and Topic Expert
Product and Topic Expert
0 Kudos

Take a look at the following OSS notes on X and Y VBAP structures:

> 178328 - Problems due to incorrect user exits in SD

> 208010 - Update termination in VERKBELEG_WRITE_DOCUMENT

I hope these help.

Gerard