Here you go

Wednesday, March 23, 2016

Query to find all EBS Personalizations

EBS Personalizations


SELECT
    FA.APPLICATION_NAME,
    FOM.FORM_NAME,
    FOM_TL.USER_FORM_NAME,
    PER.FUNCTION_NAME,
    PER.SEQUENCE,
    PER.DESCRIPTION,
    PER.TRIGGER_EVENT,
    PER.TRIGGER_OBJECT,
    PER.CONDITION,
    PER.ENABLED PERSONALIZATION_ENABLED,
    PER_CA.SEQUENCE ACTION_SEQ,
    PROPERTY_VALUE,
    PER_CA.TARGET_OBJECT,
    PER_CA.ENABLED  ACTION_ENABLED,
    PER_CA.ACTION_TYPE,
    OBJECT_TYPE ACTION_OBJECT_TYPE,
    MESSAGE_TYPE,
    MESSAGE_TEXT
FROM
    FND_FORM_CUSTOM_RULES   PER,
    FND_FORM                FOM,
    FND_FORM_TL             FOM_TL,
    FND_APPLICATION_VL      FA,
    FND_FORM_CUSTOM_ACTIONS PER_CA
WHERE
    FOM.FORM_NAME           =   PER.FORM_NAME   
AND FOM.FORM_ID             =   FOM_TL.FORM_ID   
AND FA.APPLICATION_ID       =   FOM_TL.APPLICATION_ID
AND PER.ID                  =   PER_CA.RULE_ID 
ORDER BY 1,2,3,4,5

Thursday, March 17, 2016

Order Management Sample Scripts

Order Management:
Order Create/Update/Delete Scripts

Note 746783.1 Script to Create an order with one line
Note 746796.1 Script to add a new line to an existing order
Note 1964871.1 Script to add a new line with an adjusted selling price to an existing order
Note 746797.1 Script to cancel an existing Order
Note 746798.1 Script to cancel an existing Order line
Note 746802.1 Script to update an existing Order line
Note 746803.1 Script to reserve order line
Note 746804.1 Script to unreserve order line
Note 746808.1 Script to splitting An Order Line
Note 746809.1 Script to delete an Order
Note 746810.1 Script to delete a Line
Note 470741.1 Script to book Order
Note 746811.1 Script to apply Hold in a sales order
Note 746812.1 Script to release Hold in a sales order
Note 292743.1 Script to create an RMA
Note 746172.1 Script to import an Order with skipped Line number
Note 745369.1 Script to update Header details using OE_ORDER_PUB For R12
Note 836332.1 Script To Update Order Header Using OE_ORDER_PUB. Update_Header
Note 959783.1 How Does One Use The OE_ORDER_PUB.PROCESS_ORDER Api For Manual Freight Application at Order Level?
Note 394315.1 How Does One Add Config Items To An Existing Model Using Process_Order API ?
Note 291055.1 Release HOLD On Item At Line Leaving the HOLD SOURCE Via Public API
Note 333429.1 How To Import Order With Price Adjustments
Note 364316.1 Import Credit Card Payments When Using Process_Order API
Note 367875.1 How Does One Cancel An Order Using Process_Order API ?
Note 372598.1 How Does One Apply Hold On The Order Using Process Order API ?
Note 394124.1 How Does One Split An Order Line Using Order Import ?
Note 405251.1 How Does One Update Serial Number On Existing Order Using Order Import ?
Note 436215.1 OEOIMP: Script To Populate Order Import Interface Tables From Existing Sales Order
Note 444040.1 How does one apply a hold via Order Import on an existing order?
Note 458752.1 How Does One Import Order Lines On Existing Internal Order Using Order Import ?
Note 746668.1 How To Create An RMA Order That References An Existing Order?
Note 746677.1 How To Create An Order For A Simple ATO Model?
Note 755135.1 How to update Unit Price using API?
Note 959783.1 How Does One Use The OE_ORDER_PUB.PROCESS_ORDER Api For Manual Adjustment or Freight Application?
Note 1128445.1 Need Script To Apply Hold Via Oe_order_pub.Process_order in R12
Note 1901947.1 How Does One Lock An Order Using Process_Order API?

Friday, March 11, 2016

Oracle Time and Labour Recommended APIs





APIs in Oracle Time & Labor

Application Programmatic Interfaces (APIs) are a logical grouping of all external process routines. Oracle Time & Labor includes a set of PL/SQL packages, procedures and functions that provide an open interface to the database.
See: APIs in Oracle HRMS, Implementing Oracle HRMS. See also the Oracle Applications System Administrator's Guide.
all of which can be found on MetaLink
The following table shows the publicly callable business process APIs delivered with Oracle Time & Labor.

Reference : Oracle Document : 216773.1

Package Name File Name Business Process Supported by Data Pump
hxc_timestore_deposit hxctsdp.pkb create_time_entry, update_building_block, create_attribute, update_attribute, execute_deposit_process, DELETE_TIMECARD No
hxc_recurring_periods_api hxchrpapi.pkh create_recurring_periods, update_recurring_periods, delete_recurring_periods No
hxc_time_recipient_api hxchtrapi.pkh create_time_recipient, update_time_recipient, delete_time_recipient No
hxc_time_source hxchtsapi.pkh create_time_source,
update_time_source,
delete_time_source
No
hxc_self_service_timecard_api hxctcmapi.pkh timecard_pump No
hxt_gen_aai hxtgenai.pkh create_otlr_add_assign_info, update_otlr_add_assign_info No
hxt_time_collection hxttcol.pkh record_time No

Tuesday, March 8, 2016

Oracle EBS Assign Parent Organization to Child Organization

Oracle EBS Organizational Hierarchy


DECLARE
   l_effective_date             DATE := TO_DATE ('01-JAN-1951', 'DD-MON-YYYY');
   l_org_structure_version_id   NUMBER := NULL;
   l_business_group_id          NUMBER := NULL;
   l_inactive_org_warning       BOOLEAN;
   l_org_structure_element_id   NUMBER := NULL;
   l_object_version_number      NUMBER := NULL;
   l_org_child_id               NUMBER := NULL;
   l_org_parent_id              NUMBER := NULL;
BEGIN
   -- Get Structure Version ID
   BEGIN
      SELECT posv.org_structure_version_id, pos.business_group_id
        INTO l_org_structure_version_id, l_business_group_id
        FROM per_organization_structures pos, per_org_structure_versions posv
       WHERE UPPER (pos.name) = 'XXXX ORGANIZATION HIERARCHY'
             AND pos.primary_structure_flag = 'Y'
             AND posv.organization_structure_id =
                    pos.organization_structure_id
             AND posv.version_number = 1
             AND pos.business_group_id =
                    FND_PROFILE.VALUE ('PER_BUSINESS_GROUP_ID');
   EXCEPTION
      WHEN OTHERS
      THEN
         l_org_structure_version_id := NULL;
         l_business_group_id := NULL;
   END;
   -- Get Organization Parent
   BEGIN
      SELECT organization_id
        INTO l_org_parent_id
        FROM hr_all_organization_units
       WHERE UPPER (name) = 'SECURITY AND ROYAL GUARD'
             AND SYSDATE BETWEEN date_from
                             AND NVL (date_to,
                                      TO_DATE ('31-DEC-4712', 'DD-MON-YYYY'));
   EXCEPTION
      WHEN OTHERS
      THEN
         l_org_parent_id := NULL;
   END;
   -- Get Organization Child
   BEGIN
      SELECT organization_id
        INTO l_org_child_id
        FROM hr_all_organization_units
       WHERE UPPER (name) =
                '1021106 -LEBANON PALACE - BAHAR SAFI-SECURITY AND ROYAL GUARD'
             AND SYSDATE BETWEEN date_from
                             AND NVL (date_to,
                                      TO_DATE ('31-DEC-4712', 'DD-MON-YYYY'));
   EXCEPTION
      WHEN OTHERS
      THEN
         l_org_child_id := NULL;
   END;
   IF     l_org_structure_version_id IS NOT NULL
      AND l_org_child_id IS NOT NULL
      AND l_org_parent_id IS NOT NULL
   THEN
      BEGIN
         HR_HIERARCHY_ELEMENT_API.
          create_hierarchy_element (
            p_validate                   => FALSE,
            p_effective_date             => l_effective_date,
            p_organization_id_parent     => l_org_parent_id,
            p_org_structure_version_id   => l_org_structure_version_id,
            p_organization_id_child      => l_org_child_id,
            p_business_group_id          => l_business_group_id,
            p_pos_control_enabled_flag   => 'N',
            p_inactive_org_warning       => l_inactive_org_warning,
            p_org_structure_element_id   => l_org_structure_element_id,
            p_object_version_number      => l_object_version_number);
         COMMIT;
         DBMS_OUTPUT.
          put_line (
            l_org_structure_element_id
            || ' has been created successfully !!! ');
      EXCEPTION
         WHEN OTHERS
         THEN
            DBMS_OUTPUT.put_line ('Inner Block Exception: ' || SQLERRM);
      END;
   ELSE
      DBMS_OUTPUT.put_line ('ID''s not found !!!!');
   END IF;
EXCEPTION
   WHEN OTHERS
   THEN
      DBMS_OUTPUT.put_line ('Main Block Exception: ' || SQLERRM);

END;