Skip to Content
avatar image
Former Member

Change Log is not getting updated for Z fields in VBAP Table

Hi All,

I have created 2 z fields in VBAP table(accordingly i have created in bape_vbap, bape_vbapx, VBAPKOZ, VBAPKOZX) - these fields are visible in VA01/VA02/VA03 tcode in Additional data B tab.

I have written a zprogram to update these zfields using update statement( UPDATE vbap from TABLE ltab. COMMIT WORK.) It is working fine the values are getting updated - when i see this values in VA03 and VBAP table - BUT the change log is NOT getting updated, when i view this in Environment->Changes. i have checked the data element for the zfields - the Change document checkbox is marked in further characteristics but still the change log are not captured.

Is it true that if i update the zfields using FM BAPI_SALESORDER_CHANGE the change log will be created?

Thanks in advance.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Oct 09, 2017 at 09:50 AM

    Well, search and read some documentation on change documents first. You should realize that there is no chance an update SQL statement will trigger the update FM that generate those documents. Look for differences between change documents (program) and log data changes (SQL).

    Look with SCDO (object VERKBELEG for sales orders) for the correct include/FM that generates those documents. Then if, as I hope, the update statement is to be called only once for legacy data, adapt your report to generate the change document with an explicit call.

    If you correctly implemented the new fields, as seems to be the case as you mentionned the correct append structures, yes, a call of the BAPI will also generate the documents.

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 09, 2017 at 06:26 PM

    Did you append Z field(s) to VBAP correctly? Did you check the "Change document" checkbox in the data element? If you update the Z field(s) in VA02, are the change documents created?

    If the answer to all these questions is "yes" and BAPI does not create change documents then I'd suggest to contact SAP Support.

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 09, 2017 at 09:54 AM

    I think you should use BAPI_SALESORDER_CHANGE instead of direct update to the standard table!.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 09, 2017 at 09:21 AM

    Can anyone help on this.

    Add comment
    10|10000 characters needed characters exceeded