Org Units as partner function 00000014 (Employee Responsible)?

Hi All,
Hopefully a quick and simple question....
SAP allows a business partner to be assigned as the "employee responsible" to a transaction if (a) they hold the role of "employee" OR "organisational unit" AND are included in the Org Structure.  All seems pretty simple?
But the search help associated with partner function 00000014 is for the SAP standard employee search, which only allows searching for persons and not organsations.
Any idea on how a seach for organisations can be performed for the "employee responsible"?
Kind regards

Hi,
I think the partner function 00000014 holds only the BP who are defined in the Role Employee in the system and a user is assigned to them.
Org BP is not not assigned to this partner function, hence the standard F4 search help has no provision to find the org bp.
Regards,
PP

Similar Messages

  • Org Unit Business Partner number missing

    Hi Guy's
    I have created some Org models with some Org units and positions in it... But for some reasons I could not able to see any business partner numbers assigned to these Org units..... I hope these numbers automatically come from CRM system...
    Could you tell me is it a Technical issue or Functional issue???
    Please let me know if you have any solution to resolve this
    Thank you very much in advance....

    Hi Sr,
    To get the role 'organizational unit'  for BP make sure you have  HRALX - OPROL - BUP004
    You can mail to [email protected]
    Regards,
    Paul Kondaveeti
    <b>Also see the help extract from customizing:</b>
    Set Up Integration with Organizational Management
    In this IMG activity, you integrate business partner data with HR master data (organizational model and employees).
    Activities
    1. Activate global HR integration by setting the main switch HRALX/HRAC to 'X'.
    2. Activate the integration between business partners and organizational units by setting the switch HRALX/OBPON to 'ON'.
    3. Activate the integration between business partners and employees by setting the switch HRALX/PBPON to 'ON'.
    4. Numbers can generally be assigned in three ways when creating business partners:
    a) Number is taken as before from the general internal interval for number range object BU_PARTNER.
    b) Number is taken from the special internal interval for the object.
    c) Number is taken from HR and given a prefix. A special external interval is used, which has to be defined as XX00000000 to XX99999999, where XX stands for any two letters.
    Number assignment is set for organizational units using HRALX/ONUMB, and for employees using HRALX/PNUMB.
    The number range object for all switch values is BU_PARTNER, the interval being dependent on the switch value. The internal standard interval is used for switch value 1, for switch values 2 and 3 the interval is defined by the switch HRALX/OSUBG or HRALX/PSUBG. For switch values 2 and 3, a grouping also needs be created for these intervals using transaction BUC2.
    To enable the system to connect the grouping and the number range interval, the name of the grouping must be exactly the same as that of the corresponding number range interval. The name of the grouping is in the first column of the table.
    If you choose number assignment type 3 for business partners with the role employee (switch HRALX/PNUMB = 3), create the switch HRALX/PSUBG manually in table T77S0.
    5. If you would like users to be informed by e-mail when errors occur, the recipient can be defined in switch HRALX/MSGRE (0=No messages, 1=Workflow administrator is notified, 2=User receives mail, 3=Both are informed).
    6. If addresses are required to generate business partners correctly, the switch HRALX/OADRE must be set to 'X'. The standard address to be assigned to every organizational unit without its own address can be defined using HRALX/OADBP.
    To create a standard address, create a business partner with an address and then enter this business partner's number in the switch.
    7. If qualifications for employees are also to be transferred, the switch HRALX/PQUAL must be set to 'X'.
    Effects on Existing Data
    If you have already transferred employees from a connected HR System in an earlier CRM Release and have now upgraded, the relevant employees (personnel numbers) must be transferred again to the CRM System by initial distribution. This enables important employee information to be stored in the target system, and changes to be transferred correctly to the business partner master records.
    Message was edited by:
            Paul Kondaveeti

  • Org Unit - Business partner

    Hie all,
    when org unit is created system has to create BP automatically for that org unit.
    I checked integration settings and they are all ok.
    is there anyway to have BP created org units that dont have BP created automatically?
    Is there anything else i can check?
    thanks and regards,
    Marry.

    Hie Micha,
    I tried it allready. Bit it does not help!!
    I excuted this IMG activity and entered Org unit and executed. in the next screen  it shows me the Org unit and BAsic data is RED.
    then i selected "repair and synchronisation object". Then it gave me message saying "Incorrect assignment for org. unit XXXXXXXXXX to partner  from 26.04.2011 to 00000000CP" (HRALX00_ORG280)
    "The system tried to create an assignment between organizational unit
    XXXXXXXXXXX and business partner . However, the validity period from
    26.04.2011 to 00000000CP is not permitted. This is because either the
    date field is empty, the start date is later than the end date, or the
    business partner number field is empty."
    Thanks and regards,
    Marry.
    Edited by: marrysap on Apr 28, 2011 11:20 AM

  • Partner Function - Sales Employee & Employee as Customer

    Dear Gurus,
    My doubt is:
    1.  Sales Employee- who brings the sales
    2.  Employee as Customer- Employee in the same company and also purchases some products from the same company.
    In the above 2 cases what are the total settings required?
    HR module also being implemented here.
    Pl elaborate for both the cases separately.
    Regards,
    Sreehari

    hello, friend.
    if the employee is created as a customer, you use t-code XD01 or VD01.  the default partner function would be SP (sold-to party) or an equivalent partner function as a result of the account group used.  the result is that a customer number (SD generated) is assigned.
    as employee can also be a sales employee with partner function VE or SE, and you use t-code VPE1 for this.  the employee number (HR generated) is then assigned.
    both can work for you, but each has its own advantages.  for example, you can track sales employee link to SD transactions in SIS if you use the employee number (HR).  if you want to track employee purchases, then the customer number (SD) will be relevant.
    regards.

  • How to deassign a employee from a Org. unit by using function module?

    Hi,
    I want to deassign an employee from an orgnization unit in Org. model. Though I know I can do it manually in Org. Model. But since the number is big, I want to do it by using report. So do you which function module I can use to do it?
    Many thanks and Best regards,
    Long

    Hi,
    I feel following 2 Fms will be of use to you.
    1. BUB_BUPA_RELATION_MODIFY
    2. BUB_BUPA_RELATIONS_MODIFY
    I hope this helps.
    Regards,
    Venkat

  • Difference betwen "Sale Representative" & "Employee Responsible"

    Hi,
    What is the difference between "sales representative" partner function 00000012 & "employee responsible" partner function 00000014 ?
    How is this used in a business context? does it not tend to behave as duplicate if we have just one sales team member (or employee) who is handling a customer?
    Any thoughts are welcome.
    Thanks
    Kumar
    PS: points will be awarded for helpful answers.

    Sales Representative: A person who is representing & responsible specifically for sales activity like your Sales Executive.
    Employee Responsible: A Person who can be responsible for any activity like transaction processing, service representative etc., it can also  be a sales representative.
    In a business context like "Regional Manager", generally responsible for all activities for a region like sales, service, in this scenario he will be used as Employee responsible in transactions.
    Hope this will help you.
    Himanshu

  • Authorization for campaign on partner function

    Hi,
    User while  creating campaign/MP will enter BP in partner function like employee responsible/Created/Approver/Notify. I dont want any other user to make changes (Edit) in campaign or marketing plan who is not a part of it. Other user should get to view it only.
    Only BP(Users) assigned against defined partner functions in campaign/Marketing plan should be able to edit it.  
    Is this possible? Is there any standard authorization object for it? If not what would be the solution approach?
    I tried with authorization object CRM_ORD_OP but system allows user to edit MP even thought its not enterd in Partied involved assignment block.
    Regards,
    Nikhil

    Hi Nikil,
    You can use the below Auth. object:
    CRM_MPLAGR
    CRM_CPGAGR
    CRM_MPLRES
    CRM_CPGRES

  • Employee Responsible relationship flow to ECC

    Dear all,
    We are maintaining Employee responsible relationship to each customer in CRM.
    And we are expecting that Employee number would be visible in ECC system ---  in Customer Master -
    Sales Area Data -
    Partner Functions tab -
    Employee Responsible Partner Function.
    We have maintained identical numbers for employee in both systems.
    I mean to say we have taken employee number from HR system (PA30) in ECC and we have given it as a external number to the Employee Business Partner.
    Customer Record is uploading perfectly from CRM to ECC, but relationship to Employee is not at all appearing in ECC customer.
    We have been struggling to solve this issue quite a long time.
    I need some one help to resolve this issue, your suggestions will be highly appreciated.
    thanks in advance
    Raghu ram.

    Hi Raghu Ram
    follow the guide i hope it may help u
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/84dd0c97-0901-0010-4ab2-9849fba57e31
    Reward points if helpful
    Cheers
    Ranga

  • Search for activity partner functions

    Hi,
    I need to search all activities which have as partner function (0000014 employee responsible) a specific bp number. It's possible to get this behaviour with one or two standard FMs?
    Thanks in advance
    Javier Merino

    Hi Javier,
    get Header GUIDs of all activities from table crmd_order_index.Use following query;
    select header
    from crmd_order_index
    where object_type = 'BUS2000126 (activities)
        and partner_no = BP_number (your input)
        and pft_8 = 'X' (this field is marked for employee responsible)
    Please reward points if this helps you.
    Regards
    Kaushal

  • How to work with Partner Function Categ. - Person Responsible vs. Employee

    Hi together,
    I have a question regarding partner processing (we are using Web Client UI):
    Our customers are served by one Sales Rep. who is travelling and additionaly by an Account Manager who is working inhouse (he is assigned to & supporting up to 5 sales reps). In our R/3 System we are using two different z-(customer)partner roles - let's say SR and AM. When we create new customers and sales documents the AM is determined out of the assignment to the SR (SR has to be typed in by user). So the Sales Rep is the leading employee in the relationship to the customer, while the AM is the SAP power-user.
    How should I use these Roles in CRM? Both employees have to be assigned to our Customer-BUPAs and to every sales document.
    The first thought was using the CRM-partner-function 0012 Sales Rep.(category employee) for the SR and 0014 Employee Resp. (category person responsible) for AM.
    My problem is that I don't know what the difference between the two partner function categories person responsible(0008) and employee(0005) is.
    Because the SalesRep is the leading employee I think it would be better to use him as the responsible person? Another point is that the responsible person is available on all the Web Client Views on the first detail block and the other employees are only visible in the "parties involved" block. But the SalesRep doesn't use the system very often.
    What do you think is the best way?
    Best Regards
    Stefan

    Hi,
    I think it makes logical sense to assign SR as employee responsible.
    Please go through the following link for further information on this account.
    http://help.sap.com/saphelp_crm40/helpdata/en/c4/1161f39f6ec94c88c90a11b0820a16/frameset.htm
    Regards,
    Deepak

  • Function Module for fnding all employees under an Org Unit

    Hi,
    Is there any Function module to find the employees of an ORG Unit .
    I need to specify the Org unit Name and get the employees out of it .
    I looked at the FM
    HRCM_ORGUNIT_EMPLOYEE_LIST_GET .
    It has import parameters as
    OTYP
    OBJID
    PATH_ID
    What values do i need to pass.

    hi,
    chk this.
    call function 'HRCM_ORGUNIT_EMPLOYEE_LIST_GET'
    exporting
    plvar = p_plvar
    otype = 'O '
    objid = s_orgeh-low
    begda = p_effdt
    endda = p_effdt
    * PATH_ID = 'O-S-P'
    tables
    pernr_table = i_pernr
    exceptions
    path_error = 1
    root_error = 2
    no_employees_found = 3
    others = 4
    Thanks,
    Anver

  • Partner functions (R/3- CRM) based on employee number (KNVP-PERNR) or CP

    Hi all gurus,
    I am trying to replicate an partner-function base on personnel number/employee number for customers from R/3 to CRM.
    For those partner-functions only the employee number is filled in KNVP-PERNR (the KNVP-KUNN2, KNVP-LIFNR and KNVP-PARNR are empty).
    If I follow the replication process I don't see the employee number getting mapped to the "bapimtcs structure" (in function module COM_BUPA_MWX_CREATE_REL) and therefore those partnerfunctions are not replicated to CRM.
    (all employees are entered in HR-R/3 and downloaded to CRM as business partners)
    Basically this is exatly the same situation described in the following forum:
    [Replicate partner functions (R/3->CRM) base on employee number (KNVP-PERNR)  |Replicate partner functions (R/3->CRM) base on employee number (KNVP-PERNR)]
    What (function modules/configuration) is necessary to get those partner-functions being replicated to CRM?
    Unfortunately I was pretty unable to collect valid solution track.
    Thanks in advance,
    AndreA

    Hi Andrea,
    We were able to solve the exact same issue.
    Here are steps used by us to fix the issue :
    IMG Settings in CRM :
    SPRO>CRM>Basic Functions>Partner Processing> Date Transfer>Distribution of Partner Functions from SAP ECC into CRM>
    Partner Function = VE
    Funciton = Employee  Responsible(00000014)   ( can be any other partner function which is a employee)
    Usage= CRM
    Also make sure the following settings are also done
    SPRO>CRM>Basic Functions>Partner Processing> Date Transfer-->Distribution of Partner Functions from CRM into SAP ECC
    Funciton = Employee  Responsible(00000014)
    Partner Function Cat = Employee
    Scenario = CRM
    R/3 func = VE    ( even though you are using the PE partner function in ECCwe use VE here as you know VE is the german  version of PE)
    Type = MR master record
    Also make sure that SAP Notes 1020514  and 1099363 have been applied in ECC.
    Let me know if you have any issues. This should fix it.
    Thanks
    Edited by: Venkat_30 on Dec 14, 2011 5:15 AM

  • Fm to get employee under manager of all org unit

    hi,
    i have requirement that i need list of all employee under particular manager i know abt HRWPC_PNP_MANAGED_EMPLOYEES but i don't know how to use it is thr any fm reg it .
    thanks in advance

    Hi Rajan,
    Below is the sample code for your reference...
    REPORT zrnd.
    *database tables used
    TABLES:pa0001, "Infotype 0001 (Org. Assignment)
    hrp1001, "Infotype 1001
    pa0002. "Infotype 0002 (Personal Data)
    *internal tables declaration
    **----internal tables for holding
    DATA:t1001 LIKE p1001 OCCURS 0 WITH HEADER LINE,
         t1002 LIKE p1001 OCCURS 0 WITH HEADER LINE,
         t1003 LIKE p1001 OCCURS 0 WITH HEADER LINE,
         t1004 LIKE p1001 OCCURS 0 WITH HEADER LINE,
         t1222 LIKE p1222 OCCURS 0 WITH HEADER LINE,
         t0001 LIKE p0001 OCCURS 0 WITH HEADER LINE,
         t0002 TYPE p0002 OCCURS 0 WITH HEADER LINE.
      DATA: w1222 TYPE hrp1222 .
      DATA : z1222 TYPE hrt1222 OCCURS 0 WITH HEADER LINE.
      DATA: res TYPE swhactor OCCURS 0.
      DATA: wa_res TYPE swhactor.
      Data : f_code type ABTNR,
            p_code type ABTNR,
            f_text type VTEXT,
            p_text type VTEXT,
            s_pernr type Pa0001-PERNR,
            s_name type  pa0001-ename.
    *variable declaration
    **---0 to capture the id of the object "may be orgunit, position, persion.
    DATA: g_sobid1 LIKE p1001-objid,
          g_sobid2 LIKE p1001-objid,
          g_sobid3 LIKE p1001-objid,
    *      *--to capture the personnel number
          g_pernr LIKE pa0002-pernr.
    Constants : c_function type c value 'F',
                   c_Proces   type c value 'P'.
    *selection screen paramters
    **----enter a valid personnel number
    PARAMETERS:p_pernr LIKE pa0002-pernr.
    *start of selection
    START-OF-SELECTION.
    *Get the Position for entered Personnel number
    *----RH_READ_INFTY function module is used for the OM infotypes ..starting with HRP
      CALL FUNCTION 'RH_READ_INFTY'
        EXPORTING
          plvar                = '01'
          otype                = 'P'
          objid                = p_pernr
          infty                = '1001'
          subty                = 'B008'
          begda                = sy-datum
          endda                = sy-datum
        TABLES
          innnn                = t1001
        EXCEPTIONS
          all_infty_with_subty = 1
          nothing_found        = 2
          no_objects           = 3
          wrong_condition      = 4
          wrong_parameters     = 5
          OTHERS               = 6.
      IF sy-subrc = 0.
    *    MESSAGE  'this number is not maintained in hrp1001' TYPE 'I'.
      ENDIF.
    *Get the latest record reading T1001 with following values
      SORT t1001 BY begda DESCENDING .
      READ TABLE t1001 WITH KEY objid = p_pernr "personnel number
      otype = 'P' "Person
      rsign = 'B' "hirarchy top down
      relat = '008' "Holder
      sclas = 'S'. "Position
      IF NOT t1001[] IS INITIAL.
        g_sobid1 = t1001-sobid. "ID of Related Object
    *Get Org unit for the position obtained from above
        CALL FUNCTION 'RH_READ_INFTY'
          EXPORTING
            plvar                = '01'
            otype                = 'S'
            objid                = g_sobid1
            infty                = '1001'
            subty                = 'A003'
            begda                = sy-datum
            endda                = sy-datum
          TABLES
            innnn                = t1002
          EXCEPTIONS
            all_infty_with_subty = 1
            nothing_found        = 2
            no_objects           = 3
            wrong_condition      = 4
            wrong_parameters     = 5
            OTHERS               = 6.
        IF sy-subrc = 0.
        ENDIF.
      ENDIF.
      SORT t1002 BY begda DESCENDING .
      READ TABLE t1002 WITH KEY objid = g_sobid1
      otype = 'S' "Position
      rsign = 'A' "bottom up
      relat = '003' "Belongs to
      sclas = 'O'. "org unit
      IF NOT t1002[] IS INITIAL.
        g_sobid2 = t1002-sobid.
    *Get position for the Org unit (Manager)
        CALL FUNCTION 'RH_READ_INFTY'
          EXPORTING
            plvar                = '01'
            otype                = 'O'
            objid                = g_sobid2
            infty                = '1001'
            subty                = 'B012'
            begda                = sy-datum
            endda                = sy-datum
          TABLES
            innnn                = t1003
          EXCEPTIONS
            all_infty_with_subty = 1
            nothing_found        = 2
            no_objects           = 3
            wrong_condition      = 4
            wrong_parameters     = 5
            OTHERS               = 6.
      ENDIF.
      SORT t1003 BY objid.
      READ TABLE t1003 WITH KEY objid = g_sobid2
      otype = 'O' "org unit
      rsign = 'B' "hirarchy top down
      relat = '012' "Manages
      sclas = 'S'. "Position
      IF NOT t1003[] IS INITIAL.
        g_sobid3 = t1003-sobid.
    *Get Personnel number for the Manager
        CALL FUNCTION 'RH_READ_INFTY'
          EXPORTING
            plvar                = '01'
            otype                = 'S'
            objid                = g_sobid3
            infty                = '1001'
            subty                = 'A008'
            begda                = sy-datum
            endda                = sy-datum
          TABLES
            innnn                = t1004
          EXCEPTIONS
            all_infty_with_subty = 1
            nothing_found        = 2
            no_objects           = 3
            wrong_condition      = 4
            wrong_parameters     = 5
            OTHERS               = 6.
    *    if sy-subrc <> 0.
    *       MESSAGE  'this number is not maintained in hrp1001' TYPE 'I'.
    *      endif.
      ENDIF.
      READ TABLE t1004 WITH KEY objid = g_sobid3
      otype = 'S' "Position
      rsign = 'A' "bottom up
      relat = '008' "Holder
      sclas = 'P'. "Person
      IF NOT t1004[] IS INITIAL.
        g_pernr = t1004-sobid+0(8).
    **--Get name of Manager(Supervisor)
        CALL FUNCTION 'HR_READ_INFOTYPE'
          EXPORTING
            pernr           = g_pernr
            infty           = '0001'
          TABLES
            infty_tab       = t0001
          EXCEPTIONS
            infty_not_found = 1
            OTHERS          = 2.
        SORT t0001 BY pernr begda.
        READ TABLE t0001 INDEX 1.
        IF NOT t0001[] IS INITIAL.
           write  t0001-pernr to s_pernr.
           write  t0001-ename to s_name.
         ENDIF.
        Perform get_function_code using  g_sobid2  .
      ENDIF.
    PERFORM display_results.
    *&      Form  get_function_code
    *       text
    *      -->G_SOBID1   text
    FORM get_function_code USING org_unit.
      PERFORM get_obj USING org_unit.
      PERFORM get_ab USING w1222-tabnr.
      PERFORM get_text tables z1222.
      IF z1222-attrib IS INITIAL.
        CALL FUNCTION 'RH_STRUC_GET'
          EXPORTING
            act_otype              = 'O'
            act_objid              = org_unit
            act_wegid              = 'A002'
    *   ACT_INT_FLAG           =
    *   ACT_PLVAR              = ' '
           act_begda              = sy-datum
           act_endda              = sy-datum
           act_tdepth             = 0
           act_tflag              = 'X'
           act_vflag              = 'X'
           authority_check        = 'X'
    *   TEXT_BUFFER_FILL       =
    *   BUFFER_MODE            =
    * IMPORTING
    *   ACT_PLVAR              =
         TABLES
           result_tab             = res
    *   RESULT_OBJEC           =
    *   RESULT_STRUC           =
         EXCEPTIONS
          no_plvar_found         = 1
          no_entry_found         = 2
          OTHERS                 = 3
        IF sy-subrc <> 0.
    *      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    *             WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
        LOOP AT res INTO wa_res.
          PERFORM get_obj  USING  wa_res-objid.
          PERFORM get_ab   USING w1222-tabnr.
          PERFORM get_text tables z1222.
        ENDLOOP.
      ENDIF.
    ENDFORM.                    "GET_TEXT
    *&      Form  GET_OBJ
    *       text
    *      -->P_OB  text
    *      -->P_OJ  text
    FORM get_obj  USING p_oj.
      SELECT SINGLE * FROM hrp1222 INTO w1222 WHERE otype = 'O'
                                               AND objid = p_oj.
    ENDFORM.                    " GET_OBJ
    *&      Form  GET_AB
    *       text
    *      -->P_TAB  text
    FORM get_ab  USING  p_tab.
      SELECT  * FROM hrt1222 INTO table z1222 WHERE tabnr = p_tab.
    ENDFORM.                    " GET_AB
    *&      Form  GET_TEXT
    *       text
    *      -->P_Z1222_LOW  text
    FORM get_text  tables p_txt STRUCTURE hrt1222.
    loop at p_txt.
    if p_txt-low+0(1) = c_function.
        write p_txt-low to f_code.
      SELECT single vtext FROM zfunctiont INTO f_text  WHERE abtnr = p_txt-low.
        ELSEIf p_txt-low+0(1) = c_Proces.
          write p_txt-low to P_code.
         SELECT single vtext FROM ZPROCESST INTO   p_text  WHERE abtnr = p_txt-low.
          endif.
    endloop.
    ENDFORM.                    " GET_TEXT
    form display_results.
      write :/ s_pernr,
              30 s_name.
      WRITE :/ f_code,
              30  f_text.
      WRITE :/ p_code,
              30  p_text.
      ULINE.
    endform.
    Thanks,
    Chidanand

  • How to extract an employee reporting hierarchy per org unit in spreadsheet

    Hi Guys,
    Can any one advise if there's a standard report I can use to see employee's  reporting hierachy in spreadsheetformat ?
    Report must have per org unit positions with their  related positions :'reports to' A002  relationship between two positions in a specific org unit and person's name/employee number occuping the positions.
    I tried creating joint table but battling to undestand how I can have the two related positions info in the infoset.
    Current standard report give me only positions with reports to relationship but haven't found report showing me positions with reports to relationship and their related position.

    Have you tried using logical database PCH? That gives flexibility to create this kind of report. Create an infoset in SQ02 and an Adhoc Query in SQ01 based on PCH Logical Database. You will need the relationship subtype 'A002' and related object type 'P' on selection screen.
    Edited by: Shafiq Rehman on Feb 6, 2008 4:23 PM

  • Critical abap hr req - How to find the previous org unit of the employee?

    Hi Experts ,
    I need small inputs from your end...
    I need to find the employee org unit based on the latest one.....
    i just want to know if an employe is Transfered from the org unit .....we can check it from the ORG unit.
    My requirement is to now capture only the org unit of IT folks not for the employees who are transfered to NON-IT department.....
    sop if an empployee 5000 org unit belongs to IT of employee 1000 and NOW he transfered out of IT with current 6000 org unit then how can we read that 5000 ?
    now i am using PCH logical data base...
    Based on evaluation path(Pers-0)  i will pick up the pernr 1000.
    now when i check the org unit it is 6000 with end da 12/31/9999.
    then i loop
    select * from pa0001 into itab where pernr = objec--objid and otype = 'P'.
    enselect.
    loop at itab where pernr = objec-objid.
    Here in the loop what is the logic we need to write to pick up the previous org unit please suggest
    endloop.
    Regards
    sas

    >
    Faisal Altaf wrote:
    > Hi,
    >
    > Please Test the following Sample Code hope it will solve out your problem,
    >
    >
    TABLES: pa0001.
    >
    > DATA: it_pa0001 LIKE STANDARD TABLE OF pa0001 WITH HEADER LINE,
    >       begda TYPE begda.
    >
    > SELECT SINGLE begda FROM pa0001 INTO begda
    >   WHERE pernr = '00000001'
    >     AND endda = '99991231'.
    >
    > begda = begda - 1.
    >
    > SELECT * FROM pa0001
    >   INTO CORRESPONDING FIELDS OF TABLE it_pa0001
    >   WHERE pernr = '00000001'
    >     AND endda = begda.
    >
    > Please Reply if any Issue,
    >
    > Best Regards,
    > Faisal
    Hy Faisal...what is the begda value there?
    Regards
    sas

Maybe you are looking for

  • Document Split for Manually Cleared Items

    Hi SDN, Is there a way to inherit the document splitting characteristics for manually cleared items? To give you an example, please see below scenario in General Ledger View Invoice Dr Expense                 Cost ctr 10001 Cr Trade Creditors      Co

  • Can't access "Overprint & Transparency Flattening" Options in Save As PDF Dialogue.

    I really need help here. Because of printer driver issues, I've lately been forced to outline/flatten all of my text in my PDFs so that we can print them in the office. Since installing the latest update however, I'm now unable to access the "custom"

  • Master-Details-Details

    Salam Alikom i know we can use Master and details in apex but if i have (master - detail - detail ) for 3 tables like Countries table State table Areas table in oracle form it's very easy by wizard , do we have this in apex ? or any way to solve that

  • Adds new options in portal menu

    I need add a new option in the portal menu. The option is a copy of standard option (pz17). Y have done a copy of the standard report asociated to pz17 (RHDPERSL). I modify ZRHDPERSL I have assigned the report ZRHDPERSL to the transaction zpz17 in ta

  • Log the authenticated users

    My "imsimta version" output is given below. iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004) libimta.so 5.2 Patch 2 (built 19:30:12, Jul 14 2004) SunOS auth02 5.9 Generic_118558-06 sun4u sparc SUNW,Sun-Fire-V240 I have setup smtp authenticati