‎2008 Jul 11 4:27 AM
Hi
We are doing an enhacement in sales order capture, and we have next problem, after saving the order, the change of adding the new order is not saved in CDHDR table with the I (of Insert), that's only one problem, but I have another worst , after I use exit save_document, I'm saving data in a Z table, and debugging the program, when I finish the exit save_document the Z table is Ok saved, with the correct data saved, but when I pulse F8 to make the order being complete saved, something is happening because the Z table changes its values as if I run the VA02 , but I'm still in VA01 finishing the saving of the new order, It's very weird, and I don't know if somebody has experimented something like this, please let me know, because its very Urgent!!
Thanks
Regards
Soraya
‎2008 Jul 11 5:45 AM
Hi,
To have the changed values being reflected in CDHDR, for the fields you wanted to track the changes- In Ztable, AT Dataelement level, In FURTHER CHARACTIRSTICS tab check the box CHANGES DOCUMENT, if you check this checkbox then this becomes the pre requisite for the CDHDR entires. Then in SCDO trnsaction try to cretae a Change document object for this table.
I think the table is not locked for entires. For this table provide the authorization checks then we can restirct others to enter the value into the table.
Try to use Authorization objects or LOCK related Function modules like ENQUEUE and DEQUEQUE.
Reward if helpful.
Best Wishes,
Chandralekha