Add Responsibility to your USER without having Application System Administrator Rights

By following procedure you can add responsibility to your USER with out having Application System Administrator Rights

begin
fnd_user_pkg.addresp(
‘&User_Name’, /*Application User Name */
‘&Responsablity_Application_Short_Name’, /*get from Query Below */
‘&Responsibility_Key’,/*get from Query Below */
‘&Security_Group’, /* Most of cases it is ‘STANDARD’ so you can hard code it */
‘&Description’, /* Any comments you want */
‘&Start_Date’, /* Sysdate From Today */
‘&End_Date’ ); /* Sysdate + 365 Rights for Next One Year*/
commit;

dbms_output.put_line(’Responsibility Added Successfully’);
exception
when others then
dbms_output.put_line(’ Responsibility is not added due to ‘ || SQLCODE || substr(SQLERRM, 1, 100));
Rollback;

end;

To get value for ‘Responsablity_Application_Short_Name’ and ‘Responsibility_Key’ Parameters you need to run following sql Statement by Using APPS User Name

SELECT FAV.APPLICATION_SHORT_NAME, FAV.APPLICATION_NAME,FRV.RESPONSIBILITY_KEY, FRV.RESPONSIBILITY_NAME

FROM FND_APPLICATION_VL FAV, FND_RESPONSIBILITY_VL FRV
WHERE FRV.APPLICATION_ID=FAV.APPLICATION_ID
ORDER BY FRV.RESPONSIBILITY_NAME

@Advanced Supply Chain Planner

EXAMPLE CODE 

To add Responsibility of @Advanced Supply Chain Planner to User Ahmad Bilal

BEGIN
fnd_user_pkg.addresp (’AHMADBILAL’,
‘MSC’,
‘ADV_SUPPLY_CHAIN_PLANNING’,
‘STANDARD’,
‘Test By Script’,
SYSDATE,
SYSDATE + 100
);
COMMIT;
DBMS_OUTPUT.put_line (’Responsibility Added Successfully’);
EXCEPTION
WHEN OTHERS
THEN
DBMS_OUTPUT.put_line (   ‘ Responsibility is not added due to ‘
|| SQLCODE
|| SUBSTR (SQLERRM, 1, 100)
);
ROLLBACK;
END;

Examples to use in setting up modifiers in Oracle Advance Pricing

Example 1: Line level discount of 8% discount on all products

File Path: $QP_TOP/patch/115/sql/QPXEXDS1.sql

Example 2: Buy more than 5 quantities of item 62081 , Get 8% discount

File Path: $QP_TOP/patch/115/sql/QPXEXDS2.sql

Example 3: For customer 1000, Buy more than 2 Units of item 62081, Get 10% discount

File Path: $QP_TOP/patch/115/sql/QPXEXDS2.sql

Example 4: Charge 2% surcharge on all products

File Path: $QP_TOP/patch/patch/115/sql/QPXEXSUR.sql

Example 5: For customer 1000, Buy more than 2 units of item 62081, Get a Payment Term 2/10 NET 30

File Path: $QP_TOP/patch/115/sql/QPXEXTSN.sql

RFID Enabled Shipping and Receiving

 

RFID Enabled Shipping & Receiving

Above diagram outlines the planned flow of an RFID Receipt. The huge potential of RFID is that data capture does not require user interaction or line of sight. So transaction can be processed without any manual user interaction with the system.

Here the action of a receiving dock worker driving through a doorway which is covered by an RFID reader will automatically trigger an ASN Receipt. Similar processes are possible for intra-warehouse moves, shipping, etc.

To make this work several components are required:

  1. Middle ware is required to interface with the RFID Reader hardware and to provide the appropriate filtering so that duplicate or erroneous reads are eliminated.
  2. The information from the read must be interpreted as a specific business event. This means that the ID of the tag must be resolved into some data on the system and based on the state of that data, the transaction to be processed can be deduced. For example, if you read an ID at a reader in Receiving, and that ID is associated with an LPN on an ASN that you have received from your supplier, then the transaction to be processed is an ASN Receipt of that LPN.
  3. The application must process that transaction using a API which does not require user input.
  4. Any results or exceptions must be processed and these made available (via the middle ware) to the light trees, buzzers, etc to single results to the user.

The above framework is currently being prototyped for possible inclusion in a future release.

Reference: - Oracle Apps World

Supply Chain Footprint in Oracle Application

1. Supply Chain Planning

MRP/Supply Chain Planning

Demand Planning

Advanced Supply Chain Planning

Constraint and Inventory Optimization

Global Order Promising

Manufacturing Scheduling

Inventory Optimization

Collaborative Planning

Transportation Planning

Supply Chain Intelligence as an independent module

2. Order Management

Order Management

Configurator

iStore

TeleSales

Receivables

Advanced Pricing

Quoting & Proposals

Trade Management

Release Management

Sales Contracts

3. Procurement

Purchasing

Payables

iProcurement

Sourcing

iSupplier Portal

Procurement Contracts

  1. Manufacturing

Discrete Manufacturing

- Project Manufacturing

- Flow Manufacturing

- Project Contracts

- Shop Floor Management

Process Manufacturing

  1. Logistics

Inventory Management

Mobile Supply Chain Apps

Warehouse Management

Transportation Execution

6. Service

Tele Service

Depot Repair

Field Service

- Spares Management

- Advanced Scheduler

- Mobile Field Service

iSupport

Service Contracts

7. Maintenance Management

Enterprise Asset Management

Property Manager

Sub Queries in Oracle SQL and their types

What is a Sub Query?

A query nested inside another query and it is used when a query is based on an unknown value. A sub query is a complete query nested in the SELECT, FROM, HAVING, or WHERE clause of another query the sub query must be enclosed in parentheses and have a SELECT and a FROM clause, at a minimum.

What are the types of Sub Queries?

Single Row Sub Query

Return the outer query one row of results that consists of one column

Multiple Row Sub Query

Return to the outer query more then one row of the results it Require use of IN, ANY, ALL, or EXISTS operators

Multiple Column Sub Query

Return to the outer query more then one row of the results in this type of query Column list on the left side of operator must be in parentheses it use the IN operator for WHERE and HAVING clauses

Correlated Sub Query

Reference a column in the outer query and execute the sub query once for every row in outer query

Uncorrelated Sub Query

Execute the sub query first and passes the value to outer query

 

Source Oracle Introduction to Database

Posted in SQL. No Comments »

What is Trading Community Architecture in Oracle Application 11i

Oracle Trading Community Architecture (TCA) is a data model that allows you to manage complex information about the parties, or customers, who belong to your commercial community, including organizations, locations, and the network of hierarchical relationships among them. This information is maintained in the TCA Registry, which is the single source of trading community information for Oracle E-Business Suite applications. These applications, as well as TCA itself, provide user interfaces, batch data entry functionality, and other features for you to view, create, and update Registry information (Source Overview Oracle® Trading Community Architecture User Guide)

The parties in TCA could be one of following four types:

  1. Organization e.g. Dawlance
  2. Person e.g. Ahmad Bilal
  3. Group e.g. IEEE Consortium
  4. Relationship e.g. Ahmad Bilal at Dawlance.

Following are main components of Oracle TCA

  1. Contacts
  2. Locations
  3. Party Layer
    1. Sites
    2. Relationships
  4. Account Layer
  5. Customer Accounts

Main Tables in TCA

  1. HZ_PARTIES
  2. HZ_LOCATIONS
  3. HZ_PARTY_SITES
  4. HZ_CUST_ACCT_SITES_ALL
  5. HZ_CUST_SITE_USES_ALL
  6. HZ_CUST_CONTACT_POINTS

Oracle Application Forms Development / Modification

  1. Copy libraries.

For modification or development in oracle application, the following libraries are required to open or change application form and must be copied from $AU_TOP/resource to the local drive e.g. c:\APPS_LIBRARY where you are trying to open Form or custom.pll.

    1. APPCORE.pll
    2. APPCORE2.pll
    3. CUSTOM.pll
    4. APPFLDR.pll
    5. VERT.pll
    6. GLOBE.pll
    7. JA.pll
    8. JE.pll
    9. JL.pll
    10. GHR.pll
    11. FNDSQF.pll
    12. APPDAYPK.pll
    13. PSAC.pll
    14. PQH_GEN.pll
    15. OPM.pll

  1. Set The Forms Path.

Open Registry Editor by using regedit and edit HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\HOME\FORMS60_PATH and point to the location where the libraries above where copied. “C:\APPS_LIBRARY” in this example, without quotes

  1. Add the FORMS60_PATH key to the environment path.

This is accessed by right-clicking “My Computer”, selecting properties, clicking on the advanced tab, selecting Environment Variables. Set value to C:\APPS_LIBRARY

Regenerating Forms, Libraries, and Menus by using f60gen

Some times it is necessary to regenerate forms, libraries, or menus to fix issues with them, to synchronize the generated object with the underlying database object, or after applying patch. ADADMIN can be used for same

The f60gen utility can be used to manually regenerate forms, libraries, and menus.

The syntax for the f60gen command is as

f60gen module=<source form name> userid=APPS/<APPS password> output_file=<executable form name> module_type=form batch=yes compile_all=special

For Instance I want to generate sale order forms in ONT schema using f60gen syntax would be like

OEXOEORD.fmb form:

$cd $AU_TOP/forms/US

$f60gen module= OEXOEORD.fmb module_type=form \

output_file=$ONT_TOP/forms/US/OEXOEORD.fmx userid=APPS/APPS module_type=form batch=yes compile_all=special

Note:- Before generating the form, menu, or library, locate the source and generated files using the Linux command or by using WINSCP.