Using SAP change documents to make change logs visible

Using SAP change documents to make change logs visible

I am developing a program which updates SAP tables MARD and MCHB with a storage location against a material plant combination using an SAP INSERT statement. I need the program to create an SAP change document so that the user can see the change log in transaction MM02 (environment --> display log).

I have created a change object for this, which contains MARD and MCHB and have also included the SAP function module "write_document" that gets created once you generate the program. The CDHDR is updating but the change log reflects no change.

How can I connect the update that is being done through my prog and transaction MM02 so that for the entries that I insert through my program are shown in the change log with info (i.e., change date, change time, user, etc.)?

    Requires Free Membership to View

    When you register, you will start receiving targeted emails from my award-winning team of editorial writers. Our goal is to keep you informed on the hottest topics and biggest challenges faced by SAP professionals today.

    Hannah Smalltree, Editorial Director

    By submitting your registration information to SearchSAP.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchSAP.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

Unless you are working directly for SAP, there is no way that you should be writing a program that directly updates SAP tables. If your program makes an error, and you end up with a corrupted material master, your client may find that they violated the terms of their license with SAP, and are being charged a lot of money to fix things.

To update this kind of data, you should use BAPIs, function modules and/or BDC.

This was first published in December 2009

Join the conversationComment

Share
Comments

    Results

    Contribute to the conversation

    All fields are required. Comments will appear at the bottom of the article.