Hi,
We have a requirement as below,
Whenever a PM order is created / Changed using IW31/32 we need to add a pre-defined long text in the components to be created/changed.
The problem is, for already existing component items the key to be passed to the SAVE_TEXT function module is available and an entry is also available in the RESB table over which the long text gets updated.
But for the components to be created newly there is no entry in RESB table and even if the key is constructed and passed it does not update the long text since long text updation happens only after commit of the component in the RESB table.
We are using the SAVE_TEXT code inside the BADI 'WORKORDER_UPDATE' - method 'before_update'. Please let us know the resolution for the above problem.
Regards,
Prabaharan.G