load data infile ‘AP_INV.TXT’
append into table AP_INVOICES_INTERFACE
fields terminated by ‘^’ optionally enclosed by ‘”‘
trailing nullcols
(INVOICE_NUM CHAR “RTRIM(:INVOICE_NUM)”,
INVOICE_TYPE_LOOKUP_CODE CHAR “RTRIM(:INVOICE_TYPE_LOOKUP_CODE)”,
INVOICE_DATE DATE “DD-MON-RRRR”,
VENDOR_NUM CHAR “RTRIM(:VENDOR_NUM)”,
VENDOR_SITE_CODE FILLER,
INVOICE_AMOUNT CHAR “RTRIM(:INVOICE_AMOUNT)”,
TERMS_NAME CHAR “RTRIM(:TERMS_NAME)”,
DESCRIPTION CHAR “RTRIM(:DESCRIPTION)”,
DUMMY1 FILLER,
DUMMY2 FILLER,
DUMMY3 FILLER,
DUMMY4 FILLER,
GL_DATE DATE “TO_DATE((TO_CHAR(:GL_DATE,’DD-‘)||DECODE(TO_CHAR(:GL_DATE,’MON’),’AUG’,’SEP’,’SEP’,’SEP’,’OCT’,’OCT’,TO_CHAR(:GL_DATE,’MON’))||TO_CHAR(:GL_DATE,’-YYYY’)))”,
VOUCHER_NUM CHAR “RTRIM(:VOUCHER_NUM)”,
INVOICE_RECEIVED_DATE DATE,
AMOUNT_APPLICABLE_TO_DISCOUNT,
TERMS_DATE DATE,
SOURCE CONSTANT ‘MAXCIM INVOICE’,
PAYMENT_CURRENCY_CODE CONSTANT ‘USD’,
PAYMENT_METHOD_LOOKUP_CODE CONSTANT ‘CHECK’,
CALC_TAX_DURING_IMPORT_FLAG CONSTANT ‘N’,
ORG_ID CONSTANT ‘166’,
SHIP_TO_LOCATION CONSTANT ‘Materials Warehouse’,
INVOICE_CURRENCY_CODE CONSTANT ‘USD’,
creation_date SYSDATE,
last_updated_by CONSTANT 1093,
last_update_date SYSDATE,
created_by CONSTANT 1093,
INVOICE_ID “AP_INVOICES_INTERFACE_S.NEXTVAL”)
load data infile ‘AP_LINE_TEST.TXT’
append into table AP_INVOICE_LINES_INTERFACE
fields terminated by ‘^’ optionally enclosed by ‘”‘
trailing nullcols
(REFERENCE_2 CHAR “RTRIM(:REFERENCE_2)”,
TYPE FILLER,
ACCOUNTING_DATE DATE “DD-MON-RRRR”,
DESCRIPTION CHAR “RTRIM(:DESCRIPTION)”,
DIST_CODE_COMBINATION_ID CHAR “RTRIM(:DIST_CODE_COMBINATION_ID)”,
LAST_UPDATED_BY CHAR “RTRIM(:LAST_UPDATED_BY)”,
AMOUNT CHAR “RTRIM(:AMOUNT)”,
CREATED_BY CHAR “RTRIM(:CREATED_BY)”,
CREATION_DATE DATE “DD-MON-RRRR”,
ATTRIBUTE1 CHAR “RTRIM(:ATTRIBUTE1)”,
ATTRIBUTE2 CHAR “RTRIM(:ATTRIBUTE2)”,
ATTRIBUTE3 CHAR “RTRIM(:ATTRIBUTE3)”,
TYPE_1099 CHAR “RTRIM(:TYPE_1099)”,
UNIT_OF_MEAS_LOOKUP_CODE CHAR “RTRIM(:UNIT_OF_MEAS_LOOKUP_CODE)”,
TAX_RATE CHAR “RTRIM(:TAX_RATE)”,
QUANTITY_INVOICED CHAR “RTRIM(:QUANTITY_INVOICED)”,
UNIT_PRICE CHAR “RTRIM(:UNIT_PRICE)”,
INVOICE_ID “AP_INVOICE_LINES_INTERFACE_S.NEXTVAL”)
Payables Open Interface’s Control File
append into table AP_INVOICES_INTERFACE
fields terminated by ‘^’ optionally enclosed by ‘”‘
trailing nullcols
(INVOICE_NUM CHAR “RTRIM(:INVOICE_NUM)”,
INVOICE_TYPE_LOOKUP_CODE CHAR “RTRIM(:INVOICE_TYPE_LOOKUP_CODE)”,
INVOICE_DATE DATE “DD-MON-RRRR”,
VENDOR_NUM CHAR “RTRIM(:VENDOR_NUM)”,
VENDOR_SITE_CODE FILLER,
INVOICE_AMOUNT CHAR “RTRIM(:INVOICE_AMOUNT)”,
TERMS_NAME CHAR “RTRIM(:TERMS_NAME)”,
DESCRIPTION CHAR “RTRIM(:DESCRIPTION)”,
DUMMY1 FILLER,
DUMMY2 FILLER,
DUMMY3 FILLER,
DUMMY4 FILLER,
GL_DATE DATE “TO_DATE((TO_CHAR(:GL_DATE,’DD-‘)||DECODE(TO_CHAR(:GL_DATE,’MON’),’AUG’,’SEP’,’SEP’,’SEP’,’OCT’,’OCT’,TO_CHAR(:GL_DATE,’MON’))||TO_CHAR(:GL_DATE,’-YYYY’)))”,
VOUCHER_NUM CHAR “RTRIM(:VOUCHER_NUM)”,
INVOICE_RECEIVED_DATE DATE,
AMOUNT_APPLICABLE_TO_DISCOUNT,
TERMS_DATE DATE,
SOURCE CONSTANT ‘MAXCIM INVOICE’,
PAYMENT_CURRENCY_CODE CONSTANT ‘USD’,
PAYMENT_METHOD_LOOKUP_CODE CONSTANT ‘CHECK’,
CALC_TAX_DURING_IMPORT_FLAG CONSTANT ‘N’,
ORG_ID CONSTANT ‘166’,
SHIP_TO_LOCATION CONSTANT ‘Materials Warehouse’,
INVOICE_CURRENCY_CODE CONSTANT ‘USD’,
creation_date SYSDATE,
last_updated_by CONSTANT 1093,
last_update_date SYSDATE,
created_by CONSTANT 1093,
INVOICE_ID “AP_INVOICES_INTERFACE_S.NEXTVAL”)
load data infile ‘AP_LINE_TEST.TXT’
append into table AP_INVOICE_LINES_INTERFACE
fields terminated by ‘^’ optionally enclosed by ‘”‘
trailing nullcols
(REFERENCE_2 CHAR “RTRIM(:REFERENCE_2)”,
TYPE FILLER,
ACCOUNTING_DATE DATE “DD-MON-RRRR”,
DESCRIPTION CHAR “RTRIM(:DESCRIPTION)”,
DIST_CODE_COMBINATION_ID CHAR “RTRIM(:DIST_CODE_COMBINATION_ID)”,
LAST_UPDATED_BY CHAR “RTRIM(:LAST_UPDATED_BY)”,
AMOUNT CHAR “RTRIM(:AMOUNT)”,
CREATED_BY CHAR “RTRIM(:CREATED_BY)”,
CREATION_DATE DATE “DD-MON-RRRR”,
ATTRIBUTE1 CHAR “RTRIM(:ATTRIBUTE1)”,
ATTRIBUTE2 CHAR “RTRIM(:ATTRIBUTE2)”,
ATTRIBUTE3 CHAR “RTRIM(:ATTRIBUTE3)”,
TYPE_1099 CHAR “RTRIM(:TYPE_1099)”,
UNIT_OF_MEAS_LOOKUP_CODE CHAR “RTRIM(:UNIT_OF_MEAS_LOOKUP_CODE)”,
TAX_RATE CHAR “RTRIM(:TAX_RATE)”,
QUANTITY_INVOICED CHAR “RTRIM(:QUANTITY_INVOICED)”,
UNIT_PRICE CHAR “RTRIM(:UNIT_PRICE)”,
INVOICE_ID “AP_INVOICE_LINES_INTERFACE_S.NEXTVAL”)
Share this:
What are Steps for Report Development in Apps?
1. Develop the report as per client requirement using the Report-6i tool.
2. Move the report (.rdf) file from local machine to respective path in the server. If client have the CUST_TOP then move into Cust_Top else move it to the related Standard Top.Custom Top – CUST_TOP/ 11.5.0/ Report/ US/ .rdf Standard Top – PO_TOP/ 11.5.0/ Report/ US/ .rdf (For PO report)
3. Create “Executable” for that report (After log on to Oracle Applications and Select “System Administrator” responsibility)
4. Create “Concurrent Program” and attach Executable to Conc. Prgm. and define Parameters and Incompatibles if any.Concurrent Program: It is an instance of the executable file along with parameters & incompatible.
5. Create “Request Group” and attach Conc. Prgm. to Request Group.Request Group is nothing but a collection of Conc. Prgms.
6. Create “Responsibility” and attach the Request Group to Responsibility.
7. Create “User” attach Responsibility to User”
so that the user can run this Conc. Prgm. form the “SRS Window” (Standard Request Submission).
Note: All the Conc. Prgms. should run from the SRS window (Even if we run from Back-End)By default the user has the rights of System Administrator or Application Developer responsibilities
Every form in Oracle Applications contains 3-Types of Fields.
1. Yellow color – Mandatory2. Green Color – Read-Only3. White Color – Optional
How to Create New User in Oracle Apps?
User Creation: Open IE and type path of Oracle Application in address bar enter User Name and Password
User Name: OPERATIONS Password: WELCOME
Select System Administrator Responsibility
Select Security / User / Define Give the required information and Save.
Switch the user to newly created User.
Note: When we create any User, the User stored at FND_USER.
How we can find the Table names of Apps Screen?
We can find through Help => Record-History => FND_USER
How to find Column Name from front end Apps Screen :
To find all column names: Help => Diagnostics => Examine
What is WHO Columns and How many WHO Columns in Oracle Apps?
Ans : 4 types of who columns for each table in Oracle Applications
Created By Creation Date Updated By Updated Date
Share this:
What is Query for getting customers having multiple accounts?
FROM hz_parties hp, hz_Cust_Accounts hca,ar.ra_customers rc
WHERE hp.party_id = hca.party_id
and rc.customer_id=hca.cust_Account_id
AND hca.cust_account_id IN (
SELECT customer_id
FROM ap_bank_account_uses_all bauses,
ap_bank_accounts_all bacct
WHERE bauses.external_bank_account_id = bacct.bank_account_id
AND primary_flag = ‘Y’
GROUP BY customer_id)
HAVING COUNT (DISTINCT (external_bank_account_id)) > 1)
Share this:
What is Value Sets? What are Types Of Value Sets?
You can share value sets among segments in different FLEXFIELDs, segments in different structures of the same FLEXFIELD, and even segments within the same FLEXFIELD structure. You can share value sets across key and descriptive FLEXFIELDs. You can also use value sets for report parameters for your reports that use the Standard Request Submission feature.
Because the conditions you specify for your value sets determine what values you can use with them, you should plan both your values and your value sets at the same time. For example, if your values are 01, 02 instead of 1, 2, you would define the value set with Right–Justify Zero–fill set to Yes.
Value set is nothing but List of Values with validations. We can use the Value Sets when ever the Concurrent Program has parameters and while defining the Flex Fields. We have to attach the value sets to the Concurrent Program. Validations are depending on Client Requirement.
Value sets are of 8 types.There are several validation types that affect the way users enter and use segment or parameter values:
1. None (not validated at all)
2. Independent
3. Dependent
4. Table
5. Special (advanced)
6. Pair (advanced)
7. Translatable Independent
8. Translatable Dependent
You cannot change the validation type of an existing value set, since your changes affect all FLEXFIELDs and report parameters that use the same value set.
None: You use a None type value set when you want to allow users to enter any value so long as that value meets the value set formatting rules. That is, the value must not exceed the maximum length you define for your value set, and it must meet any format requirements for that value set. For example, if the value set does not allow alphabetic characters, your user could not enter the value ABC, but could enter the value 456 (for a value set with maximum length of three). The values of the segment using this value set are not otherwise validated, and they do not have descriptions. Because a NONE value set is not validated, a segment that uses this value set does not provide a list of values for your users. A segment that uses this value set (that is, a non–validated segment) cannot use FLEXFIELD value security rules to restrict the values a user can enter.
Independent > An Independent value set provides a predefined list of values for a segment. These values can have an associated description. For example, the value 01 could have a description of ‘Company 01’. The meaning of a value in this value set does not depend on the value of any other segment. Independent values are stored in an Oracle Application Object Library table. You define independent values using an Oracle Applications window, Segment Values.
Table > A table–validated value set provides a predefined list of values like an independent set, but its values are stored in an application table. You define which table you want to use, along with a WHERE cause to limit the values you want to use for your set. Typically, you use a table–validated set when you have a table whose values are already maintained in an application table (for example, a table of vendor names maintained by a Define Vendors form). Table validation also provides some advanced features such as allowing a segment to depend upon multiple prior segments in the same structure.
Dependent > A dependent value set is similar to an independent value set, except that the available values in the list and the meaning of a given value depend on which independent value was selected in a prior segment of the FLEXFIELD structure. You can think of a dependent value set as a collection of little value sets, with one little set for each independent value in the corresponding independent value set. You must define your independent value set before you define the dependent value set that depends on it. You define dependent values in the Segment Values windows, and your values are stored in an Oracle Application Object Library table.
Special and Pair Value Sets:
Special and pair value sets provide a mechanism to allow a”FLEXFIELD–within–a–FLEXFIELD”. These value sets are primarily used for Standard Request Submission parameters. You do not generally use these value sets for normal FLEXFIELD segments. Special and Pair value sets use special validation routines you define. For example, you can define validation routines to provide another FLEXFIELD as a value set for a single segment or to provide a range FLEXFIELD as a value set for a pair of segments.
Translatable Independent and Translatable Dependent :A Translatable Independent value set is similar to Independent value set in that it provides a predefined list of values for a segment. However, a translated value can be used. A Translatable Dependent value set is similar to Dependent value set in that the available values in the list and the meaning of a given value depend on which independent value was selected in a prior segment of the FLEXFIELD structure. However, a translated value can be used. FLEXFIELD Value Security cannot be used with Translatable Independent or Translatable Dependent value sets. For format validation, translatable value sets must use the format type Char. The maximum size must be no greater than 150. The Number Only option and the Right–justify and Zero–Fill Numbers option cannot be used with translatable value sets. Range FLEXFIELDs cannot use Translatable Independent or Translatable Dependent value sets.
Share this:
Navigation Path for Value Set Creation?
Application-> Validation -> Set.
Once we create Independent & Dependent valueset then we can attach values to the valueset by using the following Navigation.
Application -> -> Validation
-> Values (To create values for value set)
NOTE: Once we attach any value to Independent & Dependent we can’t delete that value, but we can disable that value. Duplicate values are not allowed in list of values.
Develop a Report using Query and by creating valueset :Select USER_ID, USERNAME From FND_USER Where
USER_ID Between :X AND :Y
:$FLEX$ – It is One of the Oracle applications Key word which we use to get the prevents parameter value in current list of values “WHERE Clause”. We can be use Table Values in the “Where Clause Box”.
Query Using: $FLEX$
Select
VENDOR_SITE_ID
From
PO_VENDOR_SITE_ALL
Where
VENODR_ID = :$FLEX$.VEN_TABLE
Note: We can give Where Clause Condition in creation of Second Value Set.
Practical:Query:
Select *
From ORF_ORGANIZATION_DEFINATIONS
Where ORGANIZATION_ID = :P_ORG_ID
And BUSINESS_GROUP_ID = :P_BUSINESS_GROUP_ID
In Where Clause write the statement as
Where
BUSINESS_GROUP_ID = :$FLEX$.BUISINESS_GROUP
Range:
When ever we have to restrict the user with in the given values we use Range. For example when ever our parameter is having “From Date and To Date” we have to use Range option to restrict the user to enter the values between Low and High.
Note:
Pre defined value set for date is “FND_DATE” and its default format is “DD-MON-YY”.Alias name is mandatory when we are specifying ‘:$FLEX$’ and Column Name in ‘Additional Column’.
Share this: