ORG.UNIT VALID

HI,
1)i wont to now how i find the org.unit valid dates begda & ennda
i now that i have to take it from hep1000 or 1001,
2)i wont to now how i now if org unit is valid or not
regards

T527X is table for org units....
so use this....
parameters : p_orgeh like t527x-orgeh,p_begda like t527x-begda,p_endda like t527x-endda.
data : v_orgeh like t527x-orgeh.
select single orgeh from t527x into v_orgeh where orgeh = p_orgeh and begda le p_endda and endda ge p_begda.
if sy-subrc = 0.
*--valid
else.
*--invalid
endif.
valid org unit should be present in t527x.
if u have pernr and want to check whether he belongs to valid org unit...then proceed like this....
select orgeh from pa0001 into v1_orgeh where pernr = p_pernr and begda le v_endda and endda ge p_begda.
if sy-subrc = 0.
*--proceed in above way...but use v1_orgeh instead of p_orgeh
endif.
Regards
Vasu

Similar Messages

  • Org Unit Validity Period change

    Hi Experts,
    Can any you please let me know, is there any option of changing the Org Unit Validity period.
    Ex: By mistake I have created an Org unit with Start Date as 01.01.0091 and End Date 31.12.9999.
    Now I would want to change the Validity period of Start Date from 01.01.0091 to 01.01.1900.
    This would be really helpful for me.
    Thank You,
    KishoreJ

    Hi
    you can do this by date preview  icon or delimit options.
    Regards
    Suresh

  • Org.unit dates

    hallow
    1)i wont to now how i find the org.unit valid dates begda & ennda
    i now that i have to take it from hep1000 or 1001,
    2)i wont to now how i now if org unit is valid or not
    regards

    Hi,
    go to PP01,give plan version -current plan,object type - organisational unit
    check for its validity dates and  relationships.
    Regards,
    Manoj.

  • Empty start validity date for an org unit

    Dears!
    some time ago we discovered a disturbing issue in Productive data. Some org units have an empty start date. I have no idea how it could be created by users, but now we need to solve it.
    The records with empty start date are visible in PP01 only in Display mode.
    The program RE_RHBEGDA0 (New start date) doesn't help. After running the new record for an object is created but there is still remaining the record with empty start date, but with shifted end date...
    Do you have any idea how to solve this?
    Thanks all in advance,
    Anastasia

    Hi,
    You are right - user definitely couldn't create it. Probably you need to ask you ABAPer.
    I can suggest you to try to copy original record and replace empty start date with valid one: PP01, IT1000, copy, change start date, save.
    Cheers!

  • BADI or Enhancement Spot while assigning BP to a Org Unit

    Hi,
    I have a requirement of changing the BP address while assigning the BP to a Org Unit in PPOMA_CRM. Is there any BADI or Enhancement Spot which can be used for this purpose.
    Thanks,
    Ravi G

    Hi Ravi
    Regarding this thread I want a help from your side if you can help me please.
    I have to put some validation for the assigned employee and the position under which the employee is beeing assigned.
    Is there any badi or Enhancement spot that can resolve my problem.
    the validation will be done as soon as we select the employee that will be assigned to the position and press the ENTER.
    It is done before SAVE.
    Best Regards
    Saurabh

  • Duplicate period appearing in German when creating new Org Unit in PPOME

    Hi Guys,
    My users are encountering a problem when they create an Org. Unit/Position in PPOME.
    Whenever a new Org. Unit is being created (lets assume with the validity date of 01.11.2006), an earlier period would automatically be created, thus making the object having 2 periods.
    Upon clicking on the "Select Period" icon for the object in the Detail area of the screen, 2 lines of periods are being displayed.
    When i view the second period, i would see the correct details of the Org. Unit that was keyed in by the user.
    However, when i view the first period, the details are all on German language (this record was not created by the user at all).
    Therefore, i checked the tables T528B and T528T, i found duplicate records for certain Object IDs. It seems the Org Unit that was created by the user is being appended after the Org Unit that is in German.
    Any ideas on how to clean up those lines of data that is appearing in German and prevent such an occurance from happening in future?
    Thanks in advance

    Hi Duxton,
    Thanks for the reply.
    I followed your instructions but i am unable to detect anything out of the ordinary.
    I'm compared the configuration in Development again Production and they are the same.
    However, the problem i described in this thread is not appearing in Development. It is just happening in Production.
    Any other ideas?
    It's not really affecting my client's business process but i would like to know what is causing it out of curiousity

  • Org unit relation ship periods

    Dear All,
    Scenario:-
    I have created a root or unit,under this root org unit i have created additional org units but the validity period box contains to validity periods are there.
    organisational unit  :
    Link text string :
    The above two will be displayed as Object period and relationship period on the screen.
    Here my doubt is if i enter the date for organisational unit beyond the root organisational unit its allowing but in case of link text string(relationship period) its not allowing.
    can any body explain the logic behind this issue.
    Thanks inadvance
    Regards
    Ananya.K

    Hi,
    System will allow you to create Any number of Org units as the sys doesnot know which is the root org unit , Sub unit  but when your maitaing relation ship it will check based the relation your goping to assign.
    Regards,
    Sri

  • Org unit Hierarchy structure  at Key date

    Hello Friends,
    We have an issue with  displaying HR Org unit hierarchy structure  between two calendar months.
    The BI Report has a selection parameter to select Org unit hierarchy , Calendar month From  and Calendar month To
    The BI Report is  to display the no.of sick absence days for employees in a chosen Org unit hier.
    Employee  A had a sick absence of 5 days  in  the month 04.2011  in the Org unit X .  The same employee had a sick absence of 4 days in 05.2011.The Org unit X then delimit in 05.2011 , the Org unit X is no longer in Org structure from 05.2011.
    When we run the report for 04.2011  to 04.2011 , the employee A is showing  absence   under Correct Org unit ie X with correct Org structure .
    When  we run the Report for 05.2011 to 05.2011 , the employee A is showing absence under  hierarchy Org unit Not assigned which is OK .
    But the issue is when we run the Report from 04.2011 to 05.2011 , The employee A absence days 9 (5 +4 ) showing under Not assigned Org unit hierarchy structure which is  the latest Org unit .
    When I deactivate the Org unit hierarchy  and choose tech name of Org unit , It is showing correct Org unit key
    But The user would like to see 5 days under org unit X  and 4 days under Not assigned with  Correct Org unit hier structure  when we run the Report from 04.2011 to 05..2011  .
    We have a user Exit variable  for  the Key date  in the Bex Report  which  seems to be taking only one date at any time .
    Is  there any way to get the correct figures under Org unit hier structure where  employee had absence in when we put range of calendar months on a selection screen ?
    Any advice appreciated.
    Thanks.

    Hi,
    You can try adding two more attributes to Org Unit as "Calender month from" and "Calender month to".
    In these attributes maintain the validity period for the corresponding master data.
    For example, in your case you can maintain the master data as:
    Employee | Org Unit | Calender month from |Calender month to | sick absence
    A | X | 4.2011| 4.2011 | 5 days
    A |    | 5.2011 | 05.2011 | 4 days
    And in report use variables for Calender month from" and "Calender month to".
    Hence, when user executes the report with selection as:
    Calender month from" = 04.2011
    "Calender month to"    =  05.2011
    The data will be read from master data based on these selections along with key date and report will show output as expected.
    Employee | Org Unit | Calender month from |Calender month to | sick absence
    A | X | 4.2011| 4.2011 | 5 days
    A |    | 5.2011 | 05.2011 | 4 days
    Hope this works for you.
    Regards,
    Geetanjali

  • Missing Org unit from position ID

    Hi Gurus,
    Could you please provide additional information which I have missed out that would help resolve the issue.
    Problem Statement:
    Position ID XXX originally belongs to O XXXXXXXX [Sample Org 1].  When HR Recruitment administrator performed action to move structure reporting to another O YYYYYYYY [Sample Org 2], the record went missing as the action done was CHANGE instead of COPY.  This had caused two ex-staff showed no Cost Center & Org Unit. Now, user is trying to reinstate S XXX to O XXXXXXXX [Sample Org 1] but is prompted with an error message - Company code cannot be determined for cost center 52222.
    Action Taken:
    1. Checked S 5111111 and found that it is currently under O YYYYYYYY and currently occupied by P 123456 (validity period is from 01.11.2010 to 30.04.2011)
    2. Checked  account assignment of S 5111111 to confirm the company where it is assigned to. It reflects that position inherited attributes O YYYYYYYY [Sample Org 2] to which the position is currently under
    3. Checked account assignment of O YYYYYYYY it only contains the controlling area which is TTTT. I then checked IT0001 of the current employee who is holding the position and company code reflecting is CCC.
    4. Checked account assignment of O XXXXXXXX where they want to reinstate the position and it only contains the controlling area which is TTTT and master cost center is 52222. I checked one employee under the said Org to verify to which company it is currently under and found that it is the same, CAT. At this point, I do not see any issues as to why it is not allowing them to create A003 rel to O XXXXXXXX .
    Note: I was not able to replicate the error since it is working fine in dev given the same scenario.
    Findings:
    The only thing that I can see is on the validity date. If they are to reinstate the position to where it has been originally assigned which is under O XXXXXXXX [Sample Org 1], it should not overlap with current record since there is somebody occupying the post. If it does overlap then it will automatically delete the existing record.
    In addition, I have managed to check transaction S_AHR_61016528 (B011 eval path) and found validity period of cost center to O XXXXXXXX is 01.04.2002. If user is trying to establish A003 rel for S 5111111 and validity period used is 01.01.1997. Would that matter why user is getting the said error. I have tested and was able to create rel successfully.
    Would appreciate if you guys could share how else the position can be reinstated to the old org unit.
    Thank you.

    Hi Gurus,
    Could you please provide additional information which I have missed out that would help resolve the issue.
    Problem Statement:
    Position ID XXX originally belongs to O XXXXXXXX [Sample Org 1].  When HR Recruitment administrator performed action to move structure reporting to another O YYYYYYYY [Sample Org 2], the record went missing as the action done was CHANGE instead of COPY.  This had caused two ex-staff showed no Cost Center & Org Unit. Now, user is trying to reinstate S XXX to O XXXXXXXX [Sample Org 1] but is prompted with an error message - Company code cannot be determined for cost center 52222.
    Action Taken:
    1. Checked S 5111111 and found that it is currently under O YYYYYYYY and currently occupied by P 123456 (validity period is from 01.11.2010 to 30.04.2011)
    2. Checked  account assignment of S 5111111 to confirm the company where it is assigned to. It reflects that position inherited attributes O YYYYYYYY [Sample Org 2] to which the position is currently under
    3. Checked account assignment of O YYYYYYYY it only contains the controlling area which is TTTT. I then checked IT0001 of the current employee who is holding the position and company code reflecting is CCC.
    4. Checked account assignment of O XXXXXXXX where they want to reinstate the position and it only contains the controlling area which is TTTT and master cost center is 52222. I checked one employee under the said Org to verify to which company it is currently under and found that it is the same, CAT. At this point, I do not see any issues as to why it is not allowing them to create A003 rel to O XXXXXXXX .
    Note: I was not able to replicate the error since it is working fine in dev given the same scenario.
    Findings:
    The only thing that I can see is on the validity date. If they are to reinstate the position to where it has been originally assigned which is under O XXXXXXXX [Sample Org 1], it should not overlap with current record since there is somebody occupying the post. If it does overlap then it will automatically delete the existing record.
    In addition, I have managed to check transaction S_AHR_61016528 (B011 eval path) and found validity period of cost center to O XXXXXXXX is 01.04.2002. If user is trying to establish A003 rel for S 5111111 and validity period used is 01.01.1997. Would that matter why user is getting the said error. I have tested and was able to create rel successfully.
    Would appreciate if you guys could share how else the position can be reinstated to the old org unit.
    Thank you.

  • Can a position be linked to more than one org unit by A012 relation in SRM?

    Hi All,
    In the HR Org structure in ECC, a position (S) can have more than one A012 relation with different organization units (O).
    For example:
    S 123 has a A012 relation with Org unit A; validity date: 04/04/2006 to 12/31/9999
    S 123 has a A012 relation with Org unit B; validity date: 06/01/2006 to 12/31/9999
    org unit B falls under Org unit A in the Org unit hierarchy structure.
    But, in SRM I find that only one relation A012 linking S to O can be maintained, which is:
    S 123 has a A012 relation with Org unit B; validity date: 06/01/2006 to 12/31/9999
    I tried passing the data again through PFAL transaction (update mode), but the data in SRM does not change.
    Is this standard behaviour? Can't a person manage more than one org unit in SRM?
    I am currently working on SRM 5.0 with ECC 6.0 as backend.
    Regards,
    Ancy

    Hi,
    This functionality only relates to users who are professional
    purchasers. It means that they can be responsible for more than one
    purchasing group. In past releases, they were responsible for the
    purchasing group that they hung from in the org structure. Since some
    customers wanted that they could be responsible for more than one
    purchasing group, but the system would not allow the purchaser to belong
    to more than one org unit. Hence they introduced the new functionality
    that I described above. However it is not technically possible for a
    user to belong to more than one org unit since this would lead to
    inconsistencies in the way that the attributes work.
    I hope this helps.
    Kind Regards,
    Edel.

  • Logs of ORG UNIT

    Hi ,
    How to check logs of ORG UNIT like assignment of roles, removal of roles and validity changes to ORG UNIT ???

    We have prod system in which role assignment is indirect.. Like roles are assigned to ORG UNIT and POSITION
    We dont assign roles user based..
    Structure is like this..
    ORG UNIT ---> Positions -
    > Users
    Under ORG unit , there would be several POSITIONS and under POSITION there would be several users..
    Some one has removed roles from ORG UNIT and all users under this ORG UNIT lost access....
    We need to find out who did it ....

  • Restrict employee postion to current based on Org Unit

    Hi,
    We have recently implemented structural Authorization and I am now trying to create a query based on Org Unit.
    The query is to show employee by position based on org unit. I have made org unit auth relevant and created a hierarchy variable as the restriction. In the row/columns I have included Org unit with hierarchy activated, position and employee. The KF is Actual time.
    When I execute the report it is bringing leavers and people in old positions. To remove leavers I included a restriction on person to remove anyone in the position 99999999.
    But this is still showing people in old postions. These positions have been end dated in the system and current positions have date 31/12/9999.
    Does anyone know how I can restrict position to only show current positions?
    Thanks

    Hi,
    as suggested i have made the query time dependant be selecting "key date" in the proerties, but this still brings in postions that have been end dated.
    Is there a way to restrict postions by validity. The query is based on time management info cube
    thanks

  • Org unit hierachies

    All,
    We are using org unit hierachies.  Is it true you can not report on historical data while using org unit hierachies?
    e.g data is only accurate when we run a report for a current month.
    Thanks,
    Nick.

    Hi SD,
    The issue we are having is when reporting retrospectively, the organisational structure used in the reports is valid as at the day of running the report i.e. the system date and not the retrospective date entered by the end user.  The impact of this is that the result set is restricted by today's org structure which may not resemble the historical org structure. For example, if an organisational unit has been end dated it will not appear in the reporting hierarchy, therefore, colleagues assigned to the end dated organisational unit, will not appear in any reports or dashboards.
    Any help on how to report historically using org units as as the SAP standard orgunit is only compatible for current month.
    Many thanks,
    Nick.

  • 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

  • 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

Maybe you are looking for

  • Error when I run a flow

    friends can help me with this error please. ODI-1228: Task MAP_ST_PO_VENDORS (Integration) fails on the target ORACLE connection ODI_STAGE. Caused By: java.sql.SQLSyntaxErrorException: ORA-04045: errors during recompilation/revalidation of ODI_STAGE.

  • During down payment of asset po  can any body solute the problem

    the following message is coming during down payment of asset po **purchase document allocated to asset** Purchase document is allocated to asset Message no. F5378 Diagnosis The asset number   assigned in the purchase document is different from the as

  • Attaching docs to a dispute case

    Hi all, Is it possible to attach docs while creating a new dispute case manually at FBL5N? I mean attach the documents during the creation and not later? Thanks for your inputs!

  • GR VALUATION

    Dear Gurus, My problem is regarding the valuation of GR in case of imported material. The issue is this that after the material is received the value In FI documents  Additional custom duty is been added upon the basic inventory cost which should not

  • Win 7 Home Premium Restore error 0xe0ef0003 - Boot Mgr Missing - on Pavilion s5257c desktop

    Hi.  I have a Pavilion s5257c with Windows 7 (64bit) installed.  The computer had been going to blue screen and memory dump randomly for several months.  I decided to do a system restore with previously created recovery disks.  Did not work and recei