Database PCH

Hi Experts,
with the following macros I can restrict the results on the database PCH.
TABLES: objec.
START-OF-SELECTION.
RH-SET-INDEX-INFTY '1007'.
RH-CONDITION-LINE VACAN EQ 'X' SPACE.
RH-SET-INDEX-INFTY-CONDITION.
GET objec.
Is it possible to repeat the macro RH-CONDITION-LINE? I tried to do it that way and only the last line condition seems to be executed.
Is there a documentation regarding the macros for the database PCH?
Any Helpfull answer?
thanks...

FYI
Logical database PCH is large and can take a while to run.
To improve performance it is possible to restrict the hit on the database by filtering on any field,
for example when retrieving records from infotype P1007 (vacancy) for current vacancies you can
include the following code before the get statement:-
CONSTANTS: $1007 LIKE P1007-INFTY VALUE '1007'.
START-OF-SELECTION.
RH-SET-INDEX-INFTY $1007.
RH-CONDITION-LINE VACAN EQ 'X' SPACE.
RH-SET-INDEX-INFTY-CONDITION.
GET objec.
This will retrieve only those records from the logical database where the field p1007-vacan = 'X', otherwise you would need to retrieve all records first and then filter on p1007-vacan (where vacan = 'X')
Cant explain this code as cant find any documentation on it but it is used in SAP standard.
The call sequence of PCH macros facilitates fast object selection using value conditions of infotype fields (infotype index). You must use this call sequence when objects are
selected for sequential evaluations on the basis of whether infotypes exist with specific field values, rather than using the object ID.
     The RH-SET-INDEX-INFTY macro specifies the infotype to be indexed.
     The parameters of the RH-CONDITION-LINE macro are:
Parameter  1 : Field name (for example,  ABTEL)
Parameter  2 : Condition (for example, EQ, BT)
Parameter  3 : Value (for example, "X")
Parameter  4 : Value (for Between)
The RH-SET-INDEX-INFTY-CONDITION macro is used to set the condition as an index.
You can use this method for sequential evaluations, but not for structural evaluations
^ Saquib

Similar Messages

  • Logical database PCH (HR)

    I need to use logical database PCH. Can anyone give me an example to use it with GET OBJID?.
    Thank you.

    Hi,
    the following link may also helpfull for you.
    http://www.sap-press.de/download/dateien/860/sappress_mysap_hr_technical_principles2.pdf
    Regards
    Bernd

  • Logical database PCH,Extended Object ID

    When using logical database PCH.I found Object structure has a component REALO means extended object id.
    Can somebody give a example to show the actual meaning of extended object id?
    thanks.
    Edited by: Lanmbor Yang on May 30, 2008 8:40 AM

    I answer to myself, FM HR_MACO provides the information I need.
    Anyway thanks for the interest

  • Selection screen of logical database PCH

    Hi all,
    I am writing a report using the logical database PCH. For this report I need the full selection screen of the logical database, especially the structure parameters. However, wenn I test my program, I only get a reduced selection screen without the structure parameters and the "further conditions". According to the documentation I found, this behaviour appears when you set the selection screen version to '900' in the program attributes. In my program, the selection screen version is empty, and I still get the reduced screen. The missing selection fields are even totally unknown to the ABAP compiler. E.g. when I try to assign the field PCHWEGID in my report, I get a "field unknown" error message from the compiler.
    I have compared my report in various aspects to the standard report RHSTRU00 which shows the behaviour I want, I did not find any difference, and yet I get a different behaviour.
    Any ideas how to fix this?
    Thank you
    Alexandre

    Hi,
    Did you declare the below statement?
    TABLES: OBJEC, GDSTR.
    Regards,
    -Sandeep

  • Logical Database PCH

    Hi experts.
    I need to use the logical database PCH because is necessary to report on Personnel Planning data, my business requirement is get all the employees that participated in all  training course types. My development by a selection screen to provide the relation   the "business event type" for all "business events"  of this type,  as well as all the employess that participated in the all "business event".
    Please someone can send me a code of example for to get this relation.
    Regards,
    Jose.

    Hi,
    the following link may also helpfull for you.
    http://www.sap-press.de/download/dateien/860/sappress_mysap_hr_technical_principles2.pdf
    Regards
    Bernd

  • Selection-screen logical database PCH

    Hello!!
       I need click a pushbutton (key date) on a selection screen of a logical database (PCH) before the programm is executed.
    Regards.

    For a ABAP I used this "quick and dirty" solution:
    *Add selectoption (or in your case button)
    SELECT-OPTIONS s_ssl FOR iooper-ssavd.
    INITIALIZATION.
    perform hide_selection_screen.
    AT SELECTION-SCREEN output.
    perform hide_selection_screen.
    FORM perform hide_selection_screen.
      LOOP AT SCREEN.
        IF screen-name CS 'S_WERK'.
          MOVE '0' TO screen-active.
          MODIFY SCREEN.
        ENDIF.
    ENDLOOP.
    ENDFORM perform hide_selection_screen.
    You can hide all required radiobuttons by adding them to the loop. The buttonclick can be catched at the previous mentioned event.

  • Issues with parallel processing in Logical Database PCH and PNP

    Has anyone encountered issues when executing programs in parallel  that utilizes the logical database PCH or PNP?
    Our scenario is the following:
    We having have 55 concurrent jobs that execute a program that use the logical database PCH at a given time.  We load the the PCHINDEX table with the code below.
          wa_pchindex-plvar = '01'.
          wa_pchindex-otype = 'S'.
          wa_pchindex-objid_low = index_objid.
          APPEND wa_pchindex TO pchindex.
    We have seen instances where when the program is executed in parallel, with each process having its own range of positions id's, that some positions are dropped or some are added that is outside the range of the given process.
    For example:
    process 1 has a range of positions ID's 1-10
    process 2 has a range of positions ID's 11-20
    process 3 has a range of positions ID's 21-30
    Process 3 drops position 25 and adds position 46.
    Has anyone faced a similar issue?
    Thanks for your help.
    Best Regards,
    Duke

    Hi,
    first of all, you should read [Using Parallel Execution|http://download.oracle.com/docs/cd/B19306_01/server.102/b14223/usingpe.htm#DWHSG024] in documentation for your version - almost all of these topics are covered there.
    1. According to my server specification how much DOP i can specify.It depends not only on number of CPU. More important factors are settings of PARALLEL_MAX_SERVERS and PARALLEL_ADAPTIVE_MULTI_USER.
    2. Which option for Setting Parallel is good - Using the 'alter table A parallel 4' or passing the parallel hints in the sql statementsIt depends on your application. When setting PARALLEL on a table, all SQL dealing with that table would be considered for parallel execution. So if it is normal for your app to use parallel access to that table, it's OK. If you want to use PX on a limited set of SQL, then hints or session settings are more appropriate.
    3. We have a batch processing jobs which are loading data into the tables from flat files (24*7) using sql loader. is it possible to parallel this operation and any negative effect if enabled parallel.Yes, refer to documentation.
    4. Query or DML - which one will be perform best with parallel option.Both may take advantages of using PX (with some restrictions to Parallel DML) and both may run slower than non-PX versions.
    5. What are the negative issue if parallel option is enabled.1) Object checkpoint happens before starting parallel FTS (true for >=10gR2, before that version tablespace checkpoint was used)
    2) More CPU and memory resources are used with PX - it may be both benefit and an issue, especially with concurrent PX.
    6. what are the things to be taken care while enabling the parallel option.Read the documentation - it contains almost all you need to know. Since you are using RAC, you sould not forget about method of PX slaves load balancing between nodes. If you are on 10g, refer to INSTANSE_GROUPS/PARALLEL_INSTANCE_GROUPS parameters, if you are using 11g then properly configure services.

  • Do we have macros which we can use for the Logical Database PCH

    Dear Friends
                 I would like to know when we are using the
    Logical Database PCH .....do we have any macros
    for getting latest record etc.
    i.e i mean to say the macros which we use
    Rp-provide-from-last  in PNP logical Database
    do we have same facility in PCH logical database please let me know
    regards
    madhuri.

    hi madhuri,
    we use same macro.
    instead of get pernr .
    in pnp here  we give
    GET OBJEC.
    use this macro
    PAP_PROVIDE_FROM_FIRST P0001 SPACE PA$BEGDA PA$ENDDA
    PAP_PROVIDE_FROM_LAST P0001 SPACE PA$BEGDA PA$ENDDA.
    regards,
    sandeep patel
    Edited by: Sandeep patel on Jul 4, 2008 1:33 PM

  • Difference between PNP and PCH logical database

    WHats the difference between PNP nd PCH? When to use which??
    Tx

    Hi,
    The Difference is only with in an SAP R/3 system in which Concurrent Employment is active, reports are executed by the PNPCE logical database. The general logic of the PNPCE logical database corresponds to the PNP logical database. The PNPCE logical database can also process the concept of Concurrent Employment.
    HR Logical Databases
    In Human Resources (HR), the following logical databases can be used as a data source for HR InfoSets:
    PNP (PNPCE)
    PAP
    PCH
    By selecting a logical database, you determine the HR data that can be reported on using an InfoSet.
    Logical Database PCH
    This logical database generally enables you to report on all HR infotypes. However, you are advised not to use this logical database unless you want to report on Personnel Planning data.
    Logical Database PNP (or PNPCE)
    Use logical database PNP to report on HR master data. It is possible to use logical database PCH to access this data, but PNP meets such reporting requirements more quickly because it is best suited to the task of selecting persons.
    Logical database PNP enables you to access HR master data and infotypes from Personnel Planning. For example, you have the following options:
    Reporting on the costs, number of attendees booked, and instructor for a business event on which an employee is booked
    Reporting on working time and planned compensation for a position that an employee occupies
    Reporting on the validity and proficiency of a qualification that an employee fulfils
    From a technical perspective, this means you can use PNP to report on all of the infotypes that exist for objects (infotype 1000) that have a direct relationship (infotype 1001) with the Person object.
    The ability to access infotypes from Personnel Planning using logical database PNP is a special feature that you can only use in the context of SAP Query and Ad Hoc Query. You cannot use this functionality for ABAP reports you programmed yourself.
    You can also use logical database PNP to report on data from Personnel Time Management (infotypes 2000 to 2999) and Payroll (special payroll infotypes for the USA and customer infotypes; for more information, access Customizing for the Human Resources Information System and see Payroll Results).
    Logical Database PAP
    Logical database PAP enables you to access data from Recruitment.
    Check this link for more details
    http://help.sap.com/saphelp_erp2004/helpdata/en/e1/e1f83f6e5a11d687620000e82158f1/frameset.htm
    <b>Reward points</b>
    Regards

  • Macro for PCH database

    Hello,
    with the following macros I can restrict the results on the database PCH.
    TABLES: objec.
    START-OF-SELECTION.
    RH-SET-INDEX-INFTY '1007'.
    RH-CONDITION-LINE VACAN EQ 'X' SPACE.
    RH-SET-INDEX-INFTY-CONDITION.
    GET objec.
    Is it possible to repeat the macro RH-CONDITION-LINE? I tried to do it that way and only the last line condition seems to be executed.
    Is there a documentation regarding the macros for the database PCH? Google didn't find a thing about it.
    Thanks,
    Aline

    Hi
    The system by default gets populated in the date field. All other macros which are provided by SAP, will behave in the same way.
    Incase u need to display date as per your requirement, you may refer to existing SAP Macros, which u can get from any of the standard programs.
    Regards
    rams

  • LOGICAL DATABASE IN HR ABAP PRPGRAMMING

    Hi Friends,
    what is use of LOGICAL DATABASE IN HR ABAP PROGRAMMING
    AND END-OF-SELECTION EVENT IN HR PROGRAMMING PROGRAMMING???
    regards,
    vijay.

    hi
    HR Logical Databases
    In Human Resources (HR), the following logical databases can be used as a data source for HR InfoSets:
    PNP (PNPCE)
    PAP
    PCH
    By selecting a logical database, you determine the HR data that can be reported on using an InfoSet.
    Logical Database PCH
    This logical database generally enables you to report on all HR infotypes. However, you are advised not to use this logical database unless you want to report on Personnel Planning data.
    Logical Database PNP (or PNPCE)
    Use logical database PNP to report on HR master data. It is possible to use logical database PCH to access this data, but PNP meets such reporting requirements more quickly because it is best suited to the task of selecting persons.
    Logical database PNP enables you to access HR master data and infotypes from Personnel Planning. For example, you have the following options:
    Reporting on the costs, number of attendees booked, and instructor for a business event on which an employee is booked
    Reporting on working time and planned compensation for a position that an employee occupies
    Reporting on the validity and proficiency of a qualification that an employee fulfils
    From a technical perspective, this means you can use PNP to report on all of the infotypes that exist for objects (infotype 1000) that have a direct relationship (infotype 1001) with the Person object.
    The ability to access infotypes from Personnel Planning using logical database PNP is a special feature that you can only use in the context of SAP Query and Ad Hoc Query. You cannot use this functionality for ABAP reports you programmed yourself.
    You can also use logical database PNP to report on data from Personnel Time Management (infotypes 2000 to 2999) and Payroll (special payroll infotypes for the USA and customer infotypes; for more information, access Customizing for the Human Resources Information System and see Payroll Results).
    Logical Database PAP
    Logical database PAP enables you to access data from Recruitment.
    regards
    navjot
    reward if helpfull

  • Logical database definition

    Hi Experts ,
    I am trying to execute a program with logical database .
    It is showing error that logical database is unknown.
    REPORT  ZHRTRAIN.
    tables :pernr.
    Infotypes: 0002.
    data: begin of name,
    nachn like p0002-nachn,
    vorna like p0002-vorna,
    end of name.
    select-options : nation for p0002-natio.
    GET PERNR.
      provide * from p0002 between pn/begda and pn/endda.
      check nation.
      move-corresponding p0002 to name.
      condense name.
      write : / p0002-pernr,
      name,
      p0002-natio,
      p002-gebat.
      endprovide.
    Pls tell me how to correct this error.
    Thank you.
    Regds,
    devika.

    HR Logical Databases
    In Human Resources (HR), the following logical databases can be used as a data source for HR InfoSets:
    PNP
    PAP
    PCH
    By selecting a logical database, you determine the HR data that can be reported on using an InfoSet.
    Logical Database PCH
    This logical database generally enables you to report on all HR infotypes. However, you are advised not to use this logical database unless you want to report on Personnel Planning data.
    Logical Database PNP
    Use logical database PNP to report on HR master data. It is possible to use logical database PCH to access this data, but PNP meets such reporting requirements more quickly because it is best suited to the task of selecting persons.
    Logical database PNP enables you to access HR master data and infotypes from Personnel Planning. For example, you have the following options:
    Reporting on the costs, number of attendees booked, and instructor for a business event on which an employee is booked
    Reporting on working time and planned compensation for a position that an employee occupies
    Reporting on the validity and proficiency of a qualification that an employee fulfils
    From a technical perspective, this means you can use PNP to report on all of the infotypes that exist for objects (infotype 1000) that have a direct relationship (infotype 1001) with the Person object.
    The ability to access infotypes from Personnel Planning using logical database PNP is a special feature that you can only use in the context of SAP Query and Ad Hoc Query. You cannot use this functionality for ABAP reports you programmed yourself.
    You can also use logical database PNP to report on data from Personnel Time Management (infotypes 2000 to 2999) and Payroll (special payroll infotypes for the USA and customer infotypes; for more information, access Customizing for the Human Resources Information System and see Payroll Results).
    Logical Database PAP
    Logical database PAP enables you to access data from Recruitment.
    See also:
    HR InfoSets for InfoSet Query
    InfoSets in the HR Application

  • Using ldb  PCH in HR

    hi ,
    can somebody give me sample code for using PCH logical database. and the events used in it

    In Human Resources (HR), the following logical databases can be used as a data source for HR InfoSets:
    PNP (PNPCE)
    PAP
    PCH
    By selecting a logical database, you determine the HR data that can be reported on using an InfoSet.
    PCH
    This logical database generally enables you to report on all HR infotypes. However, you are advised not to use this logical database unless you want to report on Personnel Planning data.
    The InfoSet is based on logical database PCH
    Provided that object selection is switched on, InfoSets based on this database enable you to use InfoSet Query to select objects of one object type, such as business events, qualifications, and positions. You can use all of the fields of infotypes allowed for the object in question, and all of the object types and their allowed infotypes that can be related with the selected object type, as selection criteria and for output.
    When you create an InfoSet, you determine the object type that you can select using an InfoSet. The generated InfoSet can only be used to select this particular object type. If you want to create reports for business events, qualifications, or positions, for example, you must create three separate InfoSets. This means the reports can only be executed separately.
    If you do not select an object type when you create the InfoSet, you can only use the InfoSet for InfoSet Query if object selection has been switched off.
    Kanagaraja L

  • Hr report using pch not working

    I am trying to create a report using logical database pch.here is the code
    TABLES: objec,
            gdstr.
    INFOTYPES: 0002,
               1003.
    GET objec.
      LOOP AT p1003
         WHERE begda LE pc-begda
         AND   endda GE pc-begda.
         write: / p1003-abtel.
      ENDLOOP.
    but p1003 is not filled with value .
    Anyone pls help me out

    did you include start-of-selection and end-of-selection?
    example:
    TABLES: objec,
    gdstr.
    INFOTYPES: 0002,
    1003.
    start-of-selection.
    GET objec.
    LOOP AT p1003
    WHERE begda LE pc-begda
    AND endda GE pc-begda.
    write: / p1003-abtel.
    ENDLOOP.
    end-of-selection.
    Warren
    Message was edited by:
            Warren Clements

  • PCH: Value help for Object ID

    Hi Experts,
    I have a question regarding Logical Database PCH.
    We know LDB PCH is OM based and we have  default "Object ID field " and "Reporting period field " at the selection screen.
    I have kept "Reporting period" as "Key date" 31.12.2010. I  wanted to select an Org unit from the "Org. Structure Search" at the ""Object ID field " value help . But I can see the "Org. Structure"  corresponding to  "Today's date" all the time.
    For eg: Org unit 1111111 was delimited on 01.01.2011.  I wanted to se the Org. structure for 31.12.2010. So I put the key date as 31.12.2010. Since the above org. unit is delimited on 01.01.2011, it was expected to see in the Org. Structure at the "Object ID" value help . But unfortunately, it is not displayed, since the Org. Structure is shown based on Toda's date.
    If anybody comes across such a scenario, please provide your inputs .
    Thanks in advance,

    There is a search component that can be used for this purpose.
    This is one function out of several. I don't have the complete implementation at hand but this will give you the first idea.
    CALL METHOD cl_crm_uiu_prod_tools_search=>eh_onclosepopup_return_product     
       EXPORTING       
          ir_search_popup = search_popup     
       CHANGING       
          cr_context_node = lv_target_node       
          cv_index        = gv_tableindex. 

Maybe you are looking for

  • JBO ERROR message while finding a detail row by rowkey....

    HI, in my application module i have the master viewobject "SelectionClasseVO" and the restricted detail view object "ClasseHistoriqueVO" via the viewlink "ClasseHistoriqueVL". in my master JSP i have the code : <jbo:ApplicationModule id="amCP111" con

  • Getting file compatibility error on PSD files being opened in same program they were created in.

    After creating and saving a PSD file in Photoshop CC, then re-opening it on the same computer in the same program/version, I'm getting the error: Could not complete your request because the file is not compatible with this version of Photoshop. This

  • How to create a background textures

    Hello, Are there classes in any package to create colored textures for background swing components ? If so, thanks to point me to URLs or samples.

  • Cenvat A/C

    Hello Guru    What r the Trasaction Keys/Event keys are hitting If CIN is running After MIGO < After MIRO IF is it right MIGO RG23APart1 - Debit Cenvat _Credit Miro Cenvat-Debit VendorA/c -credit if VAT is non deductible so it going to add materail C

  • Configuring Integration Events

    I am new at using workflow to generate integration events. Any guidance would be appreciated. My business need is to share Contact information with an outside system. This is a bi-directional interface. When a Contact is added, changed, or deleted in