Posted: Fri Feb 08, 2008 10:05 am Post subject: Добавление позиций в заказе на поставку
Доброе утро,
требуется добавить новые позиции в заказе на поставку. Для этого добавляю их в таблицу XVBAP в user-exit "userexit_save_document_prepare".
Строки добавляются нормально, но в записанном документе позиии не появляются. Кто-нибудь может привести рабочий пример, на сайте примера на этот user-exit не нашел.
Посмотрите особенности user-exit в нотах
Note 178328 - Problems due to incorrect user exits in SD
Note 216448 - BW/SIS: Incorrect update / SD user exit
Quote:
1. Logic in SD/LE
The naming of internal tables in SD/LE is always the same:
Table which contains the 'new' entries: X+database name, for example, XVBAP
New means: status after the change
Table which contains the 'old' entries: Y+database name, for example, YVBAP
Old means: Status before the change
Each entry in an X table has an update indicator (UPDKZ) which indicates what type of record this is. This may have the following values:
' ' - The entry was not changed.
'U' (UPDATE) - The entry was changed
'I' (INSERT) - The entry was added
'D' (DELETE) - The entry was deleted.
If the update indicator is 'U', the X table contains the changed (that is new) status, the corresponding Y table contains the old status. Depending on the type of the document change, a record with 'U' may exist in the X table or an entry with 'I' and an entry with 'D' in the X table respectively.
For each entry in the X table (for example, XVBAP) whose update indicator is 'U' or 'D', a corresponding entry has to exist in the corresponding Y table (for example, YVBAP). For entries in the X table with update indicator ' ' or 'I', however, no entry must exist in the corresponding Y table.
Only update indicators ' ' or 'D' should occur in the Y tables where the assignment between X and Y table is as follows:
Update indicator of the X table Update indicator of the Y table
'U' > ' '
'D' > 'D'
Note 381348 - Using user exit, customer exit, VOFM in SD
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG. SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG. Every effort is made to ensure content integrity. Use information on this site at your own risk.