Ldb selection screen pnp.

hi experts,
i am using ldb pnp.
i would explain my problem through an example:
suppose i enter , cmpny code:1000
personal area/subarea/cost center: 14000002*                   
"GET pernr" statement returns 13 personal numbers and executes code for personal number  one-by-one .
actually i require to display some text related to each execution in the  last execution stage.how to do that.
what condition should i put to identify that this is the last personal no.
thanks

Hi
One thing you can do is to store de pernr's that GET PERNR sentence is retrieving in an internal table and at the END-OF-SELECTION event loop at that table and execute your logic. That way you're avoiding the problem in executing the same code por each pernr each time in GET PERNR event.
GET PERNR.
append pernr-pernr to g_t_pernr.
END-OF-SELECTION.
LOOP AT G_T_PERNR.
..... <== Your logic.
ENDLOOP.

Similar Messages

  • 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

  • Add new field infotype "z" in logical database selection screen pnp

    Can add new field infotype "z" in logical database selection screen pnp
    I could explain how to realize
    Thanks

    In case to somebody it interests to him: TO EXTEND SCREEN OF SELECTION WITH OPTIONAL DELIMITERS The case that can be given in a screen of selection of a logical data base it does not appear a certain field that we need in the filter, the steps that will be due to follow are the following:
    u2022 To create a view of selection in agreement with the fields that we want to show To review the following Link http://help.sap.com/saphelp_46c/helpdata/es/6e/6ed638e70ef679e10000000a114084/content.htm u2022 To assign the view of selection to a class of report
    u2022 In the code of report to create select option in the selection screen that allows to introduce imput to leak and after start-of-selection to put the following code,
    "Allocation operative area to optional delimiter
      IF NOT p_aroper IS INITIAL.
        DATA: lt_texpr TYPE rsds_expr OCCURS 0 WITH HEADER LINE,
              wa_texpr TYPE rsds_expr,
              lt_rsds_expr_tab LIKE rsdsexpr OCCURS 10 WITH HEADER LINE,
              wa_rsds_expr_tab LIKE rsdsexpr.
        REFRESH lt_rsds_expr_tab.
        wa_rsds_expr_tab-arity = '0'.
        wa_rsds_expr_tab-fieldname = 'OBJID'.
        wa_rsds_expr_tab-option = 'EQ'.
        wa_rsds_expr_tab-low = p_aroper.
        wa_rsds_expr_tab-high = '00000000'.
        MOVE-CORRESPONDING wa_rsds_expr_tab TO lt_rsds_expr_tab.
        APPEND lt_rsds_expr_tab.
        REFRESH lt_texpr.
        wa_texpr-tablename = 'PA9004'.
        wa_texpr-expr_tab[] = lt_rsds_expr_tab[].
        MOVE-CORRESPONDING wa_texpr TO lt_texpr.
        APPEND lt_texpr.
      pnpdynse[] = lt_texpr[].
      ENDIF.
    English is the forum language.
    Edited by: Rob Burbank on May 18, 2011 11:41 AM

  • 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

  • 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.

  • 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.

  • About pernr orgeh on selection screen (PNP LDB)

    Hi All,
    ITS URGENT.....
    i am tryieng to retrive the holiday compensation data from P0001 P2001 infotypes
    i got screen but when i am tryieng to access the data by using person number (PERNR) WITHOUT GIVING ANY INFORMATION its coming out of the GET PERNR Event.
    IF ANYBODY HAVE THE LOGIC PLEASE SEND ME .....
    THX IN ADVANCE...........
    MAHEN........

    Hi,
    IT2001 would give you results for absences and not compensation, look into IT0083 i think for leave compensation details..
    as far as get pernr event is concerned follwings things are mandatory..
    tables: pernr.
    infotypes: 0001,2001.
    start-of-selection.
    get pernr.
    Here you can retrive data if available..
    like:
    p2001-pernr
    or
    p0001-pernr.
    end of selection.
    please check if the data is present in infotypes with the period specified on the selection screen.
    And always use addition MODE n while retrieving data from time infotype 2001 onwards...

  • 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

  • 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.

  • In the LDB selection screen -Diff b/w  Data selection / person selection

    Hi Experts,
    Want to know what is the difference between
    Data Selection Period
    Person Selection Period
    in the other period , in the selection screen of the LDB PNP.
    Thanx in Advance.
    Regards,
    IFF

    hi,
    Please Refer to this link.
    [abap hr question;
    This will Help You.
    Reward if helpful.
    Regards
    Sumit Agarwal

  • Prefill LDB selection screen

    Hi Guys,
    Is it possible to prefill LDB PNP selection screen with required values like PERNR. If yes, how?
    Thanks,
    mini.

    You can do it 2 ways
    1. You need fill  field name and other attributes thru transaction code SLDB
    2. Other wise if you are using fm LDB_PROCESS then you can find tables SELECTIONS you need to fill up with initial values

Maybe you are looking for

  • ALV GRID Report is not showing all records which is in internal table

    hi all, have one doubt. please clarify me. ALV Report is working fine since long tiem. But suddenly this report is showing few records only for the given input.   Example:   it_main table have 50 records, but output is showing only 10 records only. (

  • Limiting Export Types in Export Dialog Box

    We'd like to only allow XLS Format for a specific report when displaying a Crystal Report on a WebPage via Visual Studio; We run Crystal Reports 2008 and also post on Business Objects so the users can access via Infoview. the only thing I've found is

  • Fan Issues with DV6-7000 series (probably with DV7-7000 series too)

    So I've installed Arch on my brand new laptop, and I'm unable to change the fan speed. The fan does run, but on the lowest possible setting, which means the laptop gets very hot. I've followed the wiki here: https://wiki.archlinux.org/index.php/Fan_S

  • Sending mail from apex appliocation

    Dear friends Can anyone please tell me how to send mail from apex application to outside mail like gmail or yahoo i have one report created which i want to send it to my mail from apex Please hepl me....

  • Can we Run a simple SQL statement from OBIEE Middle Tier node

    Hi i am working in OBIEE 11g environment. Database is installed on one node and Middle tier (BI services ) in other node, Can i use any utility to run a simple SQL statement from Middle tier ? Thanks Reddy