on 01-30-2015 10:33 AM
Hi Experts,
My requirement is to make Rejection Note Mandatory when a approver rejects a Shopping Cart.
I have created an enhancement in CHANGE_DOCUMENT method of /SAPSRM/CL_PDO_BO_SC_ADV class.
Inside the enhancement i have checked if there is a line item in longtext with text_id = 'NOTM'.
Now the problem is, when a approver rejects for the first time without entering comment, it works fine.
But when requester again modifies SC and re-orders it, internal table longtext still holds previous rejection comment. Therefore, the error message is not coming this time.
Suggest me how can i fix this please.
Regards,
Parthi
Hello Parthi,
When the approval note is stored the text is stored along with date and time. Something like
TEST#( MANAGER 30.01.2015 12:58:21 CET ). I would say you can extract date and time and if the time is lesser than a threshold from now then you can raise the error. This should fix your case.
Thanks and Regards,
Veera
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Veera,
Thanks for the reply. Actually I have tried that method only but the customers are not sure about the threshold time.
I have checked whether name, date, hour and minute matches with system variables but still if it is entered at 11:59:59 pm, all the values including the date changes.
So, Is there any other better way to find it? like is there any table that creates a record every time comment is entered ?
Regards,
Parthi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.