
Does anyone know what “the role” is called so I can ask our IT department to add this to my user so I can do changes in Purchase Parts? I can do changes in Purchase Part but not Purchase PartS.
Does anyone know what “the role” is called so I can ask our IT department to add this to my user so I can do changes in Purchase Parts? I can do changes in Purchase Part but not Purchase PartS.
Best answer by ShawnBerk
Hi Nina,
Now that you’ve mentioned which field you wanted to change, I remembered we needed to perform the same task, though for us it was over 40000 parts. We did it via a script, here is the SQL for it, just needs modified for your sites, rest should be ok. But you will need IT to run it and test it in another environment first.
SQL>
SQL> -- ------------------------------ END BOILERPLATE ------------------------------
SQL>
SQL> DECLARE
2 info_ VARCHAR2(32767);
3 obji_ VARCHAR2(32767);
4 objv_ VARCHAR2(32767);
5 attr_ VARCHAR2(32767);
6 actn_ VARCHAR2(32767);
7 BEGIN
8 FOR rec_ IN (
9 SELECT pp.objid,
10 pp.objversion,
11 pp.part_no,
12 pp.contract
13 FROM purchase_part pp
14 WHERE pp.taxable_db != 'FALSE'
15 AND pp.contract IN ('410', '481', '510', '581', '582')
16 ORDER BY pp.contract ASC,
17 pp.part_no ASC
18 )
19 LOOP
20 info_ := NULL;
21 obji_ := rec_.objid;
22 objv_ := rec_.objversion;
23 attr_ := 'TAXABLE_DB' || CHR(31) || 'FALSE' || CHR(30);
24 actn_ := 'DO';
25 DBMS_OUTPUT.PUT_LINE(rec_.contract || '^' || rec_.part_no);
26 purchase_part_api.modify__(info_, obji_, objv_, attr_, actn_);
27 END LOOP;
28 END;
29 /
Regards,
Shawn
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.