Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAVE_DOCUMENT_PREPARE Vs SAVE_DOCUMENT

former_member214498
Contributor
0 Likes
809

Hi Folks

I need to create partner function in the delivery header with some information extracted from different tables. I have done the coding in SAVE_DOCUMENT for XVBPA by appending a line to it. However when I look at the Delivery partners after the execution, the newly added partner in the XVBPA is not added to the partners list.

I have looked at SAVE_DOCUMENT_PREPARE though I havent tried it. Can anyone give me an expert opinion that should I use SAVE_DOCUMENT_PREPARE instead of SAVE_DOCUMENT to populate the XVBPA.

Regards

Waz

3 REPLIES 3
Read only

Former Member
0 Likes
647

XVBPA will not be changed or the change will be ignored after SAVE_DOCUMENT_PREPARE. At SAVE_DOCUMENT_PREPARE, check whether you need XVBPA or whether you're only working with VBPA at that point, since the before/after tables may no longer be relevant.

Read only

0 Likes
647

Hi Waz,

When updating the XVBPA structure, be sure to update the field UPDKZ accordingly, this is important.

Regards,

Chen

Read only

former_member214498
Contributor
0 Likes
647

Thanks Folks for your valuable inputs. I did find this out that XVBPA and XLIKP are only updated in SAVE_DOCUMENT_PREPARE and nothing is updated for them in SAVE_DOCUMENT.