Skip to Content
author's profile photo
Former Member

adding forwarding agent in xvbpa and yvbpa

Hi all,

I am trying to add a forwarding agent to my sales order in VA02 through user exit: USEREXIT_MOVE_FIELD_TO_VBAK

I am setting field xvbpa-updkz = I for adding a new forwarding agent, yet the issue is that I am still getting the error "express document update was terminated".

I think the issue might be related to the fact that I am not populating yvbpa correctly. Can someone tell me what the purpose of yvbpa is and the difference with xvbpa?

Thanks,

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • author's profile photo
    Former Member
    Posted on Mar 22, 2012 at 04:37 AM

    Hello,

    Generally the internal table whose name starts with an X contains the current data, including the last changes made by the user and the table with Y as the first letter of the name contains the database status before the change.

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 22, 2012 at 08:20 AM

    Hi

    See SAP Note 178328 - Problems due to incorrect user exits in SD.

    Regards

    Eduardo

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Mar 22, 2012 at 12:00 PM

    Thanks,

    Just to clarify then: The Y table should be updated directly before a change. Then the changes are held in the X table. Is this correct? What are the issues without updating the Y table?

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Y rows shouldn't be touched. If you have new data row in X, just need to be sure to set the UPDKZ to I. In this case, there was no prior row, so there will be no entry in YVBPA. However, the fact that you're getting the express document suggests a serious error in exit coding that is causing SAP to roll back the transaction during attempts to save data to the database. This cannot be done through partner determination, instead of through exit?