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

Similar Messages

  • How to use Logical database in function module?

    I will create a function module in HR.
    but how to use Logical database  in function module ?  Logical database PNP always show screen.in function (RFC) code , it is a matter.

    You cannot attach the LDB to the main program of the function group.
    - So you may [SUBMIT|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=submit&adv=false&sortby=cm_rnd_rankvalue] a report which use the LDB and get back the data (export/import), by default in the syntax of SUBMIT the selection-screen will not be displayed
    - Use [LDB_PROCESS|https://www.sdn.sap.com/irj/sdn/advancedsearch?query=ldb_process&cat=sdn_all], fill a structured table for selection, and get data back in another table
    - Use [HR function modules to read Infotypes|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=hrfunctionmodulestoread+Infotypes&adv=false&sortby=cm_rnd_rankvalue].
    Regards

  • Why and how we use Logical Database?

    Can anybody explain with example why and how we use logical database?
    Regards,
    Rajan

    Hello,
    SAP comes loaded with all the extras. Among the extras that are most helpful to IT managers are all the access routines needed to pull any business object that managers can think of out of SAP databases. However, SAP has not thought of everything where your particular applications are concerned. SAP organizes its standard database tables to service business units based on conventional business applications. Itu2019s likely your business requires something new, perhaps even something exotic. In that case, you will need to create a new database, using information from different places. Basically, you need a logical database. You need to create a virtual business data object repository consisting of a new kind of record or table that suits your purposes. In addition, the repository should be composed of information that is actually stored in a number of different locations, none of them necessarily logically associated with one another. Letu2019s take a closer look at creating logical databases.
    A case for a logical database
    Suppose my company manufactures widgets of the most obscure variety, and they are components of other widgets. I sell my widgets as raw material for the more sophisticated widgets built by others, but in some cases I actually partner with other manufacturers in creating yet another class of widget. Now, in my world, I consequently have customers who are also partners. I sell to them and I partner with them in manufacturing and distribution. Also, I need an application that uses both of these dual-use relationships.
    Essentially, I have a customer database and a partner database. Neither contains records that are structured to contain the identifying particulars of the other. Thus, I need a hybrid database that gives me tables detailing these hybrid relationships. What can I do? I can go the long way around and write a new database, pulling information from both and creating new objects with a customized program that I write by hand. However, this process is cumbersome and contains maintenance issues. On the other hand, I can use SAPu2019s logical database facility, create my logical database in a couple of minutes, and have no maintenance issues at all.
    Logical database structures
    There are three defining entities in an SAP logical database. You must be clear on all three in order to create and use one.
    u2022     Table structure: Your logical database includes data from specified tables in SAP. There is a hierarchy among these tables defined by their foreign keys (all known to SAP), and you are going to define a customized relationship between select tables. This structure is unique and must be defined and saved.
    u2022     Data selection: You may not want or need every item in the referenced tables that contributes to your customized database. There is a selection screen that permits you to pick and choose.
    u2022     Database access programming: Once youu2019ve defined your logical database, SAP will generate the access subroutines needed to pull the data in the way you want it pulled.
    Creating your own logical database
    ABAP/4 (Advanced Business Application Programming language, version 4) is the language created by SAP for implementation and customization of its R/3 system. ABAP/4 comes loaded with many predefined logical databases that can construct and table just about any conventional business objects you might need in any canned SAP application. However, you can also create your own logical databases to construct any custom objects you care to define, as your application requires in ABAP/4. Hereu2019s a step-by-step guide:
    1.     Call up transaction SLDB (or transaction SE36). The path you want is Tools | ABAP Workbench | Development | Programming Environment | Logical Databases. This screen is called Logical Database Builder.
    2.     Enter an appropriate name in the logical database name field. You have three options on this screen: Create, Display, and Change. Choose Create.
    3.     Youu2019ll be prompted for a short text description of your new logical database. Enter one. Youu2019ll then be prompted to specify a development class.
    4.     Now comes the fun part! You must specify a root node, or a parent table, as the basis of your logical database structure. You can now place subsequent tables under the root table as needed to assemble the data object you want. You can access this tree from this point forward, to add additional tables, by selecting that root node and following the path Edit | Node | Create. Once youu2019ve saved the structure you define in this step, the system will generate the programming necessary to access your logical database. The best part is you donu2019t have to write a single line of code.
    Regards
    Arindam

  • Logical database PSJ for tcode CJI3 - add additional

    Hi,
    I need to create the customized program which refer to standard program RKPEP003 (CJI3) with additional fields require to be added in selection screen and ALV report.
    I checked in program attribute for program RKPEP003, there is no selection screen version exist for this logical database. Could anyone advise how do I add the additional fields in either selection screen/ ALV report (eg: Vendor).  Thanks.

    Hi,
    I managed to add the additional fields  (eg: Vendor) in ALV report in CJI3 using the user exit.EXIT_SAPLKAEP_001.
    Now, I require to add this field in the CJI3 selection screen. I tried to maintain this field via SE36 - Maintain selection Views, but the Vendor field (eg: EKKO-LIFNR) which I required is not able to display out.  Anyone have any ideas on it or how should I add this additional selection screen option?

  • How to use Logic DataBase in WDA?

    Hi Experts,
    The LDBs contain: Selection Screen, Authorization check, Data Retrieval, and it is very useful for writing a report within R3 system.
    I am developing some WDA reports, and really need this kind of features too. Is there anyone know how to use LDB in WDA???
    Thanks a lot.
    Best Regards,
    Guo Guo Qing

    Thanks for your reply.
    Could you tell me if there is some standard function module to handle LDB?
    Best Regards,
    Guo Guo Qing

  • Why u  use logical databases

    how u used logical database?how is data transferrd to program?corresponding statement in LDB?

    Hi,
    Logical databases are programs that does useful tasks like data fetch, Authorization check on behalf of thep program to which you attach them.
    Some of the Tasks of LDB's.
    <b>Reading the same data for several programs.</b>
    The individual programs do not then need to know the exact structure of the relevant database tables (and especially not their foreign key relationships). Instead, they can rely on the logical database to read the database entries in the right order during the GET event.
    <b>Defining the same user interface for several programs.</b>
    Logical databases have a built-in selection screen. Therefore, all of the programs that use the logical database have the same user interface.
    <b>Central authorization checks</b>
    Authorization checks for central and sensitive data can be programmed centrally in the database to prevent them from being bypassed by simple application programs.
    <b>Improving Performance</b>
    If you want to improve response times, logical databases permit you to take a number of measures to achieve this (for example, using joins instead of nested SELECT statements). These become immediately effective in all of the application programs concerned and save you from having to modify their source code.
    The data fetch happend with the PUT_XXXX subrotuines in the Logical database programs.
    Example:
    DATABASE PROGRAM OF THE LOGICAL DATABASE TEST_LDB
    PROGRAM sapdbtest_ldb DEFINING DATABASE test_ldb.
    TABLES: lfa1,
            lfb1,
            lfc1,
            bkpf.
    Initialize selection screen (process before PBO)
    FORM init.
    ENDFORM.                                "INIT
    PBO of selection screen (always before selection
    screen
    FORM pbo.
    ENDFORM.                                "PBO
    PAI of selection screen (process always after ENTER)
    FORM pai USING fname mark.
      CASE fname.
        WHEN 'SLIFNR'.
        WHEN 'SBUKRS'.
        WHEN 'SGJAHR'.
        WHEN 'SBELNR'.
      ENDCASE.
    ENDFORM.                                "PAI
    Call event GET LFA1
    FORM put_lfa1.
      SELECT * FROM lfa1
               WHERE lifnr      IN slifnr.
        PUT lfa1.
      ENDSELECT.
    ENDFORM.                                "PUT_LFA1
    Call event GET LFB1
    FORM put_lfb1.
      SELECT * FROM lfb1
               WHERE lifnr      =  lfa1-lifnr
                 AND bukrs      IN sbulrs.
        PUT lfb1.
      ENDSELECT.
    ENDFORM.                                "PUT_LFB1
    Call event GET LFC1
    FORM put_lfc1.
      SELECT * FROM lfc1
               WHERE lifnr      =  lfa1-lifnr
                 AND bukrs      =  lfb1-bukrs
                 AND gjahr      IN sgjahr.
        PUT lfc1.
      ENDSELECT.
    ENDFORM.                                "PUT_LFC1
    Call event GET BKPF
    FORM put_bkpf.
      SELECT * FROM bkpf
               WHERE bukrs      =  lfb1-bukrs
                 AND belnr      IN sbelnr
                 AND gjahr      IN sgjahr.
        PUT bkpf.
      ENDSELECT.
    ENDFORM.                                "PUT_BKPF 
    Regards,
    Sesh

  • How to retrieve data using logical database and custom select options

    Hi all,
    I have a selection screen which is displayed by logical database PSJ and I have two select options of my own. I need to retrieve data based on both selection screen of logical database and my own select options. How can I do it?
    Thanks in advance.

    Hai Gupta
    Check the following Document & Links
    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

  • How to inactivate the 'Complex Search' button when using Logical Database

    Hy experts
    I m using Logical Database for a select and you know that for an GET event by default in selection screen it appears some selection fields for every GET event..I manage to hide the ones that don't interest me but I have a little problem: I have a button that's called 'Complex Search' and I don't know how to get rid of this button..
    Here is some code:
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
    IF screen-name CP '%BT02010_BLOCK_1000'.
          screen-input = '0'.
          screen-active = 0.
          screen-invisible = 1.
          MODIFY SCREEN.
        ENDIF.
        IF screen-name CP 'QL_REFIL'.
          screen-input = '0'.
          screen-active = 0.
          screen-invisible = 1.
          MODIFY SCREEN.
        ENDIF.
    I do this for every screen-name in the program that doesn t interes me..but it seams that even if I comment all the button with 'Complex Search' remains..I mention that is a disperate solution to inactivate every screen element but I could not do other way..My bigest pb is the 'Complex Seach' button..can anyone help me?? pls.. <REMOVED BY MODERATOR> ..thx..
    Edited by: Alvaro Tejada Galindo on Feb 12, 2008 12:45 PM

    Thank you Thomas,
    I need some more from you...
    If I have 8 tables for 8 columns, then how do i proceed?
    Also could u tell me some query optimization techniques while working with intermedia text.
    Thanks you once again,
    waiting...
    Khaleel Hi Khaleel,
    I think this depends on your data model (relationship between the tables) and how you like to search later.
    The optimization begins also with the create index statement (memory clause and storage clause).
    If you like me to help I need more information about your hardware, os, datamodel and what kind of searches you will have later.
    Cheers,
    Thomas

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

  • How to find if a logical database exists for your program requrements?

    hi
    How do you find if a logical database exists for your program requrements?
    Regards

    You probably know the DB table that you'd like to query
    try where used list : 'Logical database'
    then you can see what interests you...

  • How to use taglibs in JSP for Database access

    Hi
    Could any one please tell me how to use taglibs in JSP for Database access
    with regrds
    Jojo

    This is a sample how to connect to a MySQL database with JSTL 1.0:
    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
    <%@ taglib uri="http://java.sun.com/jstl/sql" prefix="sql" %>
    <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>JSTL MySQL</title>
    <link href="styles.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <c:catch var="e">
    <sql:setDataSource var="datasource" url="jdbc:mysql://Your_Server_Name_Here/You_Schema_Here"
                           user="Your_Username_Here" password="Your_Password_Here"
                           driver="com.mysql.jdbc.Driver"/>
    <c:out value="datasource= ${datasource},  Class = ${driver.class}"/>
    <br />
    <br />
    <sql:query var="deejays" dataSource="${datasource}">SELECT * FROM Your_Table_Name_Here</sql:query>
    <table>
    <%-- Get the column names for the header of the table --%>
    <c:forEach var="columnName" items="${deejays.columnNames}"><th><c:out value="${columnName}"/></th></c:forEach>
    <tbody>
    <%-- Get the value of each column while iterating over rows --%>
    <c:forEach var="row" items="${deejays.rows}">
      <tr><c:forEach var="column" items="${row}">
            <td><c:out value="${column.value}"/></td>
          </c:forEach>
      </tr>
    </c:forEach>
    </tbody>
    </table>
    </c:catch>
    <br />
    <br />
    <c:if test="${e!=null}"><span class="error">Error</span>�
      <c:out value="${e}" />
    </c:if>
    </body>
    </html>And this thread might help you:
    http://forum.java.sun.com/thread.jspa?threadID=639471&tstart=44

  • How do u find if a logical database exsits  for ur program requirements.

    hi
    how do u find if a logical database exsits  for ur program requirements.

    Hai friend
    you just open your program and than from your MENU BAR select GOTO menu from that select ATTRIBUTE and enter then check LOGICAL DATABASE name hase give or not.
    1. open your program.
    2. from menu bar select GOTO
    3. from GOTO menu select ATTRIBUTES.
    4. check for LOGICAL DATABASE name has given or not, If give that is  your logical database name.
    reward if useful.
    uk

  • Can I use logical databases in a WebDynpro for ABAP program?

    can I use logical databases in a WebDynpro ABAP program?
    I need to build a WDA screen that is similar to the SAPDBPNP selection screen (user can find the personnel number based on several criteria, such as last_name/first_name of the employee).  So it seems that the exisinting logical databases have already many nice features already built (like the selection screens, the logic behind the screens etc). So I was wondering if/how I can use them in my WDA application.

    Hi
    Please let me also know the solution to this. I am a beginner to WebDynpro  and want to know if I can make use of LDB's as we do in our normal HR programming do develop a WDA in HR.
    Thanks and regards,
    Uma.

  • How do you find if a LOGICAL DATABASE exists for your program requirements?

    how do you find if a LOGICAL DATABASE exists for your program requirements?
    please explain.

    Hi Ramana
      One may not accurately pin point the LDB for ones requirement. But there some ways.
    1. You can find with respect to the application you are working on. You can refer to the Table field TRDIR-APPL. The following are the values it has. So suppose if you have requirement for HR you can search for application 'P' :
    A Assets accounting
    D DASS control station
    E RIVA
    F Financial accounting
    G General Ledger
    H Human resources planning
    I Maintenance
    J RK projects
    K Cost accounting
    L Warehouse management
    M Materials management
    N Hospital
    P Human resources
    Q QSS
    S System
    V Sales
    Y Customer head office
    Z Customer branch
    2. You can see the package in which your current is stored in SE80. Under the same package you can see if there are any LDBs.

  • Regarding logical database PSJ

    Hi,
    how can we add a additional field (Activity type )to the logical database PSJ used for  transaction CN47N.The field does not exist in the given field options
    My requirement is currently the program RPSISVG000  display the actual hours of the activity without any filter on the activity type. user requirement is to filter the data based on few activity types given by them. ie they want the actual hours to be calculated only for these activity types.
    CN47N transaction has been customized to ZCN47N.
    I have populated a field with given activity types but could not get the point where to do the filteration as the program uses GET events.
    GET ACT01. (contains the field activity type LARNT)
    Please let me know how to filter the data based on the activity types.
    Thanks and Regards,
    Premalatha

    Hi Sisab,
    Can you check for your support pack level ?
    125199 Termination with error message OK033 25.03.2003
    Other related notes are:
    165309 Termination with error message OK033 /3 25.03.2003
    144419 Termination with error message OK033 /2 11.10.2005
    Also please provide your system details.
    Do let me know if this solves your problem.
    Thank you.
    Regards,
    Manomeet
    Award points if helpful **

Maybe you are looking for

  • RRI Jump into New Window

    I am trying to figure out a way to have a new query or even template open in a new window on the portal when using a report jump (RRI). I have my BEx Web Analyser iView set to open in "Portal Content Area". If I change that to open in a new window, t

  • Variables defined in OnRequestStart - cant use in another template??

    In my onrequest start i have the following code: <cfset pagetype = 1> <cfif isDefined("URL.type")> <cfset pagetye = #URL.type#> </cfif> <!--- query to get the page type ---> <cfquery name="qryGetPageType" datasource="#Application.dsn#"> select type f

  • How to correct an invalid BDC Field Name in FEBEP table

    Hi, In FEBAN processing, I am unable to re-process a failed transaction because of an invalid value in "BDC Field Name" field.  This entry has not generated any document so far. Is there any way I can fix this error? Thanks.

  • Tiny animation big nightmare

    Hi there, I've pulled together an animation in After Effects and have rendered it to export a .mov have now put it on my timeliine in Adobe Premiere Pro and exported onto a Mini DV.....theeeeeeeeen....I captured it on Apple Mac using FCP. Now have a

  • Transaction Code SPROXY

    Can any one please differentiate the use of Transaction Code SPROXY in R/3 and SPROXY in XI? We have been using Transaction SPROXY in R/3 to Create and Generate PROXIES. We never used SPROXY in XI. Your reply will really help me to understand the sub