Hi Abhishek,
You can consider implementing badi ORDER_SAVE for this. Every time document A is saved, you can check there if there was a change in your custom field X (by comparing with DB value), and if so check if there is any followup document to update it accordingly.
But you have other alternatives like creating actions or coding directly in WebUI handler classes. Just check what suits best for your scenario.
Kind regards,
Garcia