Oracle apps Attachment Functionality
Oracle apps Attachment Functionality
About Attachments:
https://erpschools.com/erps/sysadmin-and-aol/oracle-attachment-functionality-adding-an-attachment-to-a-form 1/13
2/20/25, 10:02 AM Oracle apps Attachment Functionality
2] Long Text
Text stored in the database containing 2000 characters or more.
3] Image
An image that Oracle Forms can display, including: bmp, cals, jfif, jpeg, gif, pcd, pcx,
pict, ras, and tif.
4] OLE Object
An OLE Object that requires other OLE server applications to view, such as Microsoft
Word or Microsoft Excel.
5] Web Page
A URL reference to a web page which you can view with your web browser.
Tables Involved:
For Importing Attachments in oracle application one has to populate following
tables.
1. FND_DOCUMENTS
2. FND_ATTACHED_DOCUMENTS
3. FND_DOCUMENTS_TL
4. FND_DOCUMENT_DATATYPES.
5. FND_DOCUMENT_CATEGORIES
6. FND_DOCUMENTS_LONG_TEXT (Long text type attachment).
7. FND_DOCUMENTS_SHORT_TEXT (Short text type attachment).
8. FND_DOCUMENTS_LONG_RAW
9. FND_LOBS (File type attachments).
FND_DOCUMENTS:
FND_DOCUMENTS stores language-independent information about a document.
For example, each row contains a document identifier, a category identifier, the
method of security used for the document (SECURITY_TYPE, where
1=Organization,2=Set of Books, 3=Business unit,4=None), the period in which the
document is active, and a flag to indicate whether or not the document can be
shared outside of the security type (PUBLISH_FLAG).
Other specifications in this table include: datatype (DATATYPE_ID, where 1=short
text,2=long text, 3=image, 4=OLE object), image type, and storage type
(STORAGE_TYPE, where 1=stored in the database, 2=stored in the file system).
The document can be referenced by many application entities and changed only in
the define document form (USAGE_TYPE=S); it can be used as a fill-in-the-blanks
document, where each time you use a template, you make a copy of it
https://erpschools.com/erps/sysadmin-and-aol/oracle-attachment-functionality-adding-an-attachment-to-a-form 2/13
2/20/25, 10:02 AM Oracle apps Attachment Functionality
https://erpschools.com/erps/sysadmin-and-aol/oracle-attachment-functionality-adding-an-attachment-to-a-form 3/13
2/20/25, 10:02 AM Oracle apps Attachment Functionality
SELECT
FAD.SEQ_NUM "Seq Number",
FDAT.USER_NAME "Data Type",
FDCT.USER_NAME "Category User Name",
FAD.ATTACHED_DOCUMENT_ID "Attached Document Id",
FDET.USER_ENTITY_NAME "User Entity",
FD.DOCUMENT_ID "Document Id",
FAD.ENTITY_NAME "Entity Name",
FD.MEDIA_ID "Media Id",
FD.URL "Url",
FDT.TITLE "Title",
FDLT.LONG_TEXT "Attachment Text"
FROM
FND_DOCUMENT_DATATYPES FDAT,
FND_DOCUMENT_ENTITIES_TL FDET,
FND_DOCUMENTS_TL FDT,
FND_DOCUMENTS FD,
FND_DOCUMENT_CATEGORIES_TL FDCT,
FND_ATTACHED_DOCUMENTS FAD,
FND_DOCUMENTS_LONG_TEXT FDLT
WHERE
FD.DOCUMENT_ID = FAD.DOCUMENT_ID
AND FDT.DOCUMENT_ID = FD.DOCUMENT_ID
AND FDCT.CATEGORY_ID = FD.CATEGORY_ID
AND FD.DATATYPE_ID = FDAT.DATATYPE_ID
https://erpschools.com/erps/sysadmin-and-aol/oracle-attachment-functionality-adding-an-attachment-to-a-form 4/13
2/20/25, 10:02 AM Oracle apps Attachment Functionality
SELECT
FAD.SEQ_NUM "Seq Number",
FDAT.USER_NAME "Data Type",
FDCT.USER_NAME "Category User Name",
FAD.ATTACHED_DOCUMENT_ID "Attached Document Id",
FDET.USER_ENTITY_NAME "User Entity",
FD.DOCUMENT_ID "Document Id",
FAD.ENTITY_NAME "Entity Name",
FD.MEDIA_ID "Media Id",
FD.URL "Url",
FDT.TITLE "Title",
FDST.SHORT_TEXT "Attachment Text"
FROM
FND_DOCUMENT_DATATYPES FDAT,
FND_DOCUMENT_ENTITIES_TL FDET,
FND_DOCUMENTS_TL FDT,
FND_DOCUMENTS FD,
FND_DOCUMENT_CATEGORIES_TL FDCT,
FND_ATTACHED_DOCUMENTS FAD,
FND_DOCUMENTS_SHORT_TEXT FDST
WHERE
FD.DOCUMENT_ID = FAD.DOCUMENT_ID
AND FDT.DOCUMENT_ID = FD.DOCUMENT_ID
AND FDCT.CATEGORY_ID = FD.CATEGORY_ID
AND FD.DATATYPE_ID = FDAT.DATATYPE_ID
AND FAD.ENTITY_NAME = FDET.DATA_OBJECT_CODE
AND FDST.MEDIA_ID = FD.MEDIA_ID
AND FDAT.NAME = 'SHORT_TEXT';
https://erpschools.com/erps/sysadmin-and-aol/oracle-attachment-functionality-adding-an-attachment-to-a-form 5/13
2/20/25, 10:02 AM Oracle apps Attachment Functionality
Attachment feature enables users to link files like images, word documents,
emails, e.t.c to a particular form/function/record.
https://erpschools.com/erps/sysadmin-and-aol/oracle-attachment-functionality-adding-an-attachment-to-a-form 6/13
2/20/25, 10:02 AM Oracle apps Attachment Functionality
https://erpschools.com/erps/sysadmin-and-aol/oracle-attachment-functionality-adding-an-attachment-to-a-form 7/13
2/20/25, 10:02 AM Oracle apps Attachment Functionality
https://erpschools.com/erps/sysadmin-and-aol/oracle-attachment-functionality-adding-an-attachment-to-a-form 8/13
2/20/25, 10:02 AM Oracle apps Attachment Functionality
https://erpschools.com/erps/sysadmin-and-aol/oracle-attachment-functionality-adding-an-attachment-to-a-form 9/13
2/20/25, 10:02 AM Oracle apps Attachment Functionality
https://erpschools.com/erps/sysadmin-and-aol/oracle-attachment-functionality-adding-an-attachment-to-a-form 10/13
2/20/25, 10:02 AM Oracle apps Attachment Functionality
https://erpschools.com/erps/sysadmin-and-aol/oracle-attachment-functionality-adding-an-attachment-to-a-form 11/13
2/20/25, 10:02 AM Oracle apps Attachment Functionality
https://erpschools.com/erps/sysadmin-and-aol/oracle-attachment-functionality-adding-an-attachment-to-a-form 12/13
2/20/25, 10:02 AM Oracle apps Attachment Functionality
https://erpschools.com/erps/sysadmin-and-aol/oracle-attachment-functionality-adding-an-attachment-to-a-form 13/13