RE:pnp LDB selection screen problem

hi,
hi friends iam facing one problem regarding hr ABAP selection screen ,in my program iam using PNP LDB for bonus details report
i have using selection screen declaration present for single selection.
SELECTION-SCREEN BEGIN OF BLOCK B3 WITH FRAME TITLE TEXT-006.
SELECT-OPTIONS: S_ABKRS FOR P0001-ABKRS NO INTERVALS NO-EXTENSION,
S_WERKS FOR P0001-WERKS NO INTERVALS NO-EXTENSION,
S_BTRTL FOR P0001-BTRTL NO INTERVALS NO-EXTENSION,
S_PERSG FOR P0001-PERSG NO INTERVALS NO-EXTENSION,
S_PERSK FOR P0001-PERSK NO INTERVALS NO-EXTENSION.
SELECTION-SCREEN END OF BLOCK B3.
based on this selection iam fetching the information from infotypes using macros.
now my requirement is iam fetch the information for multiple selections means like payroll areas z1,z2 and z3 payroll informations
should be fetching once. pls any body knows solution please give me reply.
thanks & regards,
mgrao.

hi jain thanks for your reply, iam already created report category and assigned my report. here iam giving my report selection
declerations fully   below.
      S E L E C T I O N       S C R E E N                           *
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001. " DECLEARED REPORT CODE LEVEL
SELECT-OPTIONS: S_DATE   FOR SY-DATUM NO-EXTENSION.    "Bonus for Financial Year
PARAMETERS:     P_BDATE  TYPE SY-DATUM OBLIGATORY,     "Bous payed as on
                P_WKDAYS TYPE CHAR6.                                            "No.of Working Days     
SELECTION-SCREEN END OF BLOCK B1.
*SELECTION-SCREEN BEGIN OF BLOCK B3 WITH FRAME TITLE TEXT-006.    " COMMENTED report level TAKING FROM LDB PNP    
*SELECT-OPTIONS: S_ABKRS FOR P0001-ABKRS NO INTERVALS NO-EXTENSION,     "  Payroll area
               S_WERKS FOR P0001-WERKS NO INTERVALS NO-EXTENSION,                       Personnel area   
               S_BTRTL FOR P0001-BTRTL NO INTERVALS NO-EXTENSION,                          Personnel  sub area        
               S_PERSG FOR P0001-PERSG NO INTERVALS NO-EXTENSION,
               S_PERSK FOR P0001-PERSK NO INTERVALS NO-EXTENSION.   
*SELECTION-SCREEN END OF BLOCK B3.
SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-002. "REPORT CODE LEVEL SELECTION
PARAMETERS: P_FORMCP TYPE PIN_RATE, " char6,    "Form C %    
            P_FORMEP TYPE PIN_RATE, " char6,                 "Exgratia %
            P_FORMBP TYPE PIN_RATE. " char6 .               "Bonus %   
SELECTION-SCREEN END OF BLOCK B2.
SELECTION-SCREEN BEGIN OF BLOCK B4 WITH FRAME TITLE TEXT-004.
PARAMETERS: L_REPORT TYPE ZHRD_FORMC AS LISTBOX VISIBLE LENGTH 40 OBLIGATORY . Report for list box   1 form c
SELECTION-SCREEN END OF BLOCK B4.                                                                                2 exgratia
the above selection is iam used first, now iam commented BLOCK B3 SELECTION  PARAMETERS  and taking the parameters from REPORT CATEGORY  ASSINGN MENT.
MY PROBLEM  is if i select one payroll area example z1 it showing all pay roll employees bonus details it is not filter the remaining payroll areas my requirement is what are the payrolls iam  selecting  those pay roll area details only displaying.
data fetching from  INFOTYPES 0001,0002,0021 AND 9150 FOR BONUS DETAILS and out put is classical report format.
please kindly give the reply if you knows the solution.
thanks & regards ,
mgr.

Similar Messages

  • URGENT( PNP LDB SELECTION SCREEN )

    hiiiii,
    can anyone tell about the field PNPDISBD of pnp LDB in sap-hr , and why it is used. Is There any field on selection screen related to this when we use pnp LDB.

    Hi,
    PNPDISBD is nothing but a date.
    Go to SE38 and open the report SAPDBPNP.
    And search for the field PNPDISBD then you will come to know its functionality.

  • Pnp ldb selection screen

    Hi ,
    How to omit few fields in data selection period of pnp selection screen.

    You can disable the selection screen element in at selection screen output event.
    Ex: The following code has been written for one of the FI related ldb.
    Check the field names of pnp ldb in debugging mode and use it.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF SCREEN-GROUP3 = 'IXS'.
          SCREEN-ACTIVE = '0'.
          SCREEN-INVISIBLE = 1.
          MODIFY SCREEN.
          CONTINUE.
        ELSEIF SCREEN-GROUP4 = '023'.
          SCREEN-ACTIVE = '0'.
          SCREEN-INVISIBLE = 1.
          MODIFY SCREEN.
          CONTINUE.
        ELSEIF SCREEN-NAME = 'DD_BUKRS-LOW'.
          SCREEN-REQUIRED = '1'.
          MODIFY SCREEN.
          CONTINUE.
        ELSEIF SCREEN-NAME = 'DD_BUKRS-HIGH'.
          SCREEN-ACTIVE = '0'.
          SCREEN-INVISIBLE = 1.
          MODIFY SCREEN.
          CONTINUE.
        ELSEIF ( SCREEN-GROUP3 = 'VPU'
            AND SCREEN-GROUP4 = '007' ).
          SCREEN-ACTIVE = '0'.
          SCREEN-INVISIBLE = 1.
          MODIFY SCREEN.
          CONTINUE.
        ELSEIF SCREEN-NAME = 'DUEDATE1'.
          SCREEN-INPUT = 0.
          MODIFY SCREEN.
          CONTINUE.
        ENDIF.
      ENDLOOP.

  • ORGEH ON HR LDB SELECTION SCREEN

    hello,
    I am using PNP LDB selection screen i am getting the results when i gave person number but i am unable to get the data for ORGANIZATIONAL UNIT (orgeh).
    ANY ONE PLEASE SUGGEST ME HOW TO GET THE DATA FOR ORGEH.
    THX IN ADVANCE
    MUNNA.

    Hi,
    Please follow
    Go to transaction SPRO -> Personnel Management ->Human Resources Inforamtion system -> HIS -> Reporting ->
    Adjust the standard selection screen -> Create Report Categories.
    I hope if this meet your requirement, please award suitable points and close the thread.
    Regards,
    Irfan Hussain

  • LDB Selection-screen

    Hello ,
        In my program selection-screen is coming from LDB(logical database) and i want my own selection-screen in the top means before LDB selection-screen.
            Pls solve this ASAP.
    Thanks.

    Hi,
    Create your own selection-screen  in your report with Parameters and select-option and activate.
    Then automatically it will come.
    Regards,
    N.L.Narayana

  • Want to use ldb selection screen with select queries

    I want to use ldb selection screen with select queries since ldb having performance issue .How can I use the fields of the dynamic selection of LDB in the select queries

    Hi,
    Check the code snippet below: Here 'XXXX' is the table for your select query.
      DATA L_DS_CLAUSES TYPE RSDS_WHERE.
      MOVE 'XXXX' TO L_DS_CLAUSES-TABLENAME.
      READ TABLE DYN_SEL-CLAUSES WITH KEY L_DS_CLAUSES-TABLENAME
                                 INTO L_DS_CLAUSES.
      SELECT * FROM XXXX
              WHERE field1 IN ...
               AND   field2 ....
               AND (L_DS_CLAUSES-WHERE_TAB).
          PUT XXXX.
      ENDSELECT.
    You can also try using the FM 'RS_REFRESH_FROM_DYNAMICAL_SEL' passing SY-CPROG in curr_report and 'M'  for mode to get the dynamic selection screen values.
    Regards,
    Munesh.

  • Is it possible to move the ldb selection screen?

    Hi All,
    I have a custom program which uses a logical db.
    The selection screen from the LDb is displayed first and then my custom selection screen is displayed.
    There is a requirement where the custom selection screen needs to displayed first - at top and then the selection screen from the LDB.
    Is it possible to move down the selection screen from the LDB?
    If so then please let me know how...

    Hi,
    with LDB, you can just hide or display LDB selection screen elements,
    but moving your custom  selection screen  above LDB selection screen  is not possible, as upto my knowledge.
    Thanks.
    Raghav M.

  • LDB selection screen field mandatory

    hi,
    In LDB selection screen i want to make other period field as mandatory.
    how to do it? if anyone knows please help me.
    thanks in advance.
    Suchithra.

    Hi,
    You can use following code to (AT SELECTION-SCREEN OUTPUT) in the LDB to make selection screen parameter mandatory.
    AT SELECTION-SCREEN OUTPUT.
    loop at screen.
      if screen-name = 'PNPBEGDA'.    "Give here the screen field name that you want make as manadatory
                                                        " to get the screen field name, press 'F1' on that field and get technical  
                                                        "information
        screen-required = 1.
        MODIFY SCREEN.
      endif.
    endloop.
    Hope this helps,
    Shrinivas

  • PNP and Selection Screen 900 and Authorization

    We have used the combination of logical db PNP with selection screen 900 to write a few custom payroll reports.  We noticed right away that this combination seems to ignore HR authorizations.  Meaning, someone could read payroll results for employees they are not authorized to see.  We had to add our own authorization checks.
    Am I missing something or is something wrong with the 900 selection screen?

    Hi Kenneth,
    The 900 selection screen is for evaluation of Payroll Results. The system checks whether the user who started the evaluation has the correct authorization for this evaluation. Since the data retrieval is from the Payroll Results and not Master data the regular Authorization checks might not be relevant here. Even if the User has no authorization to view the Employee's Master data, he/she might still be able to view the Payroll results via this selection screen if he /she has the evaluation authorization. You are probably right in having to put in your own authorization checks. I hope I am not wrong.
    Regards,
    Suresh Datti
    Message was edited by: Suresh Datti

  • Standard PNP selection screen problem in reason for action type

    Hi all,
    We have used standard PNP in one of our report program.
    The input for 'Reason for Action' (excluding a particular reason for action ) has no effect on the actual selection of data from the PNP. i.e. even if a particular reason for action is excluded in the selection, record pertaining to that action for reason is still picked in the PNP selection and passed on to the program through Get PERNR statement.
    The above problem seems to affect all the standard and custom HR Reports as well.
    Please advise on how exactly the excluding of a particular reason for action work in selection through PNP and is there anyway to solve the problem.
    eagerly waiting for your response.
    Thanking You,
    Regards.
    Deepak

    Thanks for your response,
    We tried but it did not work.
    Our code is as follows,
    INITIALIZATION.
    W_REPID = SY-REPID.
    PERFORM CREATE_RANGES.
    START-OF-SELECTION.
    GET PERNR.
    RP-PROVIDE-FROM-LAST P0000 SPACE PN-BEGDA PN-ENDDA.
    PERFORM GET_DATA.
    END-OF-SELECTION
    If you could give us your email id, we would email the screen shots of the selection screen and the output.
    my email id - [email protected]
    Thanking You,
    Regards
    Deepak

  • Problem with PNP customized selection screen

    Hi guys,
    I have done a report in R/3 system using logical database PNP with customized selection screen. i have 3 parameters as below:
    1. radiobutton1 group a for current period,
    2. radiobutton2 group a for other period.
    3. personnel number.
    my program works fine in R/3 but not in my portal. i think it couldn't recognize my radiobutton in my customized screen. whichever radiobutton i selected also it would return current month records.
    any idea how to fix this?
    any configuration that i can do?
    thanks.

    try testing it through ITS first.
    in order to do so . Go to sicf transaction and run webgui. Then run the application using the tcode. Check the results.
    Seems wrong paramter are getting passed to the SAP system.
    Your ITS server should be activated first in order to use webgui otherwise you will be getting dump.
    Regards
    Atul Shrivastava

  • RE:HR-ABAP selection screen problem.

    hi,
    hi friends iam facing one problem regarding hr ABAP  selection screen ,in my program iam using PNP LDB for bonus details report
    i have using selection screen declaration present  for single selection.
    SELECTION-SCREEN BEGIN OF BLOCK B3 WITH FRAME TITLE TEXT-006.        
    SELECT-OPTIONS: S_ABKRS FOR P0001-ABKRS NO INTERVALS NO-EXTENSION,
                    S_WERKS FOR P0001-WERKS NO INTERVALS NO-EXTENSION,
                    S_BTRTL FOR P0001-BTRTL NO INTERVALS NO-EXTENSION,
                    S_PERSG FOR P0001-PERSG NO INTERVALS NO-EXTENSION,
                    S_PERSK FOR P0001-PERSK NO INTERVALS NO-EXTENSION.   
    SELECTION-SCREEN END OF BLOCK B3.
    based on this selection iam fetching the information from infotypes using  macros.
    now my requirement is iam fetch the information for multiple  selections means like payroll areas z1,z2 and z3 payroll informations
    should be  fetching once.  pls any body knows solution please give me reply.
    thanks & regards,
    mgrao.

    You should be using a selection view (HR Report Category in the programs attributes) to filter results from the LDB.
    Why is this in the objects forum?

  • HR -LDB selection screen

    Can we debug the LDB PNP, if so how?  How to change the selection screen of LDB.

    Hi,
    Please follow
    Go to transaction SPRO -> Personnel Management ->Human Resources Inforamtion system -> HIS -> Reporting ->
    Adjust the standard selection screen -> Create Report Categories.
    I hope if this meet your requirement, please award suitable points and close the thread.
    Regards,
    Irfan Hussain

  • How to remove multiple selections button in LDB selection screens

    Hi Friends,
    I am facing a problem while doing an HR object. I took an LDB with Selection screen '100'. i got the company code select-option in it. But i need to avoid multiple selection button so that i have to take only a single company code to print the ALV heading as the company Text. Please tell me quickly, how can i do it.
    Regards,
    Santosh.

    You may have to do something like below where S_BUKRS is your company code select option of the LDB.
    REPORT  zakstest1 NO STANDARD PAGE HEADING.
    TABLES t001.
    TYPE-POOLS: sscr.
    SELECT-OPTIONS s_bukrs FOR t001-bukrs.
    INITIALIZATION.
    *-- Remove the the ranges option
      PERFORM remove_ranges_for_sel_options.
    *&      Form  remove_ranges_for_sel_options
    *       text
    FORM remove_ranges_for_sel_options.
      DATA: optlist  TYPE sscr_opt_list,
            restrict TYPE sscr_restrict,
            ***      TYPE sscr_***.
    *-- Allow EQ only
      CLEAR optlist.
      optlist-name       = 'EQ_ONLY'.
      optlist-options-eq = 'X'.
      APPEND optlist TO restrict-opt_list_tab.
      CLEAR ***.
      ***-kind    = 'S'.
      ***-sg_main = 'I'.
      ***-sg_addy = 'N'.
    *-- Make S_BUKRS range to have only EQ
      ***-name    = 'S_BUKRS'.
      ***-op_main = 'EQ_ONLY'.
      APPEND *** TO restrict-***_tab.
      CALL FUNCTION 'SELECT_OPTIONS_RESTRICT'
        EXPORTING
          restriction            = restrict
        EXCEPTIONS
          too_late               = 1
          repeated               = 2
          selopt_without_options = 3
          selopt_without_signs   = 4
          invalid_sign           = 5
          empty_option_list      = 6
          invalid_kind           = 7
          repeated_kind_a        = 8
          OTHERS                 = 9.
    ENDFORM.                    " rem_ranges

  • Regarding LDB selection screen

    Hi All,
    I copied a standard LDB program "RCATSCMP".
    I have a date fields in selection screen.
    When i debuged the standard program i am getting the date values PN-BEGDA and PN-ENDDA.
    but when iam debugging my program iam not getting any values for these fields.
    How to get these values.
    Thanks in Advance
    kiran i

    Hi Kiran,
      Please check the attributes of the copied program
      and see whether it has logical data base 'PNP' is
      there are not.
    Thanks & Regards,
    Siri.

Maybe you are looking for