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

Similar Messages

  • Logical database of ABAP query

    Hi,
    Can anybody please let me know what is the Logical database for ETXDCI, ETXDCH & ETXDCJ (Tax tables) with any sales document tables? I need to develop one ABAP query for the users.
    I am a Functional person so I would like to know Can anybody please let me know how I can find out the Logical database?
    Your time and help will be really appreciate.
    Thanks & Regards,
    Niki Shah.

    Try the BRF logical database.
    I found it by searching in which programs the tables were used.
    It show program SAPDBBRF which is the program for logical database BRF.
    Kind regards,
    Arthur Parisius

  • How to use logical database "psj" for query?

    Hi, expert :
       use "PSJ" to make a query. but in queries, the title have two lines. and can't  correspond to the content.
       how to make the title correspond to the content?
    regards

    Hi
    Comments option nothing but where you can enter your description.While creating the SAP Query using SQVI enter your query name and click create one popup window will come in that you have comments field where you can enter your description.
    Thanks
    S.Murali

  • Selection Screen  of PNP Logical database

    Experts,
    I am stuck up in filtering of data.
    I am using PNP logical database in Adhoc Query, if I select Current Month as data selection than also it is giving all list of data..
    Can anyone give Input to me.
    it is urgent.
    Point will revert for useful answer.
    Hetal.

    how about if u do this step
    1. Goto- Attribute.
    2. Click "Change"
    3. Click 'HR Report Category'
    4. Click 'Create Report Category'
    5. Click 'new entries' for careating Report Category
    5. Select newly create report category
    6. Click the folder 'Definition of Organizational Selection'.
    7. Click 'New entries'.
    8. Here you assign the required fields to be displayed, for eg pywerks - personal area.
    9. finally assign this newly created 'report category' in the screen you will get upon clicking 'HR report Category' button in the Program attribute screen.
    Hope this may help you.  I am not much into hr abap. but sharing the info which i am aware.

  • Query, infoset and Logical database tuning?

    Hi, All:
    I created infoset z_infoset based on logical database DDF.
    then based on infoset z_query based on infoset z_infoset.
    then run the z_query, the performance is too bad.
    take long time.
    How to tuning logical database, infoset and query.
    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....

  • ABAP query using logical database KDF is not populating custom fields

    Hi Experts ,
    I created two following queries
    1.       VENDORCATKDF – uses KDF logical database
    2.       VENDORCATLFA1 – uses table = LFA1
    I’m pulling the same information in both queries:
    ·         Vendor Number
    ·         Country
    ·         Vendor Name
    ·         Vendor Category  (custom fields added to LFA1)
    The results for the query that uses the logical database KDF is incorrect.  It doesn’t pull in the flag on the custom field LFA1-ZMRO.   Even though the logical database KDF is made up of the table LFA1 and has these fields. 
    Is there something that can be done – so that all of these “custom” category fields under LFA1 (such as LFA1-ZZMRO) – get pulled into queries – when we use the logical database KDF ?

    Hi,
    I have got the error removed by ensuring that fields from one table are a part of one line ( taking help of ruler) only. But the underlying problem remains, the output is not ALV but List output.
    I do not think having additional fields in the query is reason for this.
    Is it bcoz iI am adjusting the output length of columns to ensure no hierarchical error ?
    Can we not have a query using LDB which is shown as SAP List?
    Regards,
    Garima.

  • Logical Database QNQ not working when creating a query in SQVI

    Hi All,
    When i try creating a Quick Viewer Query using SQVI on Logical Database QNQ, I do not get any output.
    What am i doing wrong? 
    Regards,
    Jr.

    Hi,
    The blank row that you get from your second select statement would appear at the end of the report. Put that statement first and it should be at the top of the first page
    Andy

  • Infoset query logical database and transparent table

    Hi!
    We have an infoset with the data source logical database=PNP.
    We get some fields from the infotype 0768, P0768-PERNR, P0768-BEGDA, etc.
    Now we need add another table to make a join within infotype 0768 and table T5F99SE.
    For instance, in infotype 0768 I have one record with the fields PERNR and BEGDA and in the T5F99SE I have 3 records related to the unique record of infotype 0768, the fields of the table are PERNR, BEGDA, ACTDT and ADDAT .
    The fields values in the example can be:
    Infotype 0768: PERNR=00101800, BEGDA=20110401, DICOT=20, BACHE=1200
    Table T5F99SE:  record 1 PERNR=00101800, BEGDA=20110401, ACTDT=20110401, ADDAT=PB    E
                             record 2 PERNR=00101800, BEGDA=20110101, ACTDT=20110405, ADDAT=PC    E01
                             record 3 PERNR=00101800, BEGDA=20110401, ACTDT=20110409, ADDAT=PA    E
    The result we want get with infoset query is
    PERNR    BEGDA   DICOT  BACHE   ADDAT
    00101800 20110101 20        1200       PB    E
    00101800 20110101 20        1200       PC    E01
    00101800 20110101 20        1200       PA    E
    I would like to get the fields of the infotype and some fields of the table T5F99SE.
    Is possible do this action with ABAP modifying an infoset that already exists adding the fields of the transparent table?
    What should I do?
    Kind regards,
    Julian.

    My guess is that it would not be possible to include a transparent table into the LDBs PNP and PNPCE. Would need input from a technical expert there.
    However, instead of using the LDB, why don't you explore just using a direct table join? You may need to join PA0000, PA0001, PA0002 along with PA0768 and your other tables. An infoset can then be created on this table join.
    To go to the mode where you can create the table join, in your infoset transactions, choose 'Table join' instead of 'LDB'.

  • Problem with logical database DDF in ABAP query

    Hi All,
          I have created an ABAP query via the transaction SQ01 using the logical database DDF to retrieve customer master data from tables KNA1 & KNB1. The selection screen used is the screen 903 of the logical database DDF. But now the problem is that when I execute the query, I am getting a blank value in the tax code4(KNA1-STCD4) field though there is value in the KNA1 table for this particular field. This field was added to the table by means of a customizing include. Can anyone suggest a way to get around this problem so that I can view the content of the field STCD4 in the query.
    Thanks and regards,
    Sarath.

    I think it's not used by DDF.
    so you must check it with:
    check kna1-bran1 in s_bran1.
    A.

  • Addtional Structure on InfoSet query of Logical database

    Hi Experts,
    We have a logical database on which we are supposed to create an InfoSet query. We could create the InfoSet query and also the query on top of it.
    We have a requirement to add addtional fiels which are not part of the logical database. The addtional fields are in a strucuture. I added the strucuture using the Extras option, but I need help on how to extract data from this strucuture.
    Can you please help me with a sample code:
    Logical Database in question is - FTI_TR_PERIODS
    Structure to be included is - VTG_IRATE_STRUCTURE
    Field in structure to be included is - PKOND, SKOART
    As this is a structure we cannot right a select statement, and I am very new to abap and require help on how to extract data from the structure.
    Thanks for your help.
    Best Regards,
    Ravi

    Hi,
    This is SAP Business one reporting and printing forum. Please find correct forum and repost above discussion to get quick response.
    Please close this thread here with helpful answer.
    Thanks & Regards,
    Nagarajan

  • SAP / ABAP Query - using logical database

    Hi ,
    We have a mandate to implement SAP Query using only Logical Databases (LDB ) .
    We understand that there are several issues using this approach .
    1 ) Paralled tables in MM need to be displayed on separate lines .
    2 ) Statistics based on fields from 2 different tables cannot be produced eg: EKPO ( PO Number )  and EKKN . (Cost Center )
    Please share your experiences .
    Thank you in advance .
    Kishore
    Kishore

    Adeel,
    I do appreciate your experience and respect you for knowledge on SAP Query. 
    Joining tables seem simple to IT experts but not so for end users.  SAP Query is an end-user tool and users seem to need a simple user-friend, drag-and-drop solution to extract information using SAP Query based on a pre-defined infoset.  Various SAP conferences have been advocating the use of SAP delivered Logical Databses to create infosets in order to harness the various advantages of LDBs. 
    In MM there are several LDBs (e.g. ELM, EBM etc) to create queries on EKPO and EKKN.  The problem arises when you use the same LDB to extract information from more than the above two tables e.g. EKPO, EKET, EKKN and EKBE.  SAP expects you to display fields on multiple lines and also does not allow producing statistics based on fields from two parallel tables say EKKN and EKBE.  Moreover, multi-line reports cannot be produced in the ALV/SLV format.  
    We are also looking for best practise solutions in providing SAP Query to MM or FI users based on SAP delivered Logical Databases.  
    Pascal

  • Additional i/o fields to infoset query based on PNPCE logical database

    Hi All,
    I have a requirement to add two additional input and output fields "job function" and "job family" to a infoset query based on logical database PNPCE. I am new to writing code in infset query and there are so many code areas in infoset query. I am confused where to write code and how to limit the output list based on the user selection to the additional fields "Job function" and "job family". have any one done this in the past?. is there sample code somewhere to do something similar to this?
    Your help will be much appreciated with points! (as per our community guidelines)
    Regards,
    Arul

    Hello Arul,
    Your question would be better answered if you post it in on of the Business Intelligence Forums. Please close this thread and goto:
    Expert Forums » Business Intelligence
    or
    /community
    Regards,
    Manny

  • Query using logical database

    Hi,
    There is one query which is using logical database PNM. I have got one requirement to add one field in selection screen to filter the output. The field which is required to be displayed in selection screen to filter the data is from table mkal which is not present in logical database. Hence my question is, is it possible to add field from table which is not present in logical database? IF yes, please specify the procedure.

    Hi Jogeswara,
    Thanks for your inputs.
    But my question is, how can I filter the data which is being fetched by standard logical database. I cannot go inside the std. LDB and change internal tables of it. I tried coding in extras, but I think it works only if we want to add additional fields in output.
    At present, we are considering the option of creating a z LDB where we copy. std. LDB and also add the reqd. table which is not present in LDB.
    Is there any other option?
    Please provide your valuable inputs.
    Regards,
    Imran Kundan.

  • Logical Database to Query

    hi experts,
    Can i create a query using Logical Database?
    if yes how?? Pls give an idea...
    Thanks in advance.

    Hi Manisha,
                 We can write select query on Logical Databases(LDB) as we write for our normal database. But it is not recommended to write SELECT queries on LDBs.
                Genereally we use standard predefined macros for the selection from LDBs.
    Hope this helps you.
    Regards,
    Chandra Sekhar

  • Linking logical database to TABLE in query

    Can we link Logical Database to Table during query creation in tcode SQVI
    Message was edited by:
            rohith modi
    Message was edited by:
            rohith modi

    go to sqvi and select "Table Join"in data source and enter title select radio button for "basis mode" and enter u reach a new screen in that new screen press "insert table" and give ur table name and again  press "insert table" and give another table in thsi way we can joint table in ABAP query.
    reward points if it is helpful

Maybe you are looking for

  • Error in iTunes Update 5.0.1 !!

    Hey ppl.. I recently updated my iTunes from 5.0 to 5.0.1..and since then it has been giving me problems.. After this update, whenever i start iTunes, it shows the revolving ball for arount 2mins..and does not start before that..only after 2mins, i am

  • Does PS CC have "ease in" and "ease out" feature for motion?

    I'm trying to learn about the video timeline in CC and expect to see an "ease in" and "ease out" feature? Is it hidden somewhere? Where can I find some in-depth tutorials on video animation in Photoshop CC? Thanks, Ray

  • Re-downloading Adobe CreatePDF Basic

    I recently purchased Adobe CreatePDF Basic. Unfortunately, my old computer crased days after downloading the program. I have been trying to download this program to the new computer and although it shows that I have purchased the program it will not

  • Poor sound quality Through Airport Express

    Airport Express is connected to home stereo. sound quality is very poor?? I've tried it from both my computer & Ipad. Both are equally bad??? Music sounds normal on Computer & Ipad but terrible through the Airport express

  • How to exclude menu though profile options

    Hi all, I have requirment that is to exclude menu from some user using profile options. Is that is possible ? and how it is possible? Kindly help Regards Hussain