EMail XML Publisher Output

on Sunday, October 24, 2010

To implement this functionality, we would have to know the following:

1. The concurrent request id of the program that is tied to an xml publisher defined layout
2. The path and name of the output file that is generated by the output post processor for the concurrent request
3. An email utility that can mail the generated output as an attachment

It is quite obvious for us to know from where to pick up the request id. It would be interesting to know the name of the file and the path where the xml publisher generated output is stored.

Let us assume that we have a concurrent request that is tied to an xml publisher layout which will format the output to a PDF document. When the concurrent request completes its run, it generates 2 output files in this case. The first file is the xml data file and the second file is the pdf file. Both the files get generated and stored in the usual $APPLCSF/$APPLOUT path.

What is of interest here is the file name given to the pdf file. This file name looks to be a combination of the XML publisher definition code, the request id and a running number. How do we get to know this filename from within oracle?

There is a table named FND_CONC_REQ_OUTPUTS that stores the request id, dir path and the file name, filesize and so on. This is the table that we use to read the file name from after looking it up with a particular request id. Once this is done, we are all set to email the file as an attachment. How do we do it from within oracle?

Oracle provides us with a PL/SQL wrapper named SendMailJPkg for its internal java mail utility that is loaded into the database. We can use this to send the email and the contents of the pdf file as an attachment. The utility has a method named SendMail. This method has a list of parameters which are pretty straightforward to lookup and understand. The last parameter is a pl/sql table named attachments. We can send multiple attachments using this pl/sql table type parameter. In our case, to send the pdf as an attachment, we would simply have to instantiate one element in the pl/sql table and pass the file name including the path as a value to the element. Set all the other appropriate param values and call the method. The pdf file would land up nicely in the user's inbox.

Overview of Work in Progress (WIP)

on Thursday, October 21, 2010

Oracle WIP module facilitates in creating WIP job or work order to manufacture the goods. Oracle WIP supports discrete, repetitive, project and assemble-to-order (ATO) type of work orders.

Non-standard WIP Job When the material and resources needed to manufacture is not pre-determined or pre-calculated then non-standard WIP job can facilitate issuing material and resources as needed. Prototype manufacturing is a good example to this.

WIP Accounting Classes Accounting class is a setup that have pre-defined list of valuation and variance accounts. Each discrete job is assigned with a accounting class.

Out-Side-Processing (OSP) With more and more industries are moving towards Outsourcing or contract manufacturing, ERP systems should have functionality to send goods out and receive back after performing certain operations. Oracle WIP module have Out side processing (OSP) functionality to support this.

Work Order Less Completion (WOLC) This is an alternative to standard discrete job. In this method on-hand can be increased by performing WOLC transaction instead of creating a WIP Job. This functionality will be very useful if you are using other legacy system as your shop floor manufacturing tool and WIP is used for inventory tracking purpose.

Backflushing When you manufacture a job or assembly you need to issue material or resources to the job, this can be done in two ways. Manually issuing or automatically backflushing. Backflushing deducts reduces the onhand of sub components and updates configuration of assembly being manufactured as components issued.

Overview of Oracle Shipping

on Sunday, October 10, 2010

PICK RELEASE    Pick release is an activity to confirm picking of goods from stock and keeping aside for shipping to a sales order. Normally pick release happens based on scheduled ship date on sales order. Pick release process can be done manually or automatically scheduled. Once pick release is activated it normally prints Pick ticket or Pick Slip for warehouse personnel to pick the material. Pickslip displays the information like Item, quantity, location from where it should be picked and destination place where it should be moved (eg. docking station). Pick release doesn’t decrements the onhand inventory but it decrements the available inventory for next picking.

DELIVERY    Delivery is a batch of sales order lines grouped together based on some criteria (criteria could be shipto location, sales order etc). Delivery can be automatically created by system during pick release or it can be manually created.

TRIP    Trip is primarily the shipment routing plan, it has pick up location and drop off location. Most of the cases multiple deliveries can be grouped under a trip.

SHIP CONFIRM    It is an activity where it is confirmed systematically that goods are shipped from the warehouse that finaly reduces the onhand quantity and updates the install base with customer & sales order details.