DOUBT IN LOGICAL DATABASE

Hi experts
       Hi experts can any one explain wht is LDB, How it usefull? how to work on that?
thanks,
Gowri

Hi,
Look at the Below link, it explains to create a new LDB
http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db9bfa35c111d1829f0000e829fbfe/content.htm
To Link the Logical Database
http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db99b435c111d1829f0000e829fbfe/content.htm
Refer this link:
http://help.sap.com/saphelp_47x200/helpdata/en/9f/db95f835c111d1829f0000e829fbfe/frameset.htm
Thanks,
Sankar M

Similar Messages

  • Usage of GET - Basic LOGICAL database question

    Hi,
    I have a few doubts in Logical Databases.
    1.) Why should i include a logical database in a abap program.
    2.) Can i add more than 1 LDB to a abap program
    3.) can Nodes statement used on all nodes on LDB
    4.) Please provide a example program based on F1S LDB with small explanation.
    Thanks in advance,
    Bala.

    >
    Bala Shanmuga Priyan wrote:
    > Thank you all.
    >
    > What is the difference between tables and nodes statement,
    >
    > Thanks in advance,
    > Bala.
    AFAIK, it is expected that we should we the TABLES statement if the node type is a TABLE and if the node type is DDIC type then it is expected that we should use NODES statement, however I found that they can be used interchangeably.
    We can find the node type info in the structure defintion of the LDB(in SE36)
    Also check this extract from the SAP help
    The nodes of the structure are declared with the TABLES statement which generates
    the appropriate table work areas. You can also use the NODES statement to define
    database tables as nodes. If a node of a logical database is not a database table,
    you must use the NODES statement.
    [Example of a Logical Database |http://help.sap.com/saphelp_47x200/helpdata/en/9f/db9be035c111d1829f0000e829fbfe/content.htm]

  • HR ABAP PNP Logical Database Doubt

    Hi,
    I have included a logical database pnp and used nodes statement.
    Nodes pernr
    i want to know what infotypes i can use with that declartion.
    i know there are infotypes from 0000 to 9999. could you tell me which infotypes i can access with this PNP.
    Kindly help me.
    Thanks in Advance,
    Bala.

    Hi BSP
    if u want to acess infotype ,u have to declare the infptypes as
    INFOTYPES: 0000 , "Action
               0001 ,
               0002 , "Personal Data
               0006, "Address
               0008,
               1001,
               0105, "Communication
               0041. "Date Specification
    then START-OF-SELECTION .
    GET pernr.
    and in attributes u have to give Logical database PNP..
    with this i think u can acess all the infotype which u have declared...
    thnx
    Rohit

  • HR - Programming without Logical database

    Hi All
    I have some doubts, I am mainly using Logical database while creting Reports in HR, if I want to use HR function modules and BAPI do they use logical database,
    question is when we have to do HR programming with Logical database and when without Logical database.
    cheers
    AJ

    Hi Srinivas
    If I am doing some Enhancement on ESS/ MSS , using Webdypros, I cant define Logical database anywhere, so I have to use Function modules or BAPIs ........???
    But usually in Reporting you can define the Logical database in the Program attributes.........so I think Logical database can only be used when it can be defined in the program attributes........if you have any other scenarios........please let me know
    regards
    AJ

  • Report Parameters with logical database

    Hello
    I have to read some HR infotypes that are provided with the logical database PNPCE.
    Fort his i have written a report that will use my logical database and get some information.
    What i need,are some new input parameters on the screen that are added by my report:
    parameters: p_persnr type person-pernr,
                        p_name type p0002-nachn,
                        p_sname type p0002-vorna.
    The problem is that i do not know how to link these parameters to my logical database reading.
    When i try to call "get <node>" ,my report is not returning anything.
    Is there a way to send  my parameters as selection parameters to the logical database?
    thank you

    The selection screen 1000 is created dynamically during runtime. I doubt change done by SE51 will solve the issue. In fact there is some code which can help on this.
    INITIALIZATION.
    To restrict the range of PERNRs
      PERFORM z_seloption_restrict USING 'PNPPERNR'.
    *&      Form  Z_Seloption_Restrict
    * Restrict range in select option
    *      -->VALUE(SOP_NAME)  Name of select option as string
    FORM z_seloption_restrict USING value(pv_sop_name).
      IF st_restrict-opt_list_tab[] IS INITIAL.
        CLEAR st_opt_list.
        MOVE: 'EQ' TO st_opt_list-name,
              'X'  TO st_opt_list-options-eq.
        APPEND st_opt_list TO st_restrict-opt_list_tab.
      ENDIF.
      REFRESH : st_restrict-***_tab.
    *  READ TABLE st_restrict-***_tab INTO st_asst
    *                        WITH KEY name = pv_sop_name.
    *  IF sy-subrc NE 0.
      CLEAR st_asst.
      MOVE: 'S'         TO st_asst-kind,
            pv_sop_name TO st_asst-name,
            'I'         TO st_asst-sg_main,
            ' '         TO st_asst-sg_addy,
            'EQ'        TO st_asst-op_main.
      APPEND st_asst TO st_restrict-***_tab.
    *  ENDIF.
      CALL FUNCTION 'SELECT_OPTIONS_RESTRICT'
        EXPORTING
          restriction = st_restrict.
    ENDFORM.                    "Z_Seloption_Restrict

  • Logical database fetching datas

    Hi,
                  I  am using RFBPET00  standard program,in that fieldname name1 values are not coming.
    For that if bseg-koart = 'K' i need to fetch values from LFA1 and I have to insert values in the detail list.
    I need to move values to gs_alv_output_detail-name1.
    I have used the following code.
    get lfa1.
    check lfa1-lifnr = dkonto.     
    *******This is the place where all gs_alv_output_detail are appended.
    if bseg-koart = 'K'.
    move : lfa1-name1 to gs_alv_output_detail-name.
    endif.
    Start Of Insertion by C5053612
      APPEND gs_alv_output_detail TO gt_alv_output_detail.
      clear gs_alv_output_detail.
    while I executing the program I am getting the values
    for name1 where 'K' is there.
    How to fetch datas from logical database and map it there.
    Regards,
    Bathri

    Hi Harsh,
    Thanks for your reply.
           I tried this.
                  move : lfa1-name1(30)  to gs_alv_output_detail-name.
    But still I am getting ########### for name.
    I have one doubt.
    get lfa1.
    check lfa1-lifnr = dkonto.        
    After this whether I need to pass any values for name.
    Regards,
    Bathri.

  • Re: logical database

    Hi,
        What is the logical database. I know how to create.
    I think it is useful for dynamic selections of parameters.
    This logical databases use by HR ABAP. Is it right?
    But i heard that these will increase performnace of ur coding. How can u justify these doubts.
    rgds
    p.kp

    Hi paluri,
    1. What is the logical database
       Logical database is nothing
       but a program only,
       which provides the facility of
       a)pre-defined seleciton secreen
       b) facility for GETting records
         (without knowint the databse tables)
    2.   logical databases use by HR ABAP. Is it right?
        Yes, absolutely right. Its mostly used
        in HR.
       But it is also used now a days in other modules
       like FI, SD.
    3. But i heard that these will increase performnace of ur coding
       Yes, it will increase the performanc,e
       in the sense, that,
       the SQL, FMs used for fetching from the database
       is already fine tuned and written
       into the already tested program of logical database.
    regards,
    amit m.

  • Reg. Logical Database

    Hi Experts,
          This is with reference to Logical Database (LDB) , I have some Doubts\Clarifications ,
    1, What is the Significance of the Hierarchy of LDB structure (I.e Nodes\Tables).?
    2, How to find the relation between to Nodes\Tables that is with which field references the tables were interlinked.
    Thanks in Advance,
    Regards,
    Sen

    Hi
    The Hierarchy/Tree structure of tables indicates the order of database tables data fetching. As per the order it should fetch.
    For example take sales order 3tables VBAK,VBAP, VBEP
    so the data has to be fetched from VBAK first, then VBAP and lastly from VBEP.
    You can't fetch the data from VBEP starting. it is wrong.
    Always tables were interlinked with the correct Keys fields.
    for example if you take the above tables VBAK and VBAP are linked with VBELN field
    and VBAP and VBEP are linked with VBELN and POSNR fields
    So always LDB is created with such a linking tables only, not with any table just like that.
    Reward points if useful
    Regards
    Anji

  • Transaction ME80FN, SAP Query ME80FN, and logical database MEPOLDB

    I am looking at transaction ME80FN. Is that from the global query /SAPQUERY/ME, ME80FN? I was told that ME80FN was from SAP Query... but doubts are creeping in.
       SE93 shows trans. ME80FN as Program RM06EAAW and no logical database. RM06EAAW has different headings and an additional toolbar in the results screen.
      Did RM06EAAW get generated from SQ01 ME80FN?
       I have to modify the ME80FN transaction output by adding a field to the PO History display, which is selected from the bottom toolbar, rightmost button. I guess I have to go with RM06EAAW as the starting point(?).
       We are on 4.6B Any suggestions are welcome.
      Thanks

    These are what I am dealing with:
      Transaction ME80FN
      /SAPQUERY/ME, ME80FN query.
      Another way to word the question is: How can I make a copy of the global query /SAPQUERY/ME, ME80FN to have that nifty bottom toolbar that transaction ME80FN has?
      At first glance, they are the same entity... But the toolbar in the transaction and display options via the last button on the toolbar differentiate the two.
       Thanks....

  • Idea about Logical DataBase

    Hi,
    <u>Can, programming with LDB, be considered as an object programming.. just VB, which is an object programming language.</u>
    That is we r creating an Object directly and using when ever we want. It is different from OOP where we create a class and instantiate the class to create an object.
    My next question is:
    There are 2 transactions which we will create, which are basically same except for a text field.
    <i>First transaction is posting. And the second one is a reverse posting. In the second transaction we have the reason for reverse posting.</i>
    I think in this case we can use LDB and it is the typical scenario where we can apply LDB concept.
    Please evaluate me.
    -Naveen.

    <b>Hi NaveenKumar,</b>
           Logical databases are special ABAP programs that retrieve data and make it available to application programs. The most common use of logical databases is  to read data from database tables by linking them to executable ABAP programs.
           However, from Release 4.5A, it has also been possible to call logical databases using the function module LDB_PROCESS. This allows you to call several logical databases from any ABAP program, nested in any way. It is also possible to call a logical database more than once in a program, if it has been programmed to allow this.
           Logical databases contain Open SQL statements that read data from the database. You do not therefore need to use SQL in your own programs. The logical database reads the program, stores them in the program if necessary, and then passes them line by line to the application program or the function module LDB_PROCESS using an interface work area.
    <b>Tasks of Logical Databases</b>
    1.Reading the same data for several programs.
    2.Defining the same user interface for several programs.
    3.Central authorization checks
    4.Improving performance
    <b>First part of your question</b>
    <b>
         So,if i am not wrong, LDB cannot be completely considered as object oriented programmming.</b>
         I have highlighted some important points above
    For understanding this in detail you can go through the sap help .(if you donot know go through the below path
    sap library
      + Basis Components
          -Abap Programing and runtime enviornment
               -BC-ABAP Programming(noe serach for ldb 
    <b>Now your second part of question</b>.
         In the scenario which you have mentioned we can use ldb.But i am not sure whether it is a typical scenario of ldb.LDB is just a specific access routine to support database access for some application (report generation) needs.We can define a logical database to shorten our ABAP coding .
         Here I am mentioning a link which shows a complete implementation of an LDB.
    <b>http://homepages.wmich.edu/~r2raviko/HandsOnQuest/HO9.doc</b>
         I suppose after going through the  reply(or sap help) and the link mentioned above all your doubts regarding LDB will be cleared.   
    Thanks & Regards
    <b>Pawan P. Khilari
    *Please Mark Helpful Answer</b>

  • Create a Logical Database Based on Mseg and Bseg

    Hi,
      how can i create a Logical database using bkpf,bseg,mkpf,mseg. i need to know , which table is a root node ?
    could any one help me?
       Thanks

    Hi Amit,
           While I am Creating the Logical Database by selection MKPF as root node, i have one problem.
       my selection-screen is,
        Plant  Bseg-werks,
        G/Laccount Bseg-Hkont,
        Fin year bseg-gjahr,
        Grn Date Bkpf-Budat,
        Vendor No Bseg-lifnr,
        Po        Bseg-ebeln,
        MatNr     Bseg-matnr.
      My LDB structure is
             MKPF
    Mseg
    BKPF
    Bseg.
      My Doubt is, how can I access the glaccount details from bseg and How can i fetch the data from Mseg and Mkpf
    (Grn details) .
      If you give the Source code it is very useful to me.
      Thanks,
      Neptune.M

  • Logical Database in Abap Objects

    Hi to All
    I want do it a program report using a Logical Database.
    Is this possible ??? But when I make a GET <node>, occurs the following error:
             "" Statement "ENDMETHOD" missing.  ""
    I'm doing the following:
    CLASS MONFIN IMPLEMENTATION.
           METHOD TRAER_DATOS.
                   GET VBRK.
           ENDMETHOD.
    ENDCLASS.
    Please, somebody tell me how I use the logical database in Abap Objects.
    Thank you very much
    Regards
    Dario R.

    Hi there
    Logical databases whilst of "some use" are not really part of OO.
    If you want to use a logical database in an abap OO program I would create a special class which just does the get data from your DB and pass this either at record or table level.
    Techniques such as GET XXXX LATE aren't really part of any OO type of application since at Object Instantiation time you should be able to access ALL the attributes of that object.
    As far as OO is concerned Logical databases are a throwback to "Dinosaur Technology".
    Since however modules such as SD and FI are still heavily reliant on relational structures (i.e linked tables etc)  then there is still some limited life in this stuff but for OO try and solve it by another method.
    If you really must use this stuff in OO then do it via a FMOD call and save the data in a table which your method will pass back to your application program.
    You can't issue a GET command directly in a method.
    Cheers
    Jimbo

  • Logical Database in Webdynpro

    Hello,
    I have a program in R/3 that is based on a logical database. I don't want to have to write the program all over again in Webdynpro.
    Is there a way to use the logical database in Webdynpro for ABAP.

    Basically WDA calls a FM and then the following help is a good starting point:
    "Calling a Logical Database Using a Function Module"
    http://help.sap.com/saphelp_nw04/helpdata/en/64/237f8cd43711d1950b0000e8353423/content.htm
    Kindly close the thread and award appropriate a points to the answer given.
    Sergio

  • Logical database in adhoc query

    Hello All,
    Can anyone tell me what is the logical database in adhoc query?

    Hi
    When you create a query , you have to select an infoset. Infoset can be considered as a source from which data is populated in the Query Fields.
    Infosets are created from Transaction SQ02.
    There can be four methods through which an Infoset can become a source of data:
    1.  Table join ( By joining two or more tables from Data dictionary)
         example: Joining tables PA0001 and PA0006 on Pernr to get a one resultant dataset
    2. Direct read of Basis Table ( Like PA0001 as a source for data in Infoset )
    3. Logical Database ( A Pre-written Program by SAP that extract data from clusters, tables taking care of authorizations and validity periods)
    Example : Logical database PNP, PNPCE (Concurrent Employement),PCH ( LDB for Personnel Development Data)
    Custom Logical DBs can be created in T_Code SE-36.
    4. Data Retrieval by a Program ( Custom code written by ABAP developers which will collect and process data) . This program has a corresponding Structure in data dictionary and the fields of this structure will be used in query)
    Reward Points, if helpful.
    Regards
    Waseem Imran

  • LOGICAL DATABASE IN HR ABAP PRPGRAMMING

    Hi Friends,
    what is use of LOGICAL DATABASE IN HR ABAP PROGRAMMING
    AND END-OF-SELECTION EVENT IN HR PROGRAMMING PROGRAMMING???
    regards,
    vijay.

    hi
    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.
    regards
    navjot
    reward if helpfull

Maybe you are looking for

  • Getting started with built-in display class

    Hello all, I have a newbie question. I just installed Flash CS3 and I'm trying to get basic functionality working. I can't seem to display anything. It's recognizing the document class (Hello.as). I can trace messages in this class but just can't dis

  • HT3406 HOW DO I USE MULTIPLE DEVICES ON THE SAME ACCOUNT WITHOUT CONFLICTS ESPECIALLY USING FACETIME ?

    Please help, My daughter has an Ipod, I have an Iphone. Both are on my account. When she facetimes me, I will not go through. It looks to her Ipod like I am calling myself. How do I fix this? Thanks, kniproduction

  • Captivate 5.5 variables in AS3

    Hi, i seem to be having a problem accessing the captivate 5.5 variables in AS3. I saw guides that tells people to do something like var myRoot:MovieClip = MovieClip(root); var mainmov:MovieClip = MovieClip(myRoot.parent.root); mainmov.rdcmndPause = 1

  • Page information in the database

    In which portal30 table can I find the displayname of a page? I can find the pagename and other information about the page, but not the displayname, and thats what I need. Thanks

  • Mail is not recognizing my password

    Apple is not recognizing my password. I haven't changed anything. It's been that same for years, now it can't access my email. Any ideas?