LDB name ?

Is there any LDB for the infotypes 2001,2002,2003,2004 ...
Thanks,
J

jeeva,
Genrally ppl say PNP or PNPCE (Concurent employment)is for PA but you can use it for time mgmt to too.
It is entirely depends upon your requirement and how you are querying
Warm Regards

Similar Messages

  • F4 for LDB name on the screen

    I want to populate the names of LDB's in a F4 on a selection screen.Please specify the dataelement or search help for that.
    Rajiv Kanoria

    Also check SH_LDBNAME
    Regards,
    Jayesh

  • How to Create and Use ldb in reports?

    Give examples that uses ldb.

    Hi Albert
    You can create and maintain logical databases via the transaction <b>SE36</b>.
    You can relate a LDB to your program using the 'Attributes' window by entering the LDB name to the relevant field.
    Additional to what Andreas told, many HR programs use LDB. Check programs with 'RH*'.
    Regards
    *--Serdar <a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d">[ BC ]</a>

  • Getting results from LDB (Logical Database)

    Hi All,
    I have a requirement where i need to pass LDB results to external application. It can be any LDB. Like in SE36 we put the LDB name and execute and final results are shown in ALV. I dont need it to display in ALV but from my custom program, need that output table which stores these results.
    I tried using LDB_PROCESS but that need custom subroutine names to pass in that, i tried  passing the same and results also came but thing is every logical database will have different tables in that, it'll be impossible to create those many subroutine to handle each and every table. So i need a generalized solution like se36 processes the data for any LDB.
    Is anyone knows how can i achieve this?
    Regards
    Munish Garg
    9041793217

    Hello
    Generally any LDB will have a event which triggers the data to be populated in the tables/memory. Now these data retrieval is written in a sub-routine "Perform PUT_<eventnamt>". So any LDB will have the sub-routine named "PUT_<eventname>" in its main program. May be you can create the sub-routine name dynamically using this method.
    Regards
    Ranganath

  • Logical database LDB

    hi,
    what is LDB....its benefit
    and how to to it for multiple tables ......
    .... i want to use LDB instead of table joins...... there are  abt 20 tables..... using joins , the performance is slow ...
    ..... please advise..
    thanks

    LOGICAL DATABASES:
    Logical Databases are used to generate report.
    It is a repository object, not a data dictionary object.
    Under one logical database, a node is created first for the corresponding table in the database.
    A logical database can have any number of related nodes in the hierarchical manner.
    First node of the logical database is called as ROOT NODE.
    SLDB or SE36 to create logical databases.
    Navigations to Create Logical Database:
    SLDB -> Specify LDB name starting with Z or Y -> Click on Create -> Opens an interface -> Enter short description
    -> Create -> Save under a package and assign request number -> Opens an interface
    -> Specify Root Node name (MARA) -> Enter short description for the Root node
    -> Specify Database Table name (MARA) -> Create -> Opens an interface
    -> Select the Root Node (KNA1) -> Click on SELECTIONS pushbutton from Appn.
    Toolbar -> Click on Yes to generate Selection Screens from the Structure
    -> Click on No to Search Help -> Opens an Interface
    -> Select the checkboxes to create Field Selections and Free Selections
    -> TRansfer -> Opens an Include Program -> Decomment Select-Options statement and specify range variable as follows:
    SELECT-OPTIONS : MATNUM FOR MARA-MATNR.
    -> Save -> Activate -> Come back.
    Select the Node -> Click on SOURCE CODE pushbutton
    -> Click on Yes to generate source code from Structure and Selections -> Opens a report with two Include Files :
    include DBZLOGICAL_DATABASE1TOP . " header
    include DBZLOGICAL_DATABASE1NXXX . " all system routines
    -> Double click on Header File to declare global variables -> Specify Following code:
    TABLES : MARA * Autogenerated
    DATA IT_MARA LIKE MARA OCCURS 0 WITH HEADER LINE.
    -> Save -> Activate -> Come back -> Double click on System Routine file, where the fetching operations are done
    -> Opens an Include File with three subfiles as follows:
    include DBZLOGICAL_DATABASE1N001 . " Node MARA
    include DBZLOGICAL_DATABASE1FXXX . " init, PBO, PAI
    include DBZLOGICAL_DATABASE1SXXX . " search help
    -> Double click on the first file -> Specify SELECT operation statement as follows:
    select * from mara into table it_mara where matnr in MATNUM.
    PUT MARA. * AUTOGENERATED CODE
    loop at it_mara.
    write :/ it_mara-matnr, it_mara-mtart, it_mara-mbrsh, it_mara-meins.
    endloop.
    -> Save -> Activate.
    To Access LDB node, create SE38 PROGRAM, Specify LDB name in ATTRIBUTES section -> Specify following code in SE38:
    NODES MARA.
    GET MARA.
    -> Save -> Activate -> Execute.

  • LDB short-dump

    Hi,
    My requirement is as below.
    We need to combine 3 multilevel reports into one multilevel report. The 3 multilevel reports transactions are 1)IL07 2)IW30 3)IE07
    So I have copied IL07 report into our Z report and then copying the other multilevel reports into the same Z report . Each standardreport has LDB(Logical database) maintained. In the LDB, nodes are created for Main objects and sub objects.
    If we see LDB name called "TPI" , it has Functional location at main level and remaining objects at sublevel. Now in functional location we have Notification as sub object. And for Notification we have other LDB called QMI in which Notification is maintained at Mianlevel and other objects are at sublevel. Now I need to combine these LDBs into one. So I have copied LDB into z LDB and then adding the same nodes for notification that are in QMI ldb .
    we have partner maintained for Both Functional Location and Notification at their respective level. And I have check boxes for the sub objects on the selection screen so that I user can select whichever he wants to view.
    The problem is If I select both the partners ( I mean for functional Location and Notification) then it is giving dump. If I select only one of them then it is not giving dump. and data is getting printed under their respective nodes.
    The DUMP I am getting is MESSAGE_TYPE_X .
    Please help if you have worked on LDBs.
    Note that : I have installed latest GUI patch levels and all . This is not related to any GUI upgrade or some thing , I am sure. So please dont give GUI related solutions.
    Regards,
    Nageswar

    Also check on AT SELECTION-SCREEN OUTPUT. You`re not selecting any of them too...
    Checkout this code ..
    I declare PNP in attributes and AT SELECTION-SCREEN OUTPUT.
      PNPTIMR5 = ' '.
      PNPTIMR3 = 'X'. ( Just comment it or give error message )
    its giving short dump ,if I try to do the same thing you describe in your post !
    Hope this’ll help you
    Thanks
    Saquib

  • LDB doubt

    REPORT  yjsample4                               .
    tables : bsik, t001.
    START-OF-SELECTION.
    GET BSIK.
      IF bsik IS NOT INITIAL.
        APPEND bsik TO g_t_bsik.
      ENDIF.
    END-OF-SELECTION.
      SELECT * FROM bsik INTO TABLE g_t_bsik1 WHERE lifnr IN kd_lifnr.
      LOOP AT g_t_bsik.
        cnt = cnt + 1.
        WRITE:/ cnt, g_t_bsik-bukrs, g_t_bsik-belnr.
      ENDLOOP.
    In above program attributes please assign LDB name as KDF and keep break point at REPORT  yjsample4  . If we go through debugging mode it is going into three function modules and doing some validations and giving the records in output. which are not same if we select the same from   SELECT * FROM bsik INTO TABLE g_t_bsik1 WHERE lifnr IN kd_lifnr.
    Can any body help me. What is happennig? I need to remove LDB(Avoiding LDB usage) and need to replace with SELECT statement...

    Hi
    KDF is Vendor Database.
    Note
    The report SAPDBKDF controls access to the vendor data base from a Financial Accounting point of view. Since the program only contains physical accesss routines for the logical data base, it cannot be started separately.
    Technical documentation
    In the standard system, a basic selection screen (screen number 1000) and 4 screen variants are delivered for the logical data base SAPDBKDF. The basic selection screen contains all available data base selections. If you make changes to data base selections (for example, defining a new selection parameter or extending the vendor number to 10 characters), then this screen is regenerated automatically by the system. It can then be used immediately by all reports that use the logical data base DDF. Screen variants are available in reporting by entering the screen number in the attributes.
    Available fields
    The available fields on a screen are indicated with an 'X'.
                      Selection screen variant
    Field name          1000 900 901 902 903
    Vendor number         X   X   X   X   X
    Company code          X   X   X   X   X
    Fiscal year           X   X   X   X
    Key date of OIs       X   X
    Clearing date         X       X
    Table selection
    In order to improve performance, individual tables can be excluded from selection. The following fields can be set in the application report at the time of INITIALIZATION or at the START OF SELECTION:
    B0SG-XAGSL (blank as a default): if this field is set, then only A and B segments are read; in this case, only A segments for which there are no B segments are selected - this is normally not the case.
    B0SG-XBNKL ('X' as a default): if this field is left blank, then the bank data is not read.
    B0SG-XSTDL ('X' as a default): if this field is left blank, then the tax data is not read.
    B0SG-XMNDL ('X' as a default): if this field is left blank, then the dunning data is not read.
    Authorization checks
    account type authorization (F_BKPF_KOA)
    company code authorization (F_LFA1_BUK, F_BKPF_BUK)
    account authorization (F_LFA1_BEK)

  • 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

  • If I use a LDB in the Attributes of the Program what happens?

    Hi friends,
                   I have to modify a standard program RFRECPSFA410. which i need to add some more fields in the output layout. It is a standard program. In the attributes of the program he used the LDB name RECN. And while debugging i found that the program is calling logical database. How it is calling I could not understand. And I need to add the fields in the Output Lay out. How can I add?

    Hi
    LDB - Logical Database are special ABAP programs that retrieve data and make it available to application programs. The most common use of logical databases is still to read data from database tables by linking them to executable ABAP programs. They provide selction-screen, authority-check etc.
    For detailed information see the following links:
    Overview:
    http://help.sap.com/saphelp_nw04/helpdata/en/60/183d78163011d2953c0000e8353423/frameset.htm
    Using Logical Databases:
    http://help.sap.com/saphelp_nw04/helpdata/en/60/183d78163011d2953c0000e8353423/frameset.htm
    Regards
    Surya.

  • Changing LDB

    Hi Experts,
                    I have a Z report which uses Logical Database. In LDB, it define the selection screen fields too. I need to make those fields as mandatory. LDB name is SAP Standard. There I find Selections tab, where the selection screen fields are defined. As it is SAP Standard, how do I make changes in it.
    Urgent. Plz help.
    Thanks.
    Khan

    Hi,
    Do the vgalidation for the field if you want to make it mandatory.
    AT selection screen.
    If p_fld is initial.
    msg e000 with 'Please enter the value'.
    If it is initial, it will throw a message. If a value is entered LDB fetches the data accordingly
    Thanks,
    Keerthi.

  • LDB in HR

    hi friends,
              I am having a doubt, why LDB (HR PNP...) is used in HR, and why not Open sql statements for Reports.
              what is the difference between LDB and open sql statement, in what way it is benificial ?
              if possible any one send me documents  how to use LDB in HR ? to this mail id [email protected]
    thank u HR consultants

    LDB - is a SET of programs which provide u its own selection screen and commands to deal with HR data.
    Hence for HR u can prefer LDB instead of SQL..
    u can acheive the same thing via SQL but LDB is more easier as u need not write much code.
    u have to specify in the attributes of the program ,LDb name..
    like PNP,PCH etc..
    here is a sample program using LDB  -
    REPORT  ZPPL_PREVEMPLOYERS   message-id rp
                                 line-size 250
                                 line-count 65.
    *Program logic :- This Report is used to Download all the Previous
    Employer (IT0023) records of the employees
    *eject
    *& Tables and Infotypes                                                *
    tables: pernr.
    infotypes: 0000,
               0001,
               0002,
               0023.
    *eject
    *& Constants                                                           *
    constants: c_1(1)       type c               value '1'   ,
               c_3(1)       type c               value '3'   ,
               c_i(1)       type c               value 'I'   ,
               c_x(1)       type c               value 'X'   ,
               c_eq(2)      type c               value 'EQ'  ,
               c_pl03       like p0001-werks     value 'PL03'.
    *eject
    *& Selection-Screen                                                    *
    parameters: p_file  like rlgrap-filename default 'C:\Temp\ABC.xls',
                p_test  as checkbox default c_x               .
    *eject
    *& Internal tables                                                     *
    Internal Table for Output
    data: begin of t_output occurs 0    ,
           pernr like pernr-pernr       ,
           nachn like p0002-nachn       ,
           vorna like p0002-vorna       ,
           orgeh_stext like p1000-stext ,
           plans_stext like p1000-stext ,
           begda like p0023-begda       ,
           endda like p0023-endda       ,
           land1 like p0023-land1       ,
           arbgb like p0023-arbgb       ,
           ort01 like p0023-ort01   .
    data: end of t_output           .
    *eject
    *& Variables                                                           *
    data: o_stext like p1000-stext,
          p_stext like p1000-stext.
    *eject
    *& Initialization                                                      *
    Initialization.
    Initialize Selection-Screen values
      perform init_selction_screen.
    *eject
    *& AT Selection-screen                                                 *
    at selection-screen .
    Check if Test run selected, download file name should be entered
      if p_test is initial.  "
        if p_file is initial.
          message e016 with 'Please enter file name'
                            'specifying complete path'.
        endif.
      endif.
    *eject
    *& Start-of Selection                                                  *
    Start-of-selection.
    get pernr.
      clear t_output.
    Read Infotype 0
      rp-provide-from-last p0000 space pn-begda pn-endda.
      check pnp-sw-found eq c_1.
    Check if employee is active
      check p0000-stat2 in pnpstat2.      "pernr Active
    Read Infotype 1
      rp-provide-from-last p0001 space pn-begda pn-endda.
      check pnp-sw-found eq c_1.
    check if employee belongs to PL03
      check p0001-werks in pnpwerks.  "belongs to PL03
    Check if emp belongs to Active Group
      check p0001-persg in pnppersg.
    Read Infotype 2
      rp-provide-from-last p0002 space pn-begda pn-endda.
      check pnp-sw-found eq c_1.
    Read Org Unit Text.
    CALL FUNCTION 'HR_READ_FOREIGN_OBJECT_TEXT'
         EXPORTING
              OTYPE                   = 'O'
              objid                   = p0001-orgeh
              begda                   = p0001-begda
              endda                   = p0001-endda
              reference_date          = p0001-begda
         IMPORTING
              object_text             = o_stext
          EXCEPTIONS
              nothing_found           = 1
              wrong_objecttype        = 2
              missing_costcenter_data = 3
              missing_object_id       = 4
              OTHERS                  = 5.
    *Read Position Text.
    CALL FUNCTION 'HR_READ_FOREIGN_OBJECT_TEXT'
         EXPORTING
              OTYPE                   = 'S'
              objid                   = p0001-plans
              begda                   = p0001-begda
              endda                   = p0001-endda
              reference_date          = p0001-begda
         IMPORTING
              object_text             = p_stext
         EXCEPTIONS
              nothing_found           = 1
              wrong_objecttype        = 2
              missing_costcenter_data = 3
              missing_object_id       = 4
              OTHERS                  = 5.
    Gather all the required information related to the emp
      move: pernr-pernr to t_output-pernr,
            o_stext to t_output-orgeh_stext,
            p_stext to t_output-plans_stext,
            p0002-nachn to t_output-nachn,
            p0002-vorna to t_output-vorna.
    Gather previous Employee details
      loop at p0023.
        move-corresponding p0023 to t_output.
        append t_output.
      endloop.
    *eject
    *& End-of Selection                                                    *
    end-of-selection.
      perform print_report.
    Downlaod the file
      if not t_output[] is initial.
        if p_test eq space.
          perform download_file.
        endif.
      else.
        write: 'No records selected' color col_negative.
      endif.
    *eject
    *& Top-of-page                                                         *
    Top-of-page.
    Print Header
      perform print_header.
    *eject
    *&      Form  download_file
    Description :
    FORM download_file .
      DATA: full_file_name    TYPE string,
            z_akt_filesize    TYPE i     .
      full_file_name = p_file.
    download table into file on presentation server
      CALL METHOD cl_gui_frontend_services=>gui_download
        EXPORTING
          filename                = full_file_name
          filetype                = 'DAT'
          NO_AUTH_CHECK           = c_x
          codepage                = '1160'
        IMPORTING
          FILELENGTH              = z_akt_filesize
        CHANGING
          data_tab                = t_output[]
        EXCEPTIONS
          file_write_error        = 1
          no_batch                = 2
          gui_refuse_filetransfer = 3
          invalid_type            = 4
          no_authority            = 5
          unknown_error           = 6
          header_not_allowed      = 7
          separator_not_allowed   = 8
          filesize_not_allowed    = 9
          header_too_long         = 10
          dp_error_create         = 11
          dp_error_send           = 12
          dp_error_write          = 13
          unknown_dp_error        = 14
          access_denied           = 15
          dp_out_of_memory        = 16
          disk_full               = 17
          dp_timeout              = 18
          file_not_found          = 19
          dataprovider_exception  = 20
          control_flush_error     = 21
          not_supported_by_gui    = 22
          error_no_gui            = 23
          OTHERS                  = 24.
      IF  sy-subrc               NE        0.
        MESSAGE e016 WITH 'Download-Error; RC:' sy-subrc.
      ENDIF.
    ENDFORM.                    " download_file
    *eject
    *&      Form  print_report
    *Description:
    FORM print_report .
      data: i       type i,
            w_count type i.
      sort t_output.
    Print the report
      loop at t_output.
        i = sy-tabix mod 2.
        if i eq 0.
          format color col_normal intensified on.
        else.
          format color col_normal intensified off.
        endif.
        write:/1     t_output-pernr          ,
               10     t_output-vorna(25)     ,
               35    t_output-nachn(25)      ,
               61   t_output-orgeh_stext     ,
               102  t_output-plans_stext     ,
               143  t_output-begda           ,
               154   t_output-endda          ,
               168   t_output-land1          ,
               178   t_output-arbgb(40)      ,
               219   t_output-ort01          ,
               249   space              .
      endloop.
      uline.
      Describe table t_output lines w_count.
      Skip 2.
      Write:/ 'Total No of Records Downloaded: ' color col_total,
              w_count.
    ENDFORM.                    " print_report
    *eject
    *&      Form  print_header
    *Description:
    FORM print_header .
      skip 1.
      Uline.
      format Intensified on color col_heading.
      write:/1   'Pers. #'        ,
             10   'Last Name'     ,
             35   'First Name'    ,
             61   'Org Unit'      ,
             102  'Position'      ,
             143  'Beg Date'      ,
            154   'End Date'      ,
            168   'Cntry Key'     ,
            178   'Prev Employer' ,
            219  'City'           ,
            249   space          .
      format intensified off color off.
      uline.
    ENDFORM.                    " print_header
    *eject
    *&      Form  init_selction_screen
    *Description:
    FORM init_selction_screen .
      refresh: pnpwerks,
               pnppersg,
               pnpstat2.
      clear:   pnpwerks,
               pnppersg,
               pnpstat2.
      pnpwerks-sign   = c_i.
      pnpwerks-option = c_EQ.
      pnpwerks-low    = c_pl03.
      append pnpwerks.
      pnppersg-sign   = c_i.
      pnppersg-option = c_EQ.
      pnppersg-low    = c_1.
      append pnppersg.
      pnpstat2-sign   = c_i.
      pnpstat2-option = c_EQ.
      pnpstat2-low    = c_3.
      append pnpstat2.
    ENDFORM.                    " init_selction_screen

  • LDB..

    Hii All,
    Any one pls send me some interview ques on LDBs??
    Regards,
    Kavitha

    Hi Kavitha,
    pls find here some general ques for interview,
    1.     Preparation of the data records by the L.D.B and reading of the data records in the actual report are accomplished with the command pair Put and Get.
    2.     The three main elements of LDB are Structure, Selections, and Database Program.
    3.     In LDB what determines hierarchy of the tables?
    Structure.
    4.     In general what are the two ways in which one can retrieve data from tables?
    Using Select statements, Database Program.
    5.     With LDB one can modify the pre-generated selection screen to their needs (T/F).
    Yes.
    6.     Logical databases are programs that read data from Database tables (Dictionary Structures).
    7.     The event Get<table name> LATE process all tables that are hierarchically superior to the <table name>. (True/False)
    False.  It processes all tables that are hierarchically inferior to the <table name>.
    8. The Database Program of LDB is a collection of SUBROUTINES, which selects data and passes it to the report.
    9.     The layout of the Database program is determined by both Structure and Selections.
    10.      The order in which data is made available to the report depends on Structure of the LDB.
    11.     Apart from the structure and selections of the LDB the GET statements in the report determines the behavior of the database at runtime.
    12.     Node at the highest level in the structure is known as Root.
    13.     There can be more than one node at the highest level in the structure. (T/F)
    False.  One can define only one node at the highest level in the structure on LDB.
    14.     All nodes in the structure of LDB need not be defined in the ABAP/4 Dictionary (T/F).
    False.  One has to define all nodes in the Dictionary or one has to select all nodes that are defined in the Dictionary.
    15.     It is not possible to use ABAP/4 Dictionary Structures without an underlying database using LDB. (T/F)
    True.  One can use additionally related tables, along with the tables defined in the structure of LDB.
    16.     Dynamic selections allow the user to define further selections for database access in addition to the selection criteria already defined in the LDB selections.
    17.     Check statement can be used along with the event GET in the report for checking the selections, which are not table-specific values.
    18.     In sense of Database Management System (DBMS) LOGICAL DATABASE is a database Structure. (T/F).
    False.
    19.     It is not necessary to maintain the Parent-Child relationship between the tables in Logical Database Structure. (T/F)
    False.  One has to maintain the Parent-Child relationship.
    20.     Is it possible to extract data from tables without using the event ‘GET’ in the report with an appropriate LDB. (T/F).
    False.  One can extract data from tables using Select statements in a report, though the report is having a LDB attribute.
    21.     What sorts of tables one can se in designing the hierarchy of a LDB?
    Tables, which are having Foreign Key relations.
    22.     A report program, which uses only SELECT statements, is called SQL Report.
    23.     One cannot use SELECT statements in a report program linked to a Logical Database (T/F).  False.
    24.     Is it true that the Logical Database reads the data from the database tables using Select Statements (T/F).
    Yes. We are coding that in Database part of LDB.
    25.     In a report with an LDB attribute, you do not have to define how the information should be retrieved from the database tables, but only how the data should be represented on the screen. (T/F).
    True.
    26.     One can use the event GET in a report without LDB attribute. (T/F).
    False.
    27.     The last character of the LDB name denotes Application.
    28.     The structure of Logical Databases reflects the Foreign Key dependencies of hierarchical tables in the SAP system.
    29.     It is mandatory that for each table in the LDB hierarchy there should exist one GET statement in the report. (T/F).
    False.  It is not necessary.
    30.     What happens if a report does not contain a GET statement for a particular node of a Logical Database.
    Process will transfer to the next event.
    31.     In a Logical Database, one can define input fields on the selection screen with Select-Options and Parameters statements.
    32.     Suppose a logical database program contains the following lines:
    SELECT-OPTIONS CONNID FOR SPFLI-CONNID.
    PARAMETERS CARRID LIKE SFLIGHT-CARRID FOR TABLE SFLIGHT.
    What will be the output, for the above two statements?
    Only select-options connid for spfli-carrid will be displayed on the screen.
    33.     Consider a report with F1S attribute, what will be the output for the following code.  Whether you will get the data from spfli and sflight or not, with corresponding tables statement,
         GET SPFLI.
         GET SFLIGHT.
         Write:/ spfli-carrid, spfli-connid, sflight-fldate, sbook-bookid.
         Yes, you will get the data from spfli and sflight.
    34.     Consider a report with F1S attribute, what will be the output of the following code.  Whether you will get the data from sbook or not, with corresponding tables statement.
    GET SPFLI.
    GET SFLIGHT.
    Write:/ spfli-carrid, spfli-connid, sflight-fldate, sbook-bookid.
    You cannot extract data from sbook.
    35.     Identify any errors in the following code and correct the same, and what will be the output.  If there exists corresponding tables statement, for spfli, sflight, sbook.
    GET SPFLI.
    GET SBOOK.
    Write:/ spfli-carrid, spfli-connid, sflight-fldate, sbook-bookid, sbook-class.
    No syntax errors.  You will get data from all the three tables.
    36.     Does the following two statements do the same task?  If so which one takes less time and which one is recommended.
         Select * from spfli where spfli-carrid = ‘LH’ and spfli-connid = ‘400’.
         Endselect.
         Select * from spfli. Check: spfli-carrid = ‘LH’ and spflid-connid = ‘400’.
         Endselect.
        -Yes they will do the same task.  Second Select statement takes less time and is recommended.
    37.     If you want to improve the response time (time to access data) Logical Databases permits you to achieve this using VIEWS.
    38.     Is there any upper limit (max) to the possible number of nodes in a logical database structure? If so what is the limit?
    Yes, there is an upper limit for defining number of nodes in a Logical Database Structure.
    Maximum nodes = 1200 / length where length = max. Length of name in the structure.
    39.     In the structure of Logical Database nodes at different levels are displayed in the same columns. (T/F) If false what types of nodes are displayed in the same columns. If true what type of nodes are not displayed in the same columns.
    False.  Nodes at same levels are displayed in the same columns.
    40.     What are the advantages of Logical Databases?
    It 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.
    41.     Though all the ABAP/4 Dictionary Structures that exists in the structure of the LDB, being defined in Database Program, we are defining the Dictionary Structures in the Report.  What is the reason for such declaration?
    By declaring so we are providing work areas for data passing between Logical Database and Report.  In addition, the logical database configures the selection screen depending on the selection of database tables.
    42.     Is it mandatory to declare all the tables in Report by the key word tables for all the tables that exist in the structure of LDB, and are being defined in the Database part of LDB.
    No, It is not mandatory to declare all tables in report.
    <b>
    Rewards points if useful</b>
    rgrds
    shazia

  • Reg: LDB

    hi friends,
    please give some details regarding logical database,
    how to create it?
    what is the need for it ?
    whether it has any unique features?

    Hi selva,
    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.
    1. To get a taste of it.
    2. create a new z program.
    3. while creating type PNP
    in logical database field.
    4. paste this code and execute.
    REPORT ABC.
    infotypes : 0001.
    TABLES : PERNR.
    GET PERNR.
    WRITE :/ PERNR-PERNR.
    5. The selection screen which u see
    is coming from logical database PNP program.
    6. Execute
    7. U will get a list of pernr.
    SAPDBPNP
    this is the main program of LDB PNP
    which does the main work.
    SAPDB + ldb name.
    regards,
    amit m.

  • LDB PSJ Selection field CN_ACTVT problem.

    Hi Guys,
    I recently discovered that in LDB PSJ selection field CN_ACTVT is empty in the program, if program runs in background. Do any body know the work around, so that values are passed into program from the LDB selection screen to the program.
    Thanks.

    Try to create your own selection and use fm LDB_PROCESS
    instead of putting LDB name in the program attributes

  • Calling Ldb

    Hi Experts
    Can i call 2 logical database screens in one program.
    my requirement is i have to combine to standard programs as one program ,but problem is each standard program of first 2 selection screen blocks is calling through  logical data base selection screen.
    is there any solution for this .

    Hii
    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
    while creating type PNP
    in logical database field.
    REPORT z_ldb.
    infotypes : 0001.
    TABLES : PERNR.
    GET PERNR.
    WRITE :/ PERNR-PERNR.
    5. The selection screen which u see
    is coming from logical database PNP program.
    6. Execute
    7. U will get a list of pernr.
    SAPDBPNP
    this is the main program of LDB PNP
    which does the main work.
    SAPDB + ldb name.
    In the attributes of your program  you must have  entered the name of the logical database
    it is through there the selection screen comes
    Regards
    Naresh

Maybe you are looking for

  • Implicit and Explicit Enhancement

    Hi Gurus , Can anyone please let  me know about what is  implicit enhancement and explicit enhancement.Steps involved in the same . Thanks ... ashok...

  • Alternate code

    can any one provide me alternate code for following statement using 1.READ from internal table, 2. by using "for all entries". <u>following is the code</u> *TABLE J_5HPDBEAR LOOP AT gt_cr INTO gs_cr.    SELECT *  FROM j_5hpdbear WHERE annuser = gs_cr

  • Has the Global Object Security changed

    We have a form that uses a global object to work. Since Acrobat 9 and the introduction of the GOSP we have had to remind users to uncheck the "enable global object security policy" in the Javascript section of preferences. Recently this has stopped w

  • White screen in ichat sharing

    I am on 10.7.5 and whenever I share my screen with someone else all they see is a white screen. When I share their screen I see everything fine. What is the problem?

  • Conditionally display link icon

    Is there any way I could display an icon in the report based on the record value. Each user when they login, they will have location signed to them. I would like to allow users to edit record (show edit icon) based on the default location. so if reco