DatinN
7th June 2016, 07:59
Hi All,
I need your experience and expertise.
I'm looking for possibility to avoid user perform editing after they print their PO.
Is there any features to disable ?
Thank you
bhushanchanda
7th June 2016, 14:06
Hi,
If your environment supports UEDLL's, create a UE DLL for tdpur400 and tdpur401 and then you can add the following code to your tdpur400ue script -
#include <bic_dal>
function extern long ue.before.before.save.object(long mode)
{
on case mode
case DAL_NEW:
break
case DAL_UPDATE:
if tdpur400.hdst = tdpur.hdst.sent then
dal.set.error.message("@Order is already printed")
return(DALHOOKERROR)
endif
break
endcase
return(0)
}
Similarly, you can do for tdpur401ue by selecting table tdpur400 and then checking the status.
If UE is not an option, you can go with table data authorization. Check this thread (http://www.baanboard.com/baanboard/showthread.php?p=198331#post198331). You can setup similar authorization for status as Printed.
DatinN
8th June 2016, 07:32
Hi Bhushan,
Quick check, I will ask my team.
anyway, how I know it support UEDLL ?
Thank you
bhushanchanda
8th June 2016, 07:39
Hi,
Go to Program Scripts. Create new. Use the code as
Package -td
Module -pur
Code- 400ue
Once a tab is pressed, if the script type is defaulted to General Library, the environment supports UE else it doesn't.
DatinN
8th June 2016, 09:54
Thank you !
sobiratul
8th June 2016, 10:00
Hi Bhushan,
i being reading your conversation and interested to know where i could try your suggestion.
Program Script is it inside tools-->application customization-->session-->sessions?
Thanks,
bhushanchanda
8th June 2016, 12:50
Hi,
You can navigate to ->
Tools -> Application Development -> Program Scripts -> Program Scripts
Or, you can run program ttadv2530m000
sasikanth
23rd June 2016, 07:22
Hi Bhushan,
Just to add one more point to your solution, I believe only Sent Status is not enough, you should also consider the "In Process" status in your query.
Regards,
Sasi Kanth
bhushanchanda
23rd June 2016, 08:32
Yes, anything other than Created/Approved should be blocked which includes -
1. In Process
2. Closed
3. Deleted
4. Cancelled
..