Tuesday, 19 April 2011

Diff Between InboundInterface and Conversion:


Diff Between InboundInterface and Conversion:
===================== ================

Interface         Conversion
=========         ==========

1)Interface will be used to upload the   1)Conversion is one-Time Data Transfer
  data multiple times.
 Regularley every week or month or day

2)Client Will be using Legacy system. 2)Client will use Only ORacle Applications.
  and also Oracle Applications                      once data is uploaed from legacy then legacy 
       system will be closed.

3)We will not be knowing the Data file  3)here we will be knowing the data file volume
  volume.             exactley.
4)In Customization and as well as  4)Normally in the Implementation Porjects we 
 implementation projectes we will be      will be using.
  developing Interface.

PURCHASE ORDER INTERFACE(CODE)


PURCHASE ORDER INTERFACE                                                       
                                                                     
                                                                     
                                             
 CREATE OR REPLACE PROCEDURE PO_Int(Errbuf  OUT VARCHAR2,
                           Retcode OUT VARCHAR2) AS
CURSOR c1 IS SELECT * FROM xx_staging_headers;
CURSOR c2 IS SELECT * FROM xx_staging_lines1;
l_vendor_id number(10);
l_item      varchar2(150);
l_flag     varchar2(4) default 'A';
l_msg      varchar2(200);
BEGIN
DELETE FROM PO_HEADERS_INTERFACE;
DELETE FROM PO_LINES_INTERFACE;
COMMIT;
FOR x1 IN c1 LOOP
 BEGIN
   SELECT vendor_id
   INTO   l_vendor_id
   FROM po_vendors
   WHERE vendor_name = x1.VENDOR_NAME;
--   AND   ORG_ID = Fnd_Profile.Value('ORG_ID');
 EXCEPTION
   WHEN OTHERS THEN
    l_flag        := 'E';
    l_vendor_id := 0;
    l_msg       := 'Vendor id is Not in SYSTEM';
 END;
  IF l_flag != 'E' THEN
     INSERT INTO po_headers_interface
   (
   INTERFACE_HEADER_ID
  ,BATCH_ID
  ,ACTION
   ,ORG_ID
  ,DOCUMENT_TYPE_CODE
  ,CURRENCY_CODE
  ,AGENT_NAME
  ,VENDOR_NAME
  ,VENDOR_SITE_CODE
  ,SHIP_TO_LOCATION
  ,BILL_TO_LOCATION
  ,creation_date
  ,APPROVAL_STATUS
  ,APPROVED_DATE
  ,FREIGHT_CARRIER
  ,FOB
  ,FREIGHT_TERMS
)
VALUES
(
   x1.INTERFACE_HEADER_ID
  ,x1.batch_id
  ,x1.action
  ,x1.org_id                                    --"Puffer-Sweiven"
  ,x1.document_type_code                            --done
  ,x1.CURRENCY_CODE                                              --done
  ,x1.AGENT_NAME                  --done
  ,x1.VENDOR_NAME
  ,x1.VENDOR_SITE_CODE
  ,x1.SHIP_TO_LOCATION
  ,x1.BILL_TO_LOCATION
  ,SYSDATE-10                            --done
  ,x1.APPROVAL_STATUS
  ,SYSDATE                               --done
  ,x1.FREIGHT_CARRIER
  ,x1.FOB
  ,x1.FREIGHT_TERMS
 );
end if;
END LOOP;
FOR x2 IN c2
LOOP
l_flag := 'A';
--Item Validation
begin
select segment1
into   l_item
from mtl_system_items_b 
  where segment1        = x2.item
    AND ORGANIZATION_ID = fnd_profile.value('ORG_ID');
exception
when others then
    l_flag        := 'E';
    l_vendor_id := 0;
    l_msg       := 'Item is not valid Item';
 END;
--End of the Item Validation
 if  l_flag != 'E' then
 INSERT INTO PO_LINES_INTERFACE
 (
 INTERFACE_LINE_ID
  ,INTERFACE_HEADER_ID
  ,LINE_NUM
  ,SHIPMENT_NUM
  ,LINE_TYPE
  ,ITEM
  ,ITEM_DESCRIPTION
  ,item_id
  ,UOM_CODE
  ,QUANTITY
  ,UNIT_PRICE
  ,SHIP_TO_ORGANIZATION_CODE
  ,SHIP_TO_LOCATION
  ,NEED_BY_DATE
  ,PROMISED_DATE
  ,list_price_per_unit
)
VALUES
(
   x2.INTERFACE_LINE_ID
  ,x2.INTERFACE_HEADER_ID
  ,x2.LINE_NUM
  ,x2.SHIPMENT_NUM
  ,x2.LINE_TYPE
  ,x2.item
  ,x2.item_description
  ,x2.item_id
  ,x2.uom_code
  ,x2.quantity
  ,x2.unit_price
  ,x2.SHIP_TO_ORGANIZATION_CODE
  ,x2.ship_to_location
  ,SYSDATE                              --done
  ,SYSDATE                              --done
  ,x2.list_price_per_unit
);
end if;
END LOOP;
COMMIT;
END PO_Int;
/

PURCHASE ORDER QUERY


         PURCHASE ORDER QUERY                                                            
                                                                     
                                             
SELECT PHA.PO_HEADER_ID ,
    pha.SEGMENT1,
    pha.revision_num,
    pha.type_lookup_code,
    trunc(pha.creation_date) Cdate,
    PV.VENDOR_NAME        ,
    PVS.VENDOR_SITE_CODE    ,
    (PVC.last_NAME||','||PVC.firsT_NAME)  ContactName,
    H1.LOCATION_CODE       ShipTO,
    H2.LOCATION_CODE       BillTo,
    pha.currency_code      CUrr,
    PPF.FULL_NAME       Buyer,
    pha.AUTHORIZATION_STATUS     Status,
    pha.COMMENTS        PODesc,
    SUM(pla.quantity*pla.unit_price)         PoTotal
FROM  PO_HEADERS_ALL PHA,
   PO_VENDORS  PV ,
   PO_VENDOR_SITES_ALL PVS,
   PO_VENDOR_CONTACTS  PVC,
   HR_LOCATIONS    H1 ,
   HR_LOCATIONS    H2 ,
   PER_ALL_PEOPLE_F   ppf,
   PO_LINES_ALL    pla
WHERE pha.SEGMENT1         = '3478'
AND   pha.TYPE_LOOKUP_CODE = 'STANDARD'
AND   PV.VENDOR_ID     = PHA.VENDOR_ID
AND   PVS.VENDOR_SITE_ID   = PHA.VENDOR_SITE_ID
AND   PVC.VENDOR_CONTACT_ID= PHA.VENDOR_CONTACT_ID
AND   H1.LOCATION_ID    = PHA.SHIP_TO_LOCATION_ID
AND   H2.LOCATION_ID    = PHA.BILL_TO_LOCATION_ID
AND   ppf.person_id     = PHA.AGENT_ID
AND   pha.po_header_id    = PLA.po_header_id
GROUP BY 
pha.SEGMENT1,
pha.revision_num,
pha.type_lookup_code,
trunc(pha.creation_date), 
PV.VENDOR_NAME        ,
PVS.VENDOR_SITE_CODE    ,
(PVC.last_NAME||','||PVC.firsT_NAME)  ,
H1.LOCATION_CODE       ,
H2.LOCATION_CODE      ,
pha.currency_code     ,
PPF.FULL_NAME      ,
pha.AUTHORIZATION_STATUS    ,
pha.COMMENTS ,
PHA.PO_HEADER_ID     -   12160


Line Level 
===========
SELECT  PLA.LINE_NUM,
  PLT.LINE_TYPE,
  MSI.SEGMENT1  Item,
  (mc.segment1||','||mc.segment2) Category,
  msi.description   Itemdesc,
  MSI.PRIMARY_UOM_CODE UOM,
  pla.quantity,
  pla.unit_price
FROM    PO_LINES_ALL       PLA,
  PO_LINE_TYPES      PLT,
  MTL_SYSTEM_ITEMS_B MSI,
  MTL_CATEGORIES    MC
WHERE   PLA.PO_HEADER_ID      = 12160
AND  PLA.LINE_TYPE_ID      = PLT.LINE_TYPE_ID
AND  MSI.ORGANIZATION_ID   = PLA.ORG_ID
AND  MSI.INVENTORY_ITEM_ID = PLA.ITEM_ID
and  mc.CATEGORY_ID    = pla.CATEGORY_ID




POSITION DEFINE IN HRMS


   POSITION DEFINE :                                          
Job     Positions 
====        ==========     

Director  = Managing Director

Manager   = Finance Manager
            Production Manager

Clerk     = Senior Clerk
     Assisten Clerk

operators = Mechine Operator
            System operator

1)Open the Position Form 
  Work structure=>position=>Description
2)Select New Button =>Set Effective date
3)Enter the Position Name as per the Position KFF structure
4)Select Position type  (Ex : Shared)

Single Incumbent : 
   meaning that only one employee is allowed to hold the position at any time
Shared : 
   meaning there can be several incumbents, up to the value of the FTE field
Pooled (Public Sector only) :
   meaning the position is loosely defined so rules about FTE and hours are not enforced 
   by the system
None : which you can select if you do not need to record position types

5)Select the Organization Name where we can use the Position
6)Select the Job Under which Job we are defining this Position
7)Select Hiring Status = 'Active'
  
Active   : We can Recruit the Employees
Praposed : We can not recruit Employees Position is Under Process.

8)Goto Hirng Information Tab enter the FTE and Heade Count
  FTE        =FUll Time Equivalent
  Head Count =Number of Employes we can recruit under this Position.

Define Position hierarchy:
==========================
Workstructures=>Position=>Hierarchy

1)Enter the Position hierarchy  Name and check the Primary check Box
  Save
2)Enter the Version number and Date From
  save
3)Place the Cursor in the Position Name Field Press CTRL+F11
4)Go for Defining the Subordinates as per the requirement by using Down and Up Arrow marks
  Save.
5)open the Diagrammer form we can find the Position Hierarchy Diagramatically chart wise
  and we can also find the Position Holder Details.

                 MD

FM       PM

SC      MO
JC      SO

Mass Move:
==========
If we are going to Transfer the Position from One organization to Another Organization then
we will go for using the Massmove to transfer the Positions
Enter the Name
and Select Source and Target Organization 
    select Positions Button and select Positions which we would like to transfer
    select the button called Execute.

PURCHASING END TO END SETUP STEPS:


PURCHASING END TO END SETUP STEPS:
Attach the Profile HR:user Type = HR with Payroll User
1)Locations in HRMS
  (US HRMS Manager =.Work Structure=>Location)
2)Business groups in HRMS
  Assign the Profiles
SOB Creation
Create Inventory Work Calendar attach to Inventory organization
Inventory=>Setup=>Organizations=>Calendar=>Create Calendar=>Tool Menu=>build

3)Create all Organization(SOB,LE,OU,IO)
4)Organization hierarchy 
5)jobs
6)Positions
7)Position hierarchy
8)Create Two Employee 1)Clerk 2)Manager Assign the manager to the Clerk.
9)Submit Program from SRS Window Fill Employee Hierarchy.
9)Creation of Combo Responsibility(PO,INV,GL,AP) attach Menus, attach RequestGroup
10)Attach the Profiles
    Businesgroup
    Set of Books
    Operating Units
Attach the Profile called (MO:Operating Unit for the Responsibility) 
11)Run the Porgram called Replicate Seed Data.
12)Goto Purchasing Assign the Set of Books.  
PO=>Setup=>Organization=>Set of Books=>Choose



13)Purchasing Options
14)Recceving Options
15)Financial options
16)Find the Documents and assign the Approval hierarchy (IBM hierarchy)
17)Assign the Approve Hierarchy to the All Documents.
  Purchasing =>Setup=>Purchasing=>Document Types.
18)Define the Approval Group (Setup=>Approval=>approval Groups)
   Assign the Hierarchy to the Document Types.
   Purchasing=>Document Types.
19)Assign Approval groups to the Documents.
20)Item Creation in Inventory (Inv=>item=>master Items)
21)Creation SubInventory      (Inv=>Setup=>Organizations=>Subinventories)
22)Create Users from sytem administrator to the Employees.
  Include the Employee names in the Buyers List. 
23)Login with Clerk and create Requisition if limit crossed then goto manager login
   open the notification summary and Approve.

Employee Creation


Employee Creation :
====================

1)After applicant is accepted the offer we will go for creation of the employeement
  then we will select the Peoiple window

People => Enter and Maintain

Select type = Employee ( we can find three types 1)Applicant (peron who has applied for job)
              2)Contingent Worker = For Placement type
                                                 3)Employee  =>Employement

Select new button enter the employee name and other details
select the Action = Employement and enter 
NI Number National Insurenece Number  for UK Localization
SocialSecurityNumber   for US localization.

save
select assignment button enter the Organization
       Job
       Position
       and Grade.

We are suppose to attach the Supervisior and as well as Payroll and salary details.
If we have defined the payroll for employee then we will attach.
We can also capture employee other information by using Others button

For Example : 

Previou Employement
Workpreference
Qualifications
End Employement.
EMPLOYEE CREATION
1)People=>Enter and Maintain
  Select New Button 
2)Enter the Emp First name Last name and select Action = Create Employement 
  and Enter the NI (National Identifier) number
  WE123456A(2Characters 6Digits 1Character).
3)Enter Date of Birth.
 Save
4)Select Assignment button enter the Organization.
                                     Job.
                                     Position.
                                     Grade.
5)We will also attach the Payroll and Salary information here itself.
6)and we will enter Other Information by select Other button.

Terminate Employee:
====================
To Terminate the Employee we have to go to Others Button => Terminate Employeement
 Specify the reason for Termination and Other.

Salary Detail:
================
Employee Salrary Details will be entered in the Salry and Entries buton after assign the
Payroll to the Employee.
Assignment=>Salary. 

Combo Responsibility :


Combo Responsibility :
HRMS
PO
AP
GL

Combo Responsibility :
======================

Menu                                  
====       
Purchasing SuperUser GUI
AP_NAVIGATE_GUI12
INV_NAVIGATE
GL_SUPERUSER
US HRMS Navigator    

Create New Menu :  (ERPMENU)
==================

System ADministrator=>Application=>Menu=> attach all these menus in the field called
SubMenu : 


Request Group Creation:
=======================
System ADministrator =>Security=>Responsibility=>Request
Enter Any Name
Application : Manufacturing

Type 
Applicatoion   generalledger
application   purchasing
application   payables
application   human resource
application       inventory


Create Responsibility:
=======================
Security=>Responsibility=>Define
Enter Name
Application name : Manufacturing
Datagroup     : Standard
Application name : Manufacturing
Request group : Whatever we have created
Menu          : Whatever we have created

save
Attach the Resp to user.