Blog directory

Copy/Backup record to an Audit Table the easy way

One of the most common pieces of code developers have to write is to copy a record from one table to another. Recently I had to copy a record from a table into an audit table on changes. The issue with writing such piece of code in Event Rules or NER’s is that you have to create a variable each for the value to be fetched, and inserted. For big standard tables with over 100 fields, this will be a very hectic process.

There’s an easy way to get this done using C BSFN’s. For now we take an example that, we need to write an audit record into a copy of F4801, say F554801. The Primary Key of F554801 has been updated to incorporate an additional sequence number (SEQ5) so that multiple records can be inserted for the same document number (DOCO).

So the logic for the BSFN will be something like

  1. Fetch the latest sequence number from F554801 for the Document number (Primary Key)
  2. Increment the Sequence number by 1.
  3. Retrieve the record from original table F4801 to be copied.
  4. Insert the retrieved record into F554801 along with the incremented Sequence number.

The BSFN is not a big deal, only catch here is to assign the table data-structure values from F4801 to F554801. For this, what we do is to modify the JDB_Fetch statement.

The return datastructure of the JDB_Fetch is the target table instead of the source table on which its fetched. i.e.: we return the results into the F554801 datastructure in the Step-3 above.

Visit the following link to download the complete Business Function files.

JDE Table Event Rules

I recently faced an issue with the Table Event Rules (TER’s) commonly called as Table Triggers(which is wrong. Actually Table Triggers occur outside JDE, like in a Database. Thus, JDE has no knowledge about it. TER’s on the other hand are built within JDE, and have to be generated and compiled to get it working) Advanced Users please skip directly to the issue

Anyways, coming to the point, I had a scenario to use an Audit Table . . . → Read More: JDE Table Event Rules

JD Edwards EnterpriseOne 9.1 Standalone Released

Oracle JD Edwards EnterpriseOne 9.1 Standalone has been released on March 16th 2012. Both 32bit and 64bit versions of the Standalone are available. This would help relatively for those who have the 64bit OS’s installed on their machines. This version of the Standalone Client supports only the Oracle Enterprise Edition (OEE) as the local database.

You can download the 9.1 Standalone/Demo from the edelivery.oracle.com site.

As of writing this post, only the 64bit version of the E9.1 Demo . . . → Read More: JD Edwards EnterpriseOne 9.1 Standalone Released

Business Services Hands On (Lab Guide) from OOW 2008

Try out these hands on guides from Oracle Open World (2008) for Business Services.

The first two hands on lab exercises are publisher Business services. The first one will give you an experience of calling a Business function from the Business Service, and retrieving a value. Similarly, the second hands on lab exercise will give you an experience of performing a Table I/O, and an insert.

The Last hands on lab is specifically for Consumer Business service, where JDE . . . → Read More: Business Services Hands On (Lab Guide) from OOW 2008

Enable Business Services for JD Edwards Demo/Standalone

Security Workbench BSSV Publish

Its been long time since Chris Koloszar had given steps towards enabling and using BSSV for JD Edwards Demo Jr 9.0 or 9.0.2. I’m summarizing and setting up the following steps for E9 only.

Pre-Requisite Softwares installed:

JD Edwards EnterpriseOne Demo 9.0 or 9.0.2 version (Working good) (Preferably SQL Server edition) JavaTM Platform, Standard Edition Development Kit (JDK) 1.6.x.xx  . . . → Read More: Enable Business Services for JD Edwards Demo/Standalone