Thursday, September 29, 2011

Compare Transaction Nature


SELECT prkcoo, prdoco, prdcto, prlnid, prnlin, prsfxo, prmcu, fdbnnf,  prdcto, pjbnop, pjbsop,fdbnop, fdbsop FROM proddta.F43121, proddta.F76432, proddta.F7611B WHERE
prdoco = pjdoco AND
prdcto = pjdcto AND
prkcoo = pjkcoo AND
prsfxo = pjsfxo AND
prlnid = pjlnid AND
PrDOCO = FDDOCO AND
PRDCTO = fdPDCT AND
PRLNID = FDLNID AND
prnlin = fdnlin AND
prsfxo = fdsfxo AND
prdgl <= 111243 AND
prmatc = 1 AND
pjbnop||pjbsop <> fdbnop||fdbsop

Validate Transaction Nature


SELECT prkcoo, prdcto, pjbnop, pjbsop, COUNT(*) FROM qadta.F43121, qadta.F76432 WHERE
prdoco = pjdoco AND
prdcto = pjdcto AND
prkcoo = pjkcoo AND
prsfxo = pjsfxo AND
prlnid = pjlnid AND
prdgl <= 111243 AND
prmatc = 1 AND
pjbnop||pjbsop IN (SELECT trim(drky) FROM qactl.F0005 WHERE drsy = '55' AND drrt IN ('FA'))
--prlitm IN ( 'F194548', 'F194524', 'F194643','F194700')
GROUP BY prkcoo, prdcto, pjbnop, pjbsop

Standard Vs Avg Cost


SELECT t1.C2ctry, t1.C2fy, t1.C2itm, t1.C2litm, t1.C2mcu, t3.c0mmcu, t1.C2ledg, t2.Coledg,  t1.C2uncs/10000, t2.Councs/10000  FROM qadta.F554105 t1, qadta.F4105 t2, qadta.F554103 t3
WHERE
t1.c2ledg = '02' AND
t2.coledg = '07' AND
t1.c2itm = t2.coitm AND
t1.c2mcu = t2.comcu AND
t1.c2pn = 8 AND
--t2.c2pn  = 8 AND
--t1.c2uncs <> t2.c2uncs AND
t1.c2mcu LIKE '%310%' AND
t1.c2mcu = t3.c0mcu
ORDER BY t1.C2ctry, t1.C2fy, t1.C2itm, t1.C2litm, t3.C0mmcu, t1.c2mcu;

Monday, September 19, 2011

Data Selection Security in EnterpriseOne

Data Selection Security in EnterpriseOne
One of newest types of security for JD Edwards EnterpriseOne is Data Selection security.  Using Data Selection security CNC administrators can secure users from modifying, adding, deleting, and viewing the data selection for batch applications or specific versions of batch applications.

Data Selection security was made available with Tools Release 8.98 Update 1 (8.98.1.0) and has a minimum application release level requirement of 8.12.  The functionality also requires that Tools Baseline ESU JK17733 or newer be applied.

Data Selection is already disallowed for versions secured with an "old style" version security value of 1 where the Last Modified User is the only one who can change the version. Typically, the XJDE and ZJDE versions are delivered with this security value.  However, for custom versions that are not secured in this manner the new Data Selection security can be used to gain fine-grained control over the actions that are to be allowed for Data Selection.

Some important points to keep in mind when considering Data Selection Security:

  • Data Selection security applies to data selection during submission of a batch application or report.
  • Data selection security is enforced only for end users submitting batch applications or reports from a web client.


Enabling
 
Data Selection security is enabled when the application release is at 8.12 or higher, Tools Release 8.98.1.0 has been installed and Tools Baseline ESU JK17733 or newer has been applied.  Once Data Selection security is enabled you will see a new Hyper Exit button in Work With User/Role Security (P00950).





















If you do not see the button, chances are that you have not met one or more of the requirements mentioned above.  The form used for Data Selection security is the same one formerly used solely for Processing Option Security.



Setup and Utilization

There are four different Data Selection security options - Prompt for Data SelectionFull Access Data SelectionModify Data Selection and Add Data Selection.

Prompt for Data Selection is the most restrictive, disallowing the user from even seeing the Data Selection.  
Full Access Data Selection prevents a user from deleting existing Data Selection rows. 
Modify Data Selection prevents expanding or changing existing criteria.  
Add Data Selection prevents a user from adding new Data Selection criteria.


  
 Prompt for Data Selection

When only the Prompt for Data Selection option is selected the user will still be able to select the "Data Selection" check box but will receive the following error:



















 Full Access Data Selection

The next most restrictive option is Full Access Data Selection.  This option prevents a user from having a full set of the editing capabilities on the data selection screen.


When only the Full Access Data Selection option is selected the user will be able to modify values for existing data selection rows and add data selection rows with AND operator but not OR operator.  The user will not be able to delete existing rows.

















Enabling the Full Access Data Selection option allows the use of two more options that can be used to further restrict Data Selection - Modify Data Selection and Add Data Selection.  The Full Access Data Selection, Modify Data Selection and Add Data Selection options can be used in any combination to provide the desired level of Data Selection security.


 Modify Data Selection

When the Full Access Data Selection and Modify Data Selection options are selected the user will not be able to modify values for existing data selection rows but will be able to add data selection rows with AND operator but not OR operator.  The user will not be able to delete existing rows.


















 Add Data Selection

When the Full Access Data Selection and Add Data Selection options are selected the user will be able to modify values for existing data selection rows but will not be able to add data selection rows. The user will not be able to delete existing rows.



















 Modify Data Selection plus Add Data Selection

When the Full Access Data SelectionModify Data Selection and Add Data Selection options are selected the user will not be able to modify values for existing data selection rows and will not be able to add data selection rows. The user will not be able to delete existing rows.  This is essentially a read-only configuration for Data Selection.



























Options Summary

Prompt for Data Selection
  •     Cannot see or change data selection

Full Access Data Selection
  •     Can modify values for existing data selection rows
  •     Can add data selection rows with AND operator but not OR operator
  •     Cannot delete existing rows

Full Access Data Selection + Modify Data Selection
  •     Cannot modify values for existing data selection rows
  •     Can add data selection rows with AND operator but not OR operator
  •     Cannot delete existing rows

Full Access Data Selection + Add Data Selection
  •     Can modify values for existing data selection rows
  •     Cannot add data selection rows with AND operator but not OR operator
  •     Cannot delete existing rows

Full Access Data Selection + Modify Data Selection + Add Data Selection
  •     Cannot modify values for existing data selection rows
  •     Cannot add data selection rows with AND operator but not OR operator
  •     Cannot delete existing rows
  •     Read-only


Summary

Data Selection security is another security type to be used by CNC administrators or consultants to lock down batch versions data selection during submission in the EnterpriseOne web client.  It should be implemented as a part of a larger effort to secure batch processing and in such a manner as to maintain consistency with your organization's security practices and methods.

More information can be found in Oracle Document ID # 814174.1 JD Edwards EnterpriseOne Tools 8.98 Update 1 Batch Application Data Selection Security

Friday, September 16, 2011

Copy 02 into L1 into F4105


insert into bfdta.F4105

SELECT
    T1.COITM,T1.COLITM,T1.COAITM,T1.COMCU,T1.COLOCN,T1.COLOTN,T1.COLOTG,'L1',T1.COUNCS,T1.COCSPO,T1.COCSIN,T1.COURCD,T1.COURDT,T1.COURAT,T1.COURAB,'L1_FIX',T1.COUSER,T1.COPID,T1.COJOBN,T1.COUPMJ,T1.COTDAY,T1.COCCFL,T1.COCRCS,T1.COOSTC,T1.COSTOC
FROM
    (
        SELECT
            *
        FROM
            BFDTA.F4105
        WHERE
            COLEDG = '02'
        AND TRIM(COMCU)LIKE '311%') T1
LEFT OUTER JOIN
    (
        SELECT
            *
        FROM
            BFDTA.F4105
        WHERE
            COLEDG = 'L1'
        AND TRIM(COMCU)LIKE '311%') T2
ON
    T1.COMCU = T2.COMCU
AND T1.COITM = T2.COITM
WHERE
    T2.COLEDG IS NULL
ORDER BY
    T1.COMCU,
    T1.COLITM

Update Last In Cost from F43121 - Brazil


SELECT * FROM testdta.F43121
WHERE prmatc = '1' AND
prlitm = 'F231947' AND
prmcu = '     3110082' AND
prrcdj = 111243 AND
--prdoc = 80484 AND
prglc LIKE  'IN%'
ORDER BY pritm asc , prmcu ASC, prdoc desc , prupmj DESC, prtday DESC

SELECT * FROM testdta.F43121
WHERE prmatc = '1' AND prlitm = 'F231947' AND prmcu = '     3110082' AND prrcdj = 111243 AND prdoc = 57797 AND pralin = 2 AND prlnid = 191000