Sunday, 1 May 2011

Query for Subledger Transfer to GL


Query for Subledger Transfer to GL
If you want to get details of different journals transferred to GL, use this to get the result. You can also fine tune with period , currency or clearing company code or Journal Type.
Here is the query:

SELECT   gjh.period_name            "Period name"
        ,gjb.name                   "Batch name"
        ,gjjlv.header_name          "Journal entry"
        ,gjjlv.je_source            "Source"
        ,glcc.concatenated_segments "Accounts"
        ,mmt.subinventory_code      "Subinventory"
        ,glcc3.segment4             "Costcenter"
        ,gjjlv.line_entered_dr      "Entered debit"
        ,gjjlv.line_entered_cr      "Entered credit"
        ,gjjlv.line_accounted_dr    "Accounted debit"
        ,gjjlv.line_accounted_cr    "Accounted credit"
        ,gjjlv.currency_code        "Currency"
        ,mtt.transaction_type_name  "Transaction type"
        ,TO_CHAR(mta.transaction_id)"Transaction_number"
        ,mta.transaction_date       "Transaction_date"
        ,msi.segment1               "Reference"
FROM  apps.gl_je_journal_lines_v gjjlv,
      gl_je_lines gje,
      mtl_transaction_accounts mta,
      mtl_material_transactions mmt,
      mtl_system_items_b msi,
      gl_je_headers gjh,
      gl_je_batches gjb,
      apps.gl_code_combinations_kfv glcc,
      apps.gl_code_combinations_kfv glcc2,
      mtl_secondary_inventories msin,
      mtl_transaction_types mtt,
      MTL_SECONDARY_INVENTORIES cost,
      gl_code_combinations glcc3
WHERE       gjjlv.period_name  BETWEEN 'NOV-2008' AND 'DEC-2008'
AND         gje.code_combination_id = gje.code_combination_id
AND         gjjlv.line_je_line_num  = gje.je_line_num
AND         gl_sl_link_table   = 'MTA'
AND         gjjlv.je_header_id = gje.je_header_id
AND         mmt.inventory_item_id = msi.inventory_item_id
AND         gje.je_header_id = gjh.je_header_id
AND         gjh.je_batch_id = gjb.je_batch_id
AND         mmt.organization_id   = msi.organization_id
AND         mmt.organization_id    = msin.organization_id
AND         mmt.subinventory_code= msin.secondary_inventory_name
AND         mta.gl_sl_link_id= gje.gl_sl_link_id
AND         mta.reference_account = glcc.code_combination_id
AND         msin.expense_account = glcc2.code_combination_id
AND         mmt.transaction_id = mta.transaction_id
AND         mtt.transaction_type_id = mmt.transaction_type_id
AND         cost.organization_id(+) = mmt.organization_id
AND         cost.secondary_inventory_name(+) = mmt.subinventory_code
AND         glcc3.code_combination_id(+) = 
 
          cost.expense_account 
 

Oracle Pricing Module – A Note


Oracle Pricing Module – A Note


It provides an advanced, highly flexible pricing engine that executes pricing calculations for Oracle Order Management. Some of the features which Pricing allows you are:
  • Apply a surcharge
  • Discounts by percentage or amount
  • Calculate the price of order lines using list prices specified in price lists and pricing formulas.
  • Apply price modifiers/qualifiers that you define to a line.
  • Calculate freight charges and show it as a separate component in Order Management
Concepts in pricing
Price Lists
Price lists are essential to ordering products because each item entered on an order must have a price. Each price list contains basic list information like price list name, effective dates, currency, pricing controls,rounding factor,shipping defaults such as freight terms and freight carrier,and one or more pricing lines, pricing attributes.
Pricing Formulas
Formulas are mathematical expressions that the pricing engine uses to determine the list prices of items and the discounts that apply to those items.
Price List Qualifiers/Modifiers
Price List Qualifiers/Modifiers Modifiers enable you to setup price adjustments (for example, discounts and surcharges) and freight and special charges (modifier lists) that the pricing engine applies immediately to pricing requests.Using modifiers you can:
  • Setup a modifier list with multiple modifier lines
  • Create eligibility rules for modifiers by assigning list and line level qualifiers
  • Qualifiers help the pricing engine to determine who is eligible for the modifier.
Pricing Attributes
Pricing attributes are characteristics of products and services that specify when the characteristics help to determine the price of a product or service. Distance, age of a related product, customer class, product family group, and level of service are examples of pricing attributes. You can specify one or a combination of pricing attributes and assign them to a product. At order entry time, the pricing engine evaluates the attributes you have specified during formula setup to calculate the price.
Steps for pricing an order
  • Create a price list (one time)
  • This includes creation of price list headers and lines(which associates items to a particular price)
  • Create pricing formulas (optional)
  • Create price list modifiers/qualifiers (optional)
  • Create an order.
  • Attach the price list to that order.

Oracle Pricing API


Oracle Pricing API


Some time back, I had opportunity to work some conversion in oracle pricing module; Though It was pretty simple task for mine only price list and qualifier need to convert. A week back, when a friend of mine asked some information about Pricing Module, I thought to share the information, which I collected at that time. So here are the lists of Application Program Interfaces (APIs) that Oracle Pricing has. These APIs can be used in custom programs or for doing conversion or migration activity for using some of the pricing functions.
  • QP_Price_formula_PUB.Get_Price_Formula (Formula Calculation API): The Formula Calculation package consists of entities to calculate the value of a formula.
  • QP_Price_formula_PUB.Process_Price_Formula (Update Formula Prices API): The Update Formula Prices package consists of entities to update formula prices.
  • QP_CUSTOM.Get_Custom_Price (Get Custom Price API): You may add custom code to this customizable function. The pricing engine while evaluating a formula that contains a formula line (step) of type "function" calls this API.
  • QP_PREQ_GRP.Price_Request (Price Request API): The Price Request Application Program Interface (API) is a public API that allows you to get a base price and to apply price adjustments, other benefits, and charges to a transaction.
  • QP_MODIFIERS_PUB.Process_Modifiers (Business Object for Modifier Setup API): The Business Object for Modifier Setup package consists of entities to set up modifiers.
  • QP_QUALIFIER_RULES_PUB.Process_Qualifier_Rules (Qualifiers API): The Qualifiers package consists of entities to set up qualifiers.
  • QP_ATTR_MAPPING_PUB. Build_Contexts (Attribute Mapping API): The Attribute Mapping package consists of entities to map attributes.
  • QP_Price_List_PUB.Process_Price_List (Price List Setup API): The Price List Setup package consists of entities to set up price lists.

Oracle E-Business Suite Release 12.1 Now Available


Oracle E-Business Suite Release 12.1 Now Available



It was big news MAY 4TH evening when Oracle announced general availability of the Oracle(R) E-Business Suite Release 12.1. Therefore the product which you are going to use is R 12.1.1
R12This time too the focus of R12.1 is again some of existing product enhancements across human resources, supply chain management, procurement, projects, master data management, customer relationship management and financials.
Additionally, R12.1 also features industry specific features and solutions that help drive greater value across the companies. Industries with significant new functionality advancements include Wholesale Distribution, Public Sector, High Technology, Engineering & Construction, Life Sciences, Retail, Professional Services, Communications, Consumer Goods and Utilities.
Here is extract of information for Release 12.1 Details and Features from Oracle website
  • The Oracle E-Business Suite Release 12.1 helps companies achieve rapid value by offering stand-alone solutions that complement existing Oracle E-Business Suite 11i or Release 12 environments. Customers can take advantage of rapid value solutions without having to upgrade to this latest release.
    • There are 9 new products been added in this version.
    • R12.1 will be available as stand-alone solutions available for some of major products like
      • Supply Chain Management
      • Oracle Sourcing On Demand
      • Oracle Incentive Compensation
      • Oracle Warehouse Management.
    • Release 12.1 will be delivers integrated analytics from Oracle BI Applications.
  • Some of existing module have been enhanced, which includes
    • Enhancement in the some of the key features of the R12.1 which include an integrated talent management solution with enhancements to Recruiting, Succession Planning, and Performance and Learning Management.
    • A new addition in product called Oracle Landed Cost Management will give organizations financial visibility into their extended supply chain costs.
  • R12 EBS also brings some rich industry-specific solutions that help companies strengthen their position in the market.
    • Distributors will benefit from greater visibility into ROI of promotional funds, accrued assets, the effect of supplier price changes and related liabilities with Oracle Supplier Ship and Debit and Oracle Price Protection for Wholesale Distribution.
    • Oracle Site Hub a new application helps organizations centralize information to help eliminate the problems associated with fragmented, incomplete and inconsistent site data resulting from rapid business expansion or mergers and acquisitions.
    • Retail industry can now leverage to Oracle Product Information Management for Retail (PIM for Retail) which is centralize product information from heterogeneous systems into a single view that can be used across all functional departments.
    • Oracle E-Business Suite Release 12.1 provides out of the box Federal accounting support with Project Accounting for automating funds consumption and billing in compliance with funding rules, supporting advance processing and ultimately helping to reduce overhead.
    • Oracle Subcontractor Payments for Engineering & Construction helps owners and general contractors manage cash flow and ensure their subcontractors are satisfying contract deliverables by controlling the payment of subcontractor invoices.

Saturday, 30 April 2011

AOL frequently asked questions


AOL frequently asked questions 

Where do concurrent request logfiles and output files go?

            The concurrent manager first looks for the environment variable $APPLCSF. If this is set, it creates a path using two other environment variables: $APPLLOG and $APPLOUT

            It places log files in $APPLCSF/$APPLLOG
       
            Output files go in $APPLCSF/$APPLOUT
       
So for example, if you have this environment set:

            $APPLCSF = /u01/appl/common
            $APPLLOG = log
            $APPLOUT = out

            The concurrent manager will place log files in /u01/appl/common/log, and output files in /u01/appl/ common/out

            Note that $APPLCSF must be a full, absolute path, and the other two aredirectory names.

            If $APPLCSF is not set, it places the files under the product top of the application associated with the request.
       
            So for example, a PO report would go under $PO_TOP/$APPLLOG and $PO_TOP/$APPLOUT

            Logfiles go to:  /u01/appl/po/9.0/log
            Output files to: /u01/appl/po/9.0/out
           
            Of course, all these directories must exist and have the correct permissions. Note that all concurrent requests produce a log file, but not necessarily an output file.      

What are the logfile and output file naming conventions?
       
            Logfiles: l<request id>.req
            Output files: If $APPCPNAM is not set:  <username>.<request id>
                                    If $APPCPNAM = REQID:     o<request id>.out
                                    If $APPCPNAM = USER:      <username>.out
                     
            Where: <request id> = The request id of the concurrent request
            And: <username> = The id of the user that submitted the request
                       
How do I check if Multi-org is installed?

            SELECT multi_org_flag FROM fnd_product_groups;

How do I find out what the currently installed release of Applications is?

            SELECT release_name FROM fnd_product_groups
               
How do I find the name of a form?
           
            GUI: Use Help->About Oracle Applications
                        Scroll down to find the form name
           
            Character: Use \Help->Version
       
How do I lookup ORA errors? (and TNS errors)
       
            Use: oerr ora XXXX
            or:  oerr tns XXXX     
       
            where XXXX is the error number (This also supports a number of other error types. Use the 3-letter  error prefix in place of 'ora')
       
How do I generate a message file (usaeng.msb)?
       
            Use: FNDMDCMF applsys/pwd 0 Y APP usaeng
            where: applsys/pwd is the APPLSYS user and password and APP is the short name of the application (like PO or INV)


PACKAGE AD_DD

package ad_dd as
/* $Header: addds.pls 110.3 98/09/18 18:24:23 porting ship $ */                                    

            procedure register_table (p_appl_short_name in varchar2, p_tab_name in varchar2,
p_tab_type in varchar2, p_next_extent in number default 512, p_pct_free in number default 10, p_pct_used in number default 70);
                                                                                                    
            procedure register_column (p_appl_short_name in varchar2, p_tab_name in varchar2,
p_col_name in varchar2, p_col_seq in number, p_col_type in varchar2,  p_col_width in number,
p_nullable in varchar2, p_translate in varchar2, p_precision in number default null, p_scale in number default null);
                                                                                                   
            procedure register_primary_key(p_appl_short_name in varchar2, p_key_name in varchar2, p_tab_name in varchar2, p_description  in varchar2, p_key_type in varchar2 default 'S',p_audit_flag in varchar2 default 'N', p_enabled_flag in varchar2 default 'Y');
                                                                                                   
            procedure update_primary_key(p_appl_short_name in varchar2, p_key_name in varchar2, p_tab_name in varchar2, p_description in varchar2, p_key_type in varchar2 default null,p_audit_flag in varchar2 default null, p_enabled_flag in varchar2 default null);                           
                                                                                                    
            procedure register_primary_key_column(p_appl_short_name in varchar2, p_key_name in varchar2, p_tab_name in varchar2, p_col_name in varchar2, p_col_sequence in number);                                   
                                                                                                    
            procedure delete_primary_key_column(p_appl_short_name in varchar2, p_key_name in varchar2, p_tab_name in varchar2, p_col_name in varchar2 default null);                       
                                                                                                   
            procedure delete_table  (p_appl_short_name in varchar2, p_tab_name in varchar2);
                                                                                                    
            procedure delete_column (p_appl_short_name in varchar2, p_tab_name in varchar2, p_col_name in varchar2);
                                                                                                  
end ad_dd;                                                     
                                 
CONCURRENT PROCESSING IN ORACLE APPS.

Definitions
What is a Concurrent Program ?

            An instance of an execution file, along with parameter definitions and incompatibilities. Several concurrent programs may use the same execution file to perform their specific tasks, each having different parameter defaults and incompatibilites.

What is a Concurrent Program Executable ?

            An executable file that performs a specific task. The file may be a program written in a standard language, a reporting tool or an operating system language.

What is a Concurrent Request ?

             request to run a concurrent program as a concurrent process.

What is a Concurrent Process ?

            n instance of a running concurrent program that runs simultaneously with other concurrent processes.

What is a Concurrent Manager ?

             program that processes user’s requests and runs concurrent programs. System Administrators define concurrent managers to run different kinds of requests.

What is a Concurrent Queue ?

            ist of concurrent requests awaiting processing by a concurrent manager.

What is a Spawned Concurrent program ?

             Concurrent program that runs in a separate process than that of the concurrent manager that starts it. L/SQL stored procedures run in the same process as the concurrent manager; use them when spawned concurrent programs are not feasible.



LIFE CYCLE OF CONCURRENT REQUESTS
           
What are the phases and statuses through which a concurrent prequest runs through?

A concurrent request proceeds through three, possibly four, life cycle stages or phases: 

Pending                                                Request is waiting to be run
Running                                                Request is running
Completed                                            Request has finished
Inactive                                                Request cannot be run
            Within each phase, a request's condition or status may change.  Below appears a listing of each phase and the various states that a concurrent request can go through. 

Concurrent Request Phase and Status   

Phase                          Status                           Description
PENDING                       Normal                           Request is waiting for the next available manager.
                                   Standby                          Program to run request is incompatible with other program(s) currently running.
                                   Scheduled                      Request is scheduled to start at a future time or date.
                                   Waiting                         A child request is waiting for its Parent request to mark it ready to run. For example, a report in a report set that runs sequentially must wait for a prior report to complete.

RUNNING                      Normal                           Request is running normally.
                                   Paused                          Parent request pauses for all its child requests to complete. For   example, a report set pauses for all reports in the set to complete.
                                   Resuming                      All requests submitted by the same parent request have completed running. The Parent request is waiting to be restarted.
                                  Terminating                    Running request is terminated, by selecting Terminate in the Status field of the Request Details zone.

COMPLETED                 Normal                           Request completes normally.
                                  Error                             Request failed to complete successfully.
                                  Warning                        Request completes with warnings.  For example, a report is generated successfully but fails to print.
                                  Cancelled                      Pending or Inactive request is cancelled, by selecting Cancel in the Status field of the Request Details zone.
                                  Terminated                   Running request is terminated, by selecting Terminate in  the Status field of the Request Details zone.

INACTIVE                    Disabled                        Program to run request is not enabled. Contact your system administrator.
                                 On Hold                        Pending request is placed on hold, by selecting Hold in the Status field of the Request Details zone.
                                 No Manager                  No manager is defined to run the request.  Check with your system administrator.

What is the difference between Request group and request set ?

REQUESTS GROUPS AND REQUEST SETS

            Reports and concurrent programs can be assembled into request groups and request sets.

1.      A request group is a collection of reports or concurrent programs. A System Administrator defines report groups in order to control user access to reports and concurrent programs.  Only a System Administrator can create a request group.

2.      Request sets define run and print options, and possibly, parameter values, for a collection of reports or concurrent program.  End users and System Administrators can define request sets.  A System Administrator has request set privileges beyond those of an end user. 

            Standard Request Submission and Request Groups

            Standard Request Submission is an Oracle Applications feature that allows you to select and run all your reports and other concurrent programs from a single, standard form.  The standard submission form is called Submit Requests, although it can be customized to display a different title. 

3.      The reports and concurrent programs that may be selected from the Submit Requests form belong to a request security group, which is a request group assigned to a responsibility. 

4.      The reports and concurrent programs that may be selected from a customized Submit Requests form belong to a request group that uses a code. 

            In summary, request groups can be used to control access to reports and concurrent programs in two ways; according to a user's responsibility, or according to a customized standard submission (Run Requests) form.


Standard Request Submission


Standard Request Submission

  • Provides standard interface for running and monitoring reports.
  • Single form to submit any request, concurrent program. Another form to see report's progress and to review report online.
  • Submit Request form: easy-to-use interface.
  • Automatic Resubmission.
  • Request Sets: define sets of reports, Submit an entire set at same time.
  • Request Set options: Run order, printer, no. of copies etc.
  • Request Set Log File:Single log file containing the completion status of all reports in set.
  • Viewing Requests: Monitor report's progress using View Request form.

  • Child Request: or a sub-request submitted by any other concurrent request(Parent Request)

  • Parameter: A value you specify when you run a request.
* A request set is parent request and all reports in set are child requests
Value Set: A set of values against which AOL validates values, the ned user enters when running a concurrent program.

Controlling Access to Reports:
  • Create related group of reports and request sets.
  • Define responsibility and assign a report security group to that responsibility.
Request Sets:
  • A collection of reports/programs that are grouped together. Allow to submit reports or programs in a request set all at once using a single transaction.
  • Request set can be defined to submit requests depending on the completion status of previously submitted requests in the set.
Stage:
  • Component of a request set used to group requests within a set. All requests in a stage are executed in parallel. Request set executes one stage at a time., following links from stage to stage.
  • Links that are followed depend on the completion status of the individual stages. A stage completes when all the requests contained in the stage have completed.
  • PL/SQL functions calculate the completion status of a stage
  • Three status of a stage:
  1. Success
  2. Warning
  3. Error
Stage Evaluation function:
  • Provided by AOL, computes the stage completion status from the completion statuses of the specified requests in set.
  • Function returns a
  1. Success: If all requests completed with a status of "Success".
  2. Warning: If one or more requests in set completed with warning and no request completed with error.
  3. Error: If any request in set completed with error.