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.

Similar Messages

  • 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

  • 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

  • How to extend dynamic selection for Logical Database PNPCE

    Hi All,
    I need to extend dynamic selection for Logical Database PNPCE. Can someone able to help with steps?
    Thanks
    Ranjith

    Hi All,
    I need to extend dynamic selection for Logical Database PNPCE. Can someone able to help with steps?
    Thanks
    Ranjith

  • 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

  • Selection screen: PNP database or other selection criteria

    I received a specification of a new to be developed program where they defined a selection screen with a with 2 radio buttons:
    1.     Use the logical database PHP for data selection (rb1);
    2.     Use other criteria for data selection (rb2).
    My question is, is this possible?
    Or should I add the other criteria between the GET PERNR and the following code with?
    Sample:
    GET PERNR
      IF rb2 = ‘X’.
        [Check other criteria]
        IF sy-subrc <> 0.
          EXIT.
        ENDIF.
      ENDIF.
    null

    When either pnp OR other selection :
    Create program 1 with 2 radiobuttons ==> pnp-selection (rb1)or other selection (rb2). When rb1 is selected go to pgm1 with pnp ; when rb2 is selected go to pgm2 with other selection criteria. Copy pgm1 to pgm2 and add extra selections en delete pnp-statements.
    When pnp WITH extra selections : 1 pgm can be used as you described.

  • Reg Dynamic Selections in Logical DataBases

    Hi All,
      I am forcefully scheduling a report to run in background mode even though the users run it online.
    While doing so I have handled all the parameters and the select options in the selection screen in the following way.
    SELECT OPTIONS
      wa_rspar-selname = 'BUDAT'.
       wa_rspar-kind = 'S'.
       if BUDAT[] is not initial.
          loop at BUDAT.
             wa_rspar-sign = BUDAT-sign.
             wa_rspar-option = BUDAT-option.
             wa_rspar-low = BUDAT-low.
             wa_rspar-high = BUDAT-high.
             append wa_rspar to rspar.
          endloop.
       else.
         wa_rspar-low = BUDAT.
         append wa_rspar to rspar.
       endif.
       clear: wa_rspar.
    PARAMETERS.
    wa_rspar-selname = 'SORTART'.
       wa_rspar-kind = 'P'.
       wa_rspar-low = SORTART.
       append wa_rspar to rspar.
       clear: wa_rspar.
    While doing so since the report uses logical database-the dynamic selection portion has to be handled otherwise the dynamic selection is ignored and the report is displayed wrong.
    How can we handle the dynamic selection portion for the forceful conversion of the program to background mode even if it is run online.
    Has anyone faced this kind of issue.If so how was it resolved.
    Thanks in advance.

    Finally it seems not to be possible to fill the dynamic selection of a logical database during INITIALIZATION in a report which is using the respective logical database (under report properties).
    My solution was to create a new select option within the customer program which refers to the respective database column (... FOR bsis-gjahr). If this column is supported by the dynamic selections of the logical database, then the values entered on the selection screen are automatically transferred and used by the logical database selection. It is just important to refer to the correct table, as BSIS-gjahr is working while BSEG-gjahr and BKPF-gjahr are not working in my example.
    See the following link:
    http://help.sap.com/saphelp_470/helpdata/en/9f/dba73935c111d1829f0000e829fbfe/content.htm?frameset=/de/9f/dba76035c111d1829f0000e829fbfe/frameset.htm&current_toc=/de/d3/2e974d35c511d1829f0000e829fbfe/plain.htm&node_id=305

  • Can i limit the selection in Logical database ?

    hello  ,
    how can i limit the number of records in Logical
                                  database ( my "yyf"  , not standart )   ?
    i get dump on memory  , when i press F4 , becouse i have to many records ,
    so how can i limit the amount of records .
    in se36 ?
    in my program  ( se38 ) ?
    dump description
    &INCLUDE INCL_INSTALLATION_ERROR
    The current program had to be terminated because of an
    error when installing the R/3 System.
    The program had already requested 386785568 bytes from the operating
    system with 'malloc' when the operating system reported after a
    further memory request that there was no more memory space
    available.

    Hi ,
    Hope this helps you .
      SELECT roll name
      FROM tab
      INTO TABLE it_tab.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield        = 'ROLL'
          dynpprog        = sy-repid
          dynpnr          = sy-dynnr
          dynprofield     = 'P_ROLL'
          value_org       = 'S'
        TABLES
          value_tab       = it_tab
        EXCEPTIONS
          parameter_error = 1
          no_values_found = 2
          OTHERS          = 3.

  • Need selection screen logic

    Hi,
    i designed my selection screen like this .Its working fine when i am selecting the radiobottons.
    But iwant if i execute the report by default vendor path should display in my selection screen.Then if i am cliclking the customer radio botton then customer path should come.how to do iT?????
    PARAMETERS:
      rb_vend      RADIOBUTTON GROUP g2 USER-COMMAND abc,       " Radio 1
      rb_cust      RADIOBUTTON GROUP g2.                        " Radio 2
    *File path
    SELECTION-SCREEN SKIP 1.
    PARAMETERS: pa_vend   TYPE rlgrap-filename
                  MODIF ID ven .
    PARAMETERS: pa_cust TYPE rlgrap-filename
                  MODIF ID cus.
    SELECTION-SCREEN END OF BLOCK b3 .
    AT SELECTION-SCREEN OUTPUT.
    **Handling Path for download to  PC .
      IF rb_vend = c_x and
       pa_vend IS  INITIAL.
        pa_vend = co_vend.
      ELSE.
        pa_cust = co_cust.
      ENDIF.
    *Set prompting for target file.
      IF rb_vend = c_x.                           " Vendor related data download
        LOOP AT SCREEN.
          IF screen-group1 = 'VEN'.
            screen-active    = 1.
            screen-invisible = 0.
            MODIFY SCREEN.
          ENDIF.
          IF screen-group1 = 'CUS'.
            screen-active    = 0.
            screen-invisible = 1.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ELSEIF rb_cust = c_x.                     " customer related data download
        LOOP AT SCREEN.
          IF screen-group1 = 'CUS'.
            screen-active    = 1.
            screen-invisible = 0.
            MODIFY SCREEN.
          ENDIF.
          IF screen-group1 = 'VEN'.
            screen-active    = 0.
            screen-invisible = 1.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ELSE.
        LOOP AT SCREEN.
          IF screen-group1 = 'VEN' OR
             screen-group1 = 'CUS'.
            screen-active    = 0.
            screen-invisible = 1.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ENDIF.

    HI,
    use this code..........
    PARAMETERS : P_RB1 RADIOBUTTON GROUP G1 DEFAULT 'X' USER-COMMAND AC,
                 P_RB2 RADIOBUTTON GROUP G1.
    PARAMETERS : P_FILE TYPE RLGRAP-FILENAME MODIF ID ZFI.
    PARAMETERS : P_FILE1 TYPE RLGRAP-FILENAME MODIF ID ZF1.
    AT SELECTION-SCREEN OUTPUT.
    *-- for default values on selection sceen
    LOOP AT SCREEN .
    *-- if radio button from excelsheet is selected
        IF P_RB2 = 'X'.
          IF SCREEN-GROUP1 = 'ZFI'.
            SCREEN-ACTIVE = '0'.
          ENDIF.
          IF SCREEN-GROUP1 = 'ZF1'.
            SCREEN-ACTIVE = '1'.
          ENDIF.
    *-- if radio button from database is selected
        ELSEIF P_RB1 = 'X'.
          IF SCREEN-GROUP1 = 'ZFI'.
            SCREEN-ACTIVE = '1'.
          ENDIF.
           IF SCREEN-GROUP1 = 'ZF1'.
            SCREEN-ACTIVE = '0'.
          ENDIF.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.
    regards
    Gaurav

  • Selection Screen field selection in logical db PCH

    Is any one have any idea how to code the select option part such as..
    report should run if PCHOBJID is selected
    or any other (custom define field in parameter) field which is not PCH field.
    I will really appreciate.

    What exactly is ur requirement? You want to use LDB PCH & u have a custom field parameter & u want to validate it?
    Then after GET OBJID, you can check for ur custom field for the data & then only you can proceed further by using an 'IF' statement.
    If this is not your query, then explain in brief clearly your requirement, so that we can help you.
    Thanks,
    Sarika.

  • Selection from logical database.

    The question is simple. =) Wy does the second part works but not the first one. Isn't it possible to do like that. Anyone that can help with how i can do? 
    <b>Event : start-of-selection employees not connected to position</b>
    rp-provide-from-last p0001 space pn-begda pn-endda.
      check pnp-sw-found eq 1.
    if p0001-plans EQ '99999999'
      AND p0000-stat2 EQ '3'
      AND p0001-vdsk1 EQ 'IT'
      AND ( p0001-persg EQ '1' or
          p0001-persg EQ 'T' )
      AND ( p0001-bukrs EQ 'FR46' or
          p0001-bukrs EQ 'GB21' or
          p0001-bukrs EQ 'PL05' or
          p0001-bukrs EQ 'BE06' or
          p0001-bukrs EQ 'US22' ).
    <i>****** What should i write here.
    All the condistion are right
    But i dont know how/what to select.</i>
      if sy-subrc ne 0.
          ipos-pernr = pernr-pernr.
          ipos-sname = p0001-sname.
          ipos-orgeh = p0001-orgeh.
          ipos-bukrs = p0001-bukrs.
          ipos-plans = p0001-plans.
          append ipos.
          clear: ipos.
      endif.
      endif.
    Event : <b>start-of-selection connected to position but no task</b>************************************************************************
      rp-provide-from-last p0001 space pn-begda pn-endda.
      check pnp-sw-found eq 1.
          IF p0001-plans NE '99999999'
    AND p0000-stat2 EQ '3'
    AND p0001-vdsk1 EQ 'IT'
    AND ( p0001-persg EQ '1' OR
    p0001-persg EQ 'T' )
    AND  ( p0001-bukrs EQ 'FR46' OR
    p0001-bukrs EQ 'GB21' OR
    p0001-bukrs EQ 'PL05' OR
    p0001-bukrs EQ 'BE06' OR
    p0001-bukrs EQ 'US22' ).
      <i>  w_objid = p0001-plans.
        select sobid into w_sobid
                      up to 1 rows
                      from hrp1001
                      where otype = 'S'
                         and plvar = '01'
                         and objid = w_objid
                         and rsign = 'B'
                         and relat = '007'
                         and endda ge pn-begda
                         and begda le pn-endda.
        endselect.</i>
        if sy-subrc ne 0.
          itask-pernr = pernr-pernr.
          itask-sname = p0001-sname.
          itask-orgeh = p0001-orgeh.
          itask-bukrs = p0001-bukrs.
          itask-plans = p0001-plans.
          append itask.
          clear: itask, w_objid, w_sobid.
          endif.
         endif.
    end-of-selection.
    / Claes

    What should i write here.
    All the condistion are right
    But i dont know how/what to select.
    <b>Should be Replaced by</b>
    Function call RH_GET_POSITION_TAB. Then you'll get the list if positions!
    Is that what you ask ????
    Stphn

  • 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

Maybe you are looking for

  • Problem with showModalDialog whenever server sends a new session cookie

    Hi, In our application we display a pdf to the user in a modal dialog whenever he clicks on the view button. We use siteminder for authentication. Only on certain machines we sporadically get a blank modal dialog instead of the pdf. I used HttpAnalyz

  • When using field point I/O points i get error message

    when labview 1st loads and i open my FP vi which uses FP I/O points to specify the channels, they are all greyed out and the error "unable to bind to comm port" is returned. on running the program a second time, no errors are returned. also i cannot

  • Aq  process pls help   queue_payload_type= 'AQ.String_msgType',

    Hello friends My aq process(Enqueuing) works fine when i was creating a queueu table with queue_payload_type='SYS.XML_TYPE. SELECT xmltype.getrootelement(user_data) as Root FROM QUEUE TABLE This gives me good output I created queue table with differe

  • InDesign CS6 crashing just after start up

    Hi, We've had an ongoing problem with one of our users InDesign CS6, I feel like we have tried everything possible. I'll list them for reference: Uninstalling InDesign CS6 through the standard "uninstall a program". Uninstalling InDesign CS6 and usin

  • Loss of Image Selection after Camera Preset Update

    MAC OS X 10.4 LR 1.3.1 In Develop mode, I update a Camera Preset I created with "Update with the Current Settings". At that point I cannot choose any other images. It appears in the film strip that I have selected a new image, but the workspace area