Query to find sales group details based on a merchant.

I wanted a query to find the sales group details for a given merchant. How do i do it?

Hi,
use for following function module to get file listing
DATA: L_DIRNAME LIKE EPSF-EPSDIRNAM,
      L_FILEMASK LIKE EPSF-EPSFILNAM.
CALL FUNCTION 'EPS_GET_DIRECTORY_LISTING'
    EXPORTING
      dir_name                  = l_dirname
      file_mask                 = l_filemask
* IMPORTING
*   DIR_NAME                    =
*   FILE_COUNTER                =
*   ERROR_COUNTER               =
    TABLES
      dir_list                  = pi_filelist
EXCEPTIONS
   invalid_eps_subdir           = 1
   sapgparam_failed             = 2
   build_directory_failed       = 3
   no_authorization             = 4
   read_directory_failed        = 5
   too_many_read_errors         = 6
   empty_directory_list         = 7
   OTHERS                       = 8.

Similar Messages

  • Query to find Employee Salary Details

    Hi,
    Could anyone help in writing the query to find employee salary details.
    Thanks in advance.

    This should get you started:
    SELECT papf.full_name
    ,papf.email_address
    ,ppp.proposed_salary_n salary
    FROM per_pay_proposals ppp
    ,per_all_assignments_f paaf
    ,per_all_people_f papf
    WHERE ppp.assignment_id = paaf.assignment_id
    AND paaf.assignment_type = 'E'
    AND paaf.primary_flag = 'Y'
    AND paaf.person_id = papf.person_id
    AND nvl(papf.current_employee_flag, 'N') = 'Y'
    AND trunc(sysdate) BETWEEN
    ppp.change_date AND ppp.date_to
    AND trunc(sysdate) BETWEEN
    paaf.effective_start_date AND paaf.effective_end_date
    AND trunc(sysdate) BETWEEN
    papf.effective_start_date AND papf.effective_end_date;

  • Sales Employee Details Based on Invoice

    Hi,
    Based on Invoices i need to bring the sales employee details.
    sales employee is present in Sales Order as Partner Function.
    can any one help me on this.

    Hi
    Presuming that u are looking at a report, I am suggesting this solution.
    The billing document will have the sales order number, and based on that go to the partner functions and pull in the sales employee.
    Hope this helps.
    Kind Regards
    Chakradhar

  • Query to find employee salary details in HRMS

    Hi,
    Could anyone one provide me the query to get the salary details of an employee.
    Thanks.

    Hi,
    Hope this work for you.
    SELECT pap.last_name last_name
    ,pap.first_name first_name
    ,pap.employee_number employee_id
    ,hlu2.meaning ethnic_origin
    ,hlu1.meaning eeo_category
    ,hlu5.meaning veteran_status
    ,pap.sex sex
    ,ROUND(pro.proposed_salary_n, 2) current_salary
    ,ROUND(pro.proposed_salary_n * ppb.pay_annualization_factor) current_yearly_salary
    ,pg.NAME grade
    ,pj.NAME job_name
    ,pjd.segment3 business_unit
    ,pjd.segment4 FUNCTION
    ,pjd.segment5 designation
    ,pjd.segment2 job_group
    ,pos.date_start hire_date
    ,NVL(pos.actual_termination_date, hr_general.end_of_time) termination_date
    ,hl.location_code LOCATION
    ,pap.full_name
    ,pj.job_information3 flsa_code
    ,hlu4.meaning employment_category_meaning
    ,pap.effective_start_date p_effective_start_date
    ,pap.effective_end_date p_effective_end_date
    ,paa.effective_start_date a_effective_start_date
    ,paa.effective_end_date a_effective_end_date
    ,pro.from_change_date s_effective_from_date
    ,NVL(pro.to_change_date, hr_general.end_of_time) s_effective_to_date
    ,pap.current_employee_flag
    FROM per_all_people_f pap
    ,per_all_assignments_f paa
    ,per_periods_of_service pos
    ,(SELECT pro1.approved
    ,pro1.assignment_id
    ,pro1.change_date from_change_date
    , pro_next.change_date - 1 to_change_date
    ,pro1.multiple_components
    ,pro1.last_change_date
    ,pro1.proposed_salary_n
    ,pro1.forced_ranking
    ,pro1.last_updated_by
    ,pro1.last_update_date
    ,pro1.event_id
    ,pro1.performance_review_id
    ,pro1.pay_proposal_id
    FROM per_pay_proposals pro1
    ,per_pay_proposals pro_next
    WHERE pro1.assignment_id = pro_next.assignment_id(+)
    AND pro1.change_date = pro_next.last_change_date(+)) pro
    ,per_jobs pj
    ,per_job_definitions pjd
    ,hr_locations hl
    ,per_grades pg
    ,(SELECT *
    FROM hr_lookups
    WHERE lookup_type = 'US_EEO1_JOB_CATEGORIES') hlu1
    ,(SELECT *
    FROM hr_lookups
    WHERE lookup_type = 'US_ETHNIC_GROUP') hlu2
    ,(SELECT *
    FROM hr_lookups
    WHERE lookup_type = 'US_EXEMPT_NON_EXEMPT') hlu3
    ,(SELECT *
    FROM hr_lookups
    WHERE lookup_type = 'EMP_CAT') hlu4
    ,(SELECT meaning
    ,lookup_code
    FROM hr_lookups
    WHERE lookup_type LIKE 'US_VETERAN_STATUS') hlu5
    ,per_pay_bases ppb
    ,(SELECT *
    FROM per_addresses
    WHERE primary_flag = 'Y'
    AND address_type = 'H'
    AND ( date_to IS NULL
    OR date_to > SYSDATE)) addr
    WHERE pap.person_id = paa.person_id
    AND paa.assignment_id = pro.assignment_id
    AND paa.job_id = pj.job_id
    AND paa.location_id = hl.location_id
    AND paa.grade_id = pg.grade_id(+)
    AND pos.person_id = pap.person_id
    AND ppb.pay_basis_id = paa.pay_basis_id
    AND pj.job_information1 = hlu1.lookup_code
    AND pj.job_definition_id = pjd.job_definition_id
    AND pap.per_information1 = hlu2.lookup_code(+)
    AND pap.per_information5 = hlu5.lookup_code(+)
    AND pj.job_information3 = hlu3.lookup_code(+)
    AND paa.employment_category = hlu4.lookup_code
    AND addr.person_id(+) = pap.person_id

  • Query to find sum and detail lines

    <br>
    Hi
        I have these tables po_requisition_headers poh and
    po_requisition_lines_all pol
    poh table
    header_id          req_num
    2342                  13222
    4562                  13245
    7867                  13678
    po lines table
    line_id header_id     line_num line_amount
    12334  2342            1          40,000
    12335  2342            2          61,000
    12346  4562            1          100,000
    12367  7867            1          50,000
    how do i get this output
    i want all the total line amount for a po more than or equal 100,000 and also want to see the lines records.
    like this
    13222          2342            1          40,000
    13222          2342            2          61,000
    13245          2343            1          100,000

    select equistion_num,
           requisition_header_id,
           distribution_id,
           supplier,
           CATEGORY,
           req_total,
           need_by_date,
           requestor,
           item_description,
           project_num,
           task_number,
           segment1,
           segment2,
           currency_code,
           req_total_conv,
           email_address
    -- your query (nearly) ***************************************************************************
      from (select reqdet.*,
                   pec.email_address,
             -- added next row: check sum's argument & partition by clause and modify accordingly
    SUM(req_total /* req_total_conv */) over (partition by requisition_header_id) group_sum
              from (SELECT  r.segment1 requistion_num,
                            l.requisition_header_id,
                            d.distribution_id,
                            TO_CHAR (l.line_num) line_num, v.vendor_name supplier,
                            p.concatenated_segments CATEGORY,
                            TO_CHAR (ROUND ((NVL (l.quantity, 0) * NVL (l.unit_price, 0))),'99,999,999,999.99') req_total,
                            TO_CHAR (l.need_by_date, 'MM/DD/YYYY') need_by_date,
                            pe.full_name requestor,
                            l.item_description,
                            pr.segment1 project_num,
                            t.task_number,
                            c.segment1,
                            c.segment2,
                         -- l.currency_code,
                         nvl(l.currency_code,gl.currency_code) currency_code,
                         ROUND ((NVL(gdr.conversion_rate, 1) * (NVL(l.quantity, 0) * NVL(l.unit_price,0))),fc.PRECISION) req_total_conv
                       FROM po_requisition_headers_all r,
                            po_requisition_lines_all l,
                            (SELECT project_id,
                                    task_id,
                                    code_combination_id,
                                    distribution_id,
                                    requisition_line_id,
                                    creation_date
                               FROM (SELECT project_id,
                                            task_id,
                                            code_combination_id,
                                            distribution_id,
                                            creation_date,
                                            requisition_line_id,
                                            ROW_NUMBER () OVER (PARTITION BY requisition_line_id ORDER BY requisition_line_id,distribution_id) rn
                                       FROM po_req_distributions_all pod
                              WHERE rn = 1
                            ) d,
                            gl_code_combinations c,
                         hr_operating_units o,
                         gl_sets_of_books gl,
                            por_category_lov_v p,
                            per_people_v7 pe,
                            pa_projects_all pr,
                            pa_tasks_all_v t,
                            ap_vendors_v v,
                         gl_daily_rates gdr,
                            fnd_currencies fc
                      WHERE d.creation_date >= NVL(TO_DATE ('11-APR-2008','DD-MON-YYYY HH24:MI:SS'),SYSDATE - 1)
                        AND l.requisition_header_id = r.requisition_header_id
                        AND l.requisition_line_id = d.requisition_line_id
                        AND d.code_combination_id = c.code_combination_id
                        AND r.apps_source_code = 'POR'
                        AND l.org_id = 141
                     -- and r.requisition_header_id in (352668,353113)
                        AND r.segment1='146309'
                        AND l.category_id = p.category_id
                        AND r.authorization_status IN ('IN PROCESS','PRE-APPROVED','APPROVED')
                        AND l.to_person_id = pe.person_id
                        AND pr.project_id(+) = d.project_id
                        AND t.project_id(+) = d.project_id
                        AND t.task_id(+) = d.task_id
                        AND v.vendor_id(+) = l.vendor_id
                        and     gl.set_of_books_id = o.set_of_books_id
                        and o.organization_id = l.org_id
                        and fc.currency_code = nvl(l.currency_code,gl.currency_code)
                        AND l.currency_code = gdr.from_currency(+)
                        AND TRUNC (SYSDATE) = TRUNC (gdr.conversion_date(+))
                        AND gdr.to_currency(+) = 'USD'
                        AND gdr.conversion_type(+) = 'Corporate'
                        AND l.requisition_header_id
                      GROUP BY r.segment1 ,
                               l.requisition_header_id,
                               d.distribution_id,
                               TO_CHAR(l.line_num),
                            v.vendor_name,
                               p.concatenated_segments,
                               TO_CHAR(ROUND((NVL(l.quantity, 0) * NVL (l.unit_price, 0))),'99,999,999,999.99'),
                               TO_CHAR (l.need_by_date,'MM/DD/YYYY'),
                               pe.full_name,
                            l.item_description,
                            pr.segment1,
                               t.task_number,
                               c.segment1,
                               c.segment2,
                            l.currency_code,
                            nvl(l.currency_code,gl.currency_code),
                            ROUND((NVL(gdr.conversion_rate,1) * (NVL(l.quantity,0) * NVL(l.unit_price, 0))),fc.PRECISION)
                    -- leave this out - doesn't help
    -- HAVING SUM(ROUND((NVL(gdr.conversion_rate, 1) * (NVL(l.quantity,0) * NVL(l.unit_price,0))),fc.PRECISION)) >= 100000
                   ) reqdet,
                   per_people_v7 pec
             where bio_po_ame_util.get_commodity_manager_id(reqdet.distribution_id) = pec.person_id
    -- *************************************************************************** yreuq ruoy
    where group_sum >= 100000

  • How to find out the service conformation details based on service order

    Hi.
    I open the CRMD_ORDER
    In this i open a service order.
    I got all the information of that particular service order number in the CRM_ORDER_READ program.
    But i unable to find out conformation details of that particular service order.
    In CRM_ORDER_READ we have DOC_FLOW. But in that i did not find Conformation data. like Conformation number.
    Can anybody explain me regarding finding the conformation details based on the service order.
    I want service conformation number based on the service order.
    Is there any other function module to get all the details of service order with the service conformation also.
    Thank You.
    Regards,
    B. Krishna.

    Hi Krishna,
    You can get the confirmation order guid based on service order number from CRM_ORDER_READ.
    Under ET_DOC_FLOW structure where OBJTYPE_B=BUS2000117 ,OBJKEY_B=Confirmation guid.
    Then from guid you can get the confirmation number.
    Hope this resolves your querry.
    Regards,
    PePe

  • Query to find out the sales order

    Hi All,
    I need a query to find sales order number against which a serial number is transacted.
    Can ny one help onthis.
    Thanks ,

    hi,
    thanks you for your reply.
    its working but i am not able to see the required item serail number.
    Bit confused its their in mtl_serial_number but its not their in sales order.
    How is it possible.
    In mtl_serial_number its current_status is '4'
    Can you please hlep me.
    Thanks

  • There are more than 1000 users using query based on sales group and sales ?

    Hi all,
    for a project activities sales group need to have authorization object? but if they make the object authorized and moved to production, all the other 1000 users gets effected to this changes since they dont have access to it.
    Can anyone let me know how to handle this?
    let me explain in detail,
    there are different markets like india, china, hongkong , south east asia,
    for a particular project, only south east asia people needs to have authorization on sales group . but there are 500 users in south east asia, so once changes is moved it will affect the existing users too?
    So can anyone advise me how to handle this?
    Thanks

    HI Pooja,
    Create roles as per authorization you have to give to users.
    Create user groups - for different users depending on the countries where they belong - as you mentioned users belong to India,
    China,
    Hongknog,
    South east asia
    Eg, Create 1 role and give auth object for south east asia users. If you want to give particular authorization to 1 user only from among 500 users. create 2 roles with different authorizations and assign accordingly.
    Regards,
    Chitra

  • Customers, Sales Orders Restrictions based on Sales Office and Sales Groups

    hi all,
    We have a typical scenario for one of our customers. They are SAP ERP, ECC 6.0.
    They have sales employees/managers assigned to customers. In order to maintain the link between the sales employees and the customers, their earlier implementation partner followed the following method for the linkage.
    Each sales employee and each sales managers are given a SAP User ID like 101, 012, 103 etc.. Sales groups OR Sales offices are also maintained with the same numbers/IDs. At the customer master level, each customer's sales group is given the sales employee ID (which is same as that of the sales group). The example is as follows.
    Customer No.             Sales Group                 Sales Office                                                                               
    CU1                              101                             108
    CU2                              101                             108
    CU3                              102                             108
    CU4                              103                             109
    CU5                              104                             110
    The sales group names and the sales offices names are given the same names as that of the user IDs of the sales employees/sales managers. In the above example, the sales employee 101 (sales group 101) is assigned to customers CU1, CU2. The sales manager 108 (Sales office 108) is managing the sales employees 101 and 102.
    Now the customer has some authorization issues. He wants us to provide authorizatinos in such a way that -
    if the sales employee 101 logs on to the system he should be able to Display the CUSTOMERS and the Sales Orders (XD03, VD03, VA03) that are assinged only to him (In other words with the sales group 101) and similarly for other sales employees.
    if the sales manager 108 logs on to the system he should be able to display the customers and the sales orders that are assigned to his sales employees (101, 102). In other words with the sales office as the manager's ID 108.
    I tried to use the authorization object V_VBKA_VKO but this doesnt see to be serving the purpose as this object is not being checked at all in any of the above VA03, XD03 and VD03 transactions.
    Similarly I did not find any other authorization object which makes use of Sales group field and Sales office field which also has a linkage to VA03, XD03 and VD03 transactions.
    The customer is evaluating our contract with them based on this solution.
    Any help is greatly and highly appreciate.
    Thanks,
    Niran.

    Hi,
    Please use the following authorization objects for your purpose. For more details please go through the documentation of the objects:
    V_KNA1_BRG     Customer: Account Authorization for Sales Areas
    V_KNA1_VKO     Customer: Authorization for Sales Organizations
    FYI:    V_VBKA_VKO     SD     Sales Activities: Authoriz.for org.data and sales activ.type
    contains the following Fields which are relavant to your query
    VKORG      Sales Organization
    VTWEG      Distribution Channel
    SPART      Division
    VKBUR      Sales Office
    VKGRP      Sales Group
    KTAAR      Sales Activity Type for Sales Support
    ACTVT      Activity
    Regards,
    Dipanjan

  • BAPI or Function Module to find Sales Order's of a Sales Group through Employee

    Dear Experts,
    Is there any BAPI / FM to find out the sales order's belonging to an sales group to which an sales employee is assigned, by providing that sales employee id as input ?
    If not, what is the logic that we should go through to get that details ? What tables should be connected (like VBAK) to get those details ?
    Thanks and Regards,
    Seeker.

    Dear Seeker,
    1) Configuration (SPRO)
         a) Goto transaction code SPRO > Sales and Distribution > Sales > Lists > Set Updating Of Partner Index
         b) Insert transaction group (TrG) = 0 and partner function (Funct) = PE
    2) Create sales order with sales employee     
    3) Use FM  RV_SALES_DOCUMENT_VIEW_3 (see below), you may get the result from table POSTAB.
    VBCOM-VKORG = <Sales Org>
    VBCOM-VTWEG = <Dist Channel>
    VBCOM-SPART = <Division>
    VBCOM-PARVW = 'AF'
    VBCOM-KUNDE = <Sales Employee>
    VBCOM-AUDAT = <From Date>
    VBCOM-AUDAT_BIS = <To Date>
    VBCOM-TRVOG = '0'
    VBCOM-VBALL = 'X'
    VBCOM-STAT_DAZU = 'X'
    VBCOM-NAME_DAZU = 'X'
    SELTAB-KTEXT = 'VKGRP'
    SELTAB-VONSL = <sales grp>
    SELTAB-BISSL = <sales grp>
    SELTAB-STEPL = '1'
    BSTKD_FLAG = 'X'
    CALL FUNCTION 'RV_SALES_DOCUMENT_VIEW_3'
              EXPORTING
                   VBCOM           = VBCOM
                   KONV_FLAG   = KONV_FLAG
                   BSTKD_FLAG = BSTKD_FLAG
              IMPORTING
                   TIME      = REFE
              TABLES
                   LVBMTV    = POSTAB
                   LSELTAB   = SELTAB.
    Thanks
    Hock Lin

  • Finding Sales Office and Sales Group

    Hi All,
    In CRM, I have a req where I know the Business Partner(Ship-to) ZIPCODE value and Sales Org value. Using these two values I need to find Sales Office and Sales Group .
    Sales org data specific to Ship-to will not be maintained in CRM. So sales org data should be pulled based on ZIPCODE only. All the config is set up.
    Are there any tables or function modules that I could use to get these values in the program?
    Thanks in advance!
    Sonali.

    Solved

  • How to find the Sales Office & Sales Group

    Hi Gurus,
    In my ABAP report,I have to retrive the Sales Org,Sales Office & Sales group of a Business Partner..
    I have used Fn Module 'CRM_BUPA_FRG0030_GET_LIST' ,but it is not retriving any details when I am supplying GUID of a BP as a Input..I have used a Table CRMM_BUT_LNK0021 from there I got Sales Org,Channel & Division.
    Still I am in need of Sales Office and Sales group..
    Can you please suggest me a BAPI / Function Module / Table Name to retrive the requested values..?
    Thanks in advance..
    Regards,
    Gopi

    Hi,
    Try following tables
    CRMM_BUT_LNK0010    -Business Partner u2013 Sales Rule List                          
    CRMM_BUT_LNK0011    -Business Partner u2013 Sales Rule                               
    CRMM_BUT_LNK0020    -Business Partner u2013 Shipping Rule List                       
    CRMM_BUT_LNK0021   -Business Partner u2013 Shipping Rule                            
    CRMM_BUT_LNK0030    -Business Partner u2013 Billing Rule List                        
    CRMM_BUT_LNK0031    -Business Partner u2013 Billing Rule                             
    CRMM_BUT_LNK0140   -Business Partner Organization Rule List                     
    CRMM_BUT_LNK0141   -Business Partner Organization Rule                          
    CRMM_BUT_SET0010    -Business Partner u2013 Sales Rule Period                        
    CRMM_BUT_SET0020   -Business Partner u2013 Shipping Rule Period                     
    CRMM_BUT_SET0030   -Business Partner u2013 Billing Rule Period                      
    CRMM_BUT_SET0140   -Business Partner Organization Rule Period                   
    Regards,
    Rajendra Sonawane

  • Find Sales Order Item Basic Data by Elements query fails

    I am trying to consume Find Sales Order Item Basic Data by Elements in .NET 3.0.
    Every thing appears to be working fine -- I could query by PO number, Creation time, SalesOrganisationID etc.
    However, the most basic query is mysteriously failing. I just want to query by Sales order number, and have given a valid sales order number 6718 that exists in SAP.
    It fails giving the following errors:
    (in Log.LogItem.Note variable):
    <b>"Conversion failed: Invalid input format"</b>
    (in Log.LogItem.TypeID variable):
    <b>"701(SFB)"</b>
    Code is pretty simple, and I am just trying to query Saler Order number 6718. Of course there is nothing wrong with its format.
    From the ESOA site, all I could get was:
    <i>----
    QUOTE -
    The following values are optional selection criteria for restricting the search result:
    SelectionByID – Document number range
    INCLUSION_EXCLUSION_CODE
    INTERVAL_BOUNDARY_TYPE_CODE
    LOWER_BOUNDARY_ID
    Value
    UPPER_BOUNDARY_ID Value
    Value
    UNQUOTE -
    </i>
    I could not even have any  documentation on what to put in InclusionExclusionCode, and IntervalBoundaryTypeCode. They apper to be some Global Data Types for which I couldn't find any documentation. By sifting through Wiki, I just guessed a couple of values praying that it may work. I am a bit new to ESOA, but have expertise in .NET 3.0. Would someone guide me where to find the documentation for that, where are the error codes listed, so that I make the queries with little better preparation.
                querydata.SelectionByID = new SalesOrderERPItemBasicDataByElementsQueryMessage_syncSalesOrderERPItemBasicDataSelectionByElementsSelectionByID[1];//Single element array is good enough
                querydata.SelectionByID[0] = new SalesOrderERPItemBasicDataByElementsQueryMessage_syncSalesOrderERPItemBasicDataSelectionByElementsSelectionByID();
                querydata.SelectionByID[0].InclusionExclusionCode = "E";
                querydata.SelectionByID[0].IntervalBoundaryTypeCode = "6";
                querydata.SelectionByID[0].LowerBoundaryID = new SalesOrderID();
                querydata.SelectionByID[0].LowerBoundaryID.Value = "6718";
                querydata.SelectionByID[0].UpperBoundaryID = new SalesOrderID();
                querydata.SelectionByID[0].UpperBoundaryID.Value = "6718";

    How do you test with a SOAP Client  - I am trying to use same dataset as provided?
    I did with WSDL Test - SAP, SOAP Client and got the following error:
    <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
       <soap-env:Body>
          <nr1:SalesOrderERPBasicDataByElementsResponse_sync xmlns:nr1="http://sap.com/xi/APPL/Global2">
             <Log>
                <MaximumLogItemSeverityCode>1</MaximumLogItemSeverityCode>
                <Item>
                   <TypeID>701(SFB)</TypeID>
                   <SeverityCode>1</SeverityCode>
                   <Note>Conversion failed: Invalid input format</Note>
                </Item>
                <Item>
                   <TypeID>701(SFB)</TypeID>
                   <SeverityCode>1</SeverityCode>
                   <Note>Conversion failed: Invalid input format</Note>
                </Item>
                <Item>
                   <TypeID>701(SFB)</TypeID>
                   <SeverityCode>1</SeverityCode>
                   <Note>Conversion failed: Invalid input format</Note>
                </Item>
                <Item>
                   <TypeID>701(SFB)</TypeID>
                   <SeverityCode>1</SeverityCode>
                   <Note>Conversion failed: Invalid input format</Note>
                </Item>
                <Item>
                   <TypeID>701(SFB)</TypeID>
                   <SeverityCode>1</SeverityCode>
                   <Note>Conversion failed: Invalid input format</Note>
                </Item>
             </Log>
          </nr1:SalesOrderERPBasicDataByElementsResponse_sync>
       </soap-env:Body>
    </soap-env:Envelope>
    Thanks..
    Vikas

  • Sales Office and Sales Group Automatic Determination based on the Sold to P

    Hello every one
    We need determine sales office and sales group based on sold to party master data in Activity Management in SAP CRM 2007.
    I want to know if there is a way to do it when we save the document.
    Any ideas???

    hi, the sales org, office, group determination can be configure in Organization Determination.
    You can choose Org Determine rule for your CRM document.
    And if you feel the rule can't match your requirement,  you can create a new rule, and create customize function module for the rule, you can add your determine logic in the function module to realize your requirement.

  • Query to find the Salary table details  HRMS 11i

    I am looking  query to find the persons salary details in Oralce EBS 11i.
    I tried the below query bu it didn'ty work.
    SELECT papf.employee_number
    ,papf.full_name
    ,pj.NAME job
    ,haou.NAME ORGANIZATION
    ,ppp.proposed_salary_n salary
    FROM per_all_people_f papf
    ,per_all_assignments_f paaf
    ,per_jobs pj
    ,hr_all_organization_units haou
    ,per_position_definitions ppd
    ,per_all_positions pap
    ,per_pay_proposals ppp
    WHERE 1 = 1
    AND SYSDATE BETWEEN papf.effective_start_date AND papf.effective_end_date
    AND papf.current_employee_flag = 'Y'
    AND papf.employee_number IS NOT NULL
    AND paaf.person_id = papf.person_id
    AND SYSDATE BETWEEN paaf.effective_start_date AND paaf.effective_end_date
    AND paaf.job_id = pj.job_id
    AND paaf.organization_id = haou.organization_id
    AND paaf.position_id = pap.position_id
    AND pap.position_definition_id = ppd.position_definition_id
    AND ppp.pay_proposal_id = (SELECT MAX (pay_proposal_id)
    FROM per_pay_proposals
    WHERE assignment_id = paaf.assignment_id)
    In our case all the below tables have 0 records..
    select count(*) from PER_PAY_PROPOSALS ;
      COUNT(*)
             0
    select count(*) from pay_element_entry_values_f;
      COUNT(*)
             0
    select count(*) from PAY_ELEMENT_ENTRY_VALUES_F;
      COUNT(*)
             0
    select count(*) from PAY_ELEMENT_ENTRIES_F;
      COUNT(*)
             0

    Hi,
    Your results clearly states that there is no salary data which is been captured as well as there are no element entries which are assigned to any assignment.
    Please do the below which will insert records in salary as well as element entries table:
    1. Add a salary proposal to any active employee (People Enter and Maination --> Search for any employee --> Assignment --> Salary) - This will insert a record in PER_PAY_PROPOSALS table
    2. Add an element entry to any active assignment (People Enter and Maination --> Search for any employee --> Assignment --> Entries) - This will insert a record in PAY_ELEMENT_ENTRIES_F and PAY_ELEMENT_ENTRY_VALUES_F table
    Hope this clarifies.
    Thanks,
    Sanjay

Maybe you are looking for