LDB  SELECTION SCREEN HELP

Hi,
In ldb when when we go for selection system suggests
1.nodes for which free selections are generated.
2.nodes for which fields selections are to be generated
please explain what does both option means.
thanks in advance.

Hi Manish
Dynamic Selections
      The tables defined in the structure can have dynamic selections using the following
        code  in the Selections Include program
SELECTION-SCREEN DYNAMIC  SELECTION FOR TABLE <tbnam>
  Field Selections
      The tables for which field selection is defined can be called from the ABAP/4 program
        using GET <tbnam> Fields <f1> ….<fn> addition . The code for field selection in the
SELECTION-SCREEN FIELD SELECTION FOR TABLE <tbnam>
regards
kishore

Similar Messages

  • 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

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

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

    hi i have a unusual requirement
    Presently in one of my HR reports I am using 'PCH' LDB.
    In the selection screen we have the object ID which is defined in standard program with no-intervals like this.
    SELECT-OPTIONS:
    PCHOBJID FOR OBJEC-OBJID VALUE-REQUEST              "ObjektId
                             MODIF ID $OB NO INTERVALS.
    Now in my program I want to have it as regular select option. Can we change this in anyway.
    I was able to modify the rest of the fields by using AT-SELECTION-SCREEN OUTPUT EVENT.
    Please help me with this, points guaranteed

    Hi rhaul,
    1. I don't  we can directly do as per ur requirement.
    2. Bcos No-Intervals cannot be modified using Loop at screen.
    3. Another option is to copy the standard Ldb and use it.
    regards,
    amit m.

  • 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

  • Setting LDB selection screen

    Hi,
    I use report RFDOPR10 which i copied into ZRFDOPR10 . This report uses
    a LDB DDF. In the new report i need to set some values in the selection-screen such as DD_UMSKZ but can't catch up the screen field name.
    Is there a way to solve it?
    Thanks

    A logical database is a special ABAP/4 program which combines the contents of certain database tables. You can link a logical database to an ABAP/4 report program as an attribute. The logical database then supplies the report program with a set of hierarchically structured table lines which can be taken from different database tables.
    LDB offers an easy-to-use selection screens. You can modify the pre-generated selection screen to your needs. It offers check functions to check whether user input is complete, correct, and plausible. It offers reasonable data selections. It contains central authorization checks for data base accesses. Enhancements such as improved performance immediately apply to all report programs that use the logical database.
    Less coding s required to retrieve data compared to normal internel tables.
    Tables used LDB are in hierarchial structure.
    Mainly we used LDBs in HR Abap Programming.
    Where all tables are highly inter related so LDBs can optimize the performance there.
    Check this Document. All abt LDB's
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.highlightedcontent?documenturi=%2flibrary%2fabap%2fabap-code-samples%2fldb+browser.doc
    GO THROUGH LINKS -
    http://www.sap-basis-abap.com/saptab.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9bfa35c111d1829f0000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c6/8a15381b80436ce10000009b38f8cf/frameset.htm
    /people/srivijaya.gutala/blog/2007/03/05/why-not-logical-databases
    Re: **LDB**
    www.sapbrain.com/FAQs/TECHNICAL/SAP_ABAP_Logical_Database_FAQ.html
    www.sap-img.com/abap/abap-interview-question.htm
    www.sap-img.com/abap/quick-note-on-design-of-secondary-database-indexes-and-logical-databases.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db9bb935c111d1829f0000e829fbfe/content.htm
    Gothru the blog which provides info on LDB's:
    /people/srivijaya.gutala/blog/2007/03/05/why-not-logical-databases
    Sample code
    TABLES: SPFLI,
    SFLIGHT,
    SBOOK,
    SCARR.
    START-OF-SELECTION.
    GET SPFLI.
    WRITE:/ ’SPFLI: ’, SPFLI-CARRID, SPFLI-CONNID,
    SPFLI-AIRPFROM, SPFLI-AIRPTO.
    GET SFLIGHT.
    WRITE:/ ’ SFLIGHT: ’, SFLIGHT-CARRID, SFLIGHT-CONNID, SFLIGHT-FLDATE.
    GET SBOOK.
    WRITE:/ ’ SBOOK: ’, SBOOK-CARRID, SBOOK-CONNID,
    SBOOK-FLDATE, SBOOK-BOOKID.
    GET SFLIGHT LATE.
    WRITE:/ ’ GET SFLIGHT LATE: ’, SFLIGHT-FLDATE.

  • Reg: LDB& Selection screen

    Hello All,
    I have a question reg. selection screen associated with LDB. Iam developing a LDB for Hedge where there are nodes which have the same selection opt but
    they are disjunct. But in LDB static slection screen , we associate Sel Opt with
    a node  and it would appear only for that node. In my case , i have two nodes for the same Sel Opt. How can i resolve this issue ? Kindly help.

    Hai Srivijaya
    Go through the following Document
    1. A logical database is in fact
    a program only.
    2. This LDB provides two main things :
    a) a pre-defined selection screen
    which handles all user inputs and validations
    b) pre defined set of data
    based upon the user selection.
    3. So we dont have to worry about from
    which tables to fetch data.
    4. Moreover, this LDB Program,
    handles all user-authorisations
    and is efficient in all respects.
    5. tcode is SLDB
    good info about Logical Database. you can check the link.
    http://www.geekinterview.com/question_details/1506
    http://help.sap.com/saphelp_46c/helpdata/EN/35/2cd77bd7705394e10000009b387c12/frameset.htm
    Re: How to Create and Use ldb in reports?
    Re: Logical databases
    http://help.sap.com/saphelp_46c/helpdata/en/9f/db9bed35c111d1829f0000e829fbfe/frameset.htm
    Functions for displaying and changing logical databases:
    Call Transaction SE36 or
    Choose ABAP Workbench -> Development -> Programming environ. -> Logical databases
    Interaction between database program and report:
    During program processing, subroutines are performed in the database program and events are executed in the report.
    To read data from a database tables we use logical database.
    A logical database provides read-only access to a group of related tables to an ABAP/4 program.
    advantages:-
    The programmer need not worry about the primary key for each table.Because Logical database knows how the different tables relate to each other,and can issue the SELECT command with proper where clause to retrieve the data.
    i)An easy-to-use standard user interface.
    ii)check functions which check that user input is complete,correct,and plausible.
    iii)meaningful data selection.
    iv)central authorization checks for database accesses.
    v)good read access performance while retaining the hierarchical data view determined by the application logic.
    disadvantages:-
    i)If you donot specify a logical database in the program attributes,the GET events never occur.
    ii)There is no ENDGET command,so the code block associated with an event ends with the next event
    statement (such as another GET or an END-OF-SELECTION).
    1. transaction code SLDB.
    2.enter name z<ldb-name>
    3.create
    4.short text
    5.create
    6. name of root node (here Ekko)
    7. enter short text (f6)
    8.node type -> data base table.
    9.create
    10 change logical DB
    riht click on ekko and insert node
    here node name ekpo
    11.create
    12. click on selections
    13. press no Should the changed structure of Z<ldb name> be saved first.
    14.select tables which you want to join.
    15.transfer
    16 now you have to o to coding part.
    17. save
    activate.
    19.click to src code
    double click on first include and activate
    Regards
    Sreeni

  • LDB selection screen -Diff b/w Data selection / person selection  period

    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,
    Plz follow this link.
    Re: Data selection period & Person selection period
    This will Help.
    Regards
    Sumit Agrwal

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

  • Selection Screen - Help required

    Hi ,
    I am developing a SD report in which he selection screen is executed without any inputs it shows me the customers which are maintained against my ID in a Ztable.
    However customer needs for internal users he should be able to view all without any inputs.
    can anyone help me..?
    Varun

    hi Varun,
    do not include the user id on the where condition on your select statement.
    regards,
    Peter

  • 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

Maybe you are looking for

  • Is there a way to suppress the parameter form?

    We have created a report, in Oracle Reports Builder (Developer 10g - v9.0.4.0.33) and do not want the parameter form to show when the report runs. We have removed the check from the box in the preferences => runtime settings => parameter form, but a

  • Could not even connect to wireless after apple up date!

    Just bought an apple tv, it loaded up fine and I signed in with my ID, connected it with my iPad and computer. Perfect. Next day could not even connect to my network. When I try to it says "there was a problem connecting to the network. Check your se

  • Need steps required for http to webservice scenario

    Hi All I need the IR and ID steps for my below scenario. Request will come as HTTP request from a web site and web service will get the request and same time it will send the response back to HTTP.basically this will be synch process.Need help urgent

  • How to access my website created from another computer and location?

    I am a beginner.  My nephew made an e-commerce site for me using dreamweaver on a Mac.  I purchased dreamweaver cs5 and have windows vista.  He sent me the FTP address, username and password.  I opened dreamweaver and am asking what to do to access a

  • Requirement to add new Document data restriction Field in OLI8BW

    HI        I need to fill in Set Up Tables for 2LIS_12_VCITM (Deliveries) in source system. I want to restrict data only to past 3 years (2008-2010). Currently i dont have an option to select year in the Document Data Restriction area of the statistic