Post some good examples for logical database

Hi all,
Can any one post some good examples for logical database.
Regards,
Lisa

Hi lisa
Example of a Logical Database
Let us consider the logical database TEST_LDB.
Selections in the Selection Include
   SELECT-OPTIONS: SLIFNR   FOR LFA1-LIFNR,
                   SBUKRS   FOR LFB1-BUKRS,
                   SGJAHR   FOR LFC1-GJAHR,
                   SBELNR   FOR BKPF-BELNR.
Database Program
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 
The PROGRAM statement has the addition DEFINING DATABASE TEST_LDB. This defines the database program as belonging to the logical database TEST_LDB.
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. The interface work areas are shared by the database program and the user, and so act as an interface for passing data. The term "user" here can mean either an executable program to which the logical database is linked, or the function module LDB_PROCESS.
The subroutines INIT and PBO initialize the selection screen.
In the PAI subroutine, you can include an authorization check for the user input on the selection screen. Plausibility or value range checks are also possible. If a check fails, you can write an error dialog. The corresponding field on the selection screen is then made ready for input again.
The PUT_<node> subroutines read the database tables according to the selection criteria entered by the user and trigger the relevant events in the executable program. This program is intended only to show the essential structure of a logical database. It does not contain any refinements to improve response times. The order in which the subroutines are called is determined by the structure of the logical database.
regards,
vijay

Similar Messages

  • New-SCSMview - Do we have some good examples for SCSM 2012 R2

    Hi Team,
    I am trying to copy the existing SCSM views and trying to achieve this using  NEW-SCSMView.
    Do we have some good examples on it??
    Regards,
    Dinesh
    Thanks &amp; Regards, Dinesh

    Hi,
    We should first get the existing view criteria tag. And then with new-scsmview command to use the existing criteria.
    You may go through the links below for more details:
    SCSM Customizing Views / XML / View Logic
    https://newsignature.com/articles/scsm-customizing-views-xml-view-logic
    SMLETS: New-SCSMView
    https://social.technet.microsoft.com/forums/systemcenter/en-US/63d936e9-b412-419d-a924-2386e4e4f777/smlets-newscsmview
    Regards,
    Yan Li
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • Can someone suggest some good books for sql reporting services (SSRS) 2012 or above?

    Hi Everyone,
        Can someone suggest some good books for sql reporting services (SSRS) 2012 and above? I ave been working on ssrs for past 2 months and have a basic understanding of ssrs.
    Regards
    Regards

    Hi,
    you can look for below options;
    http://www.amazon.in/Microsoft-Server-Reporting-Services-Recipes/dp/0470563117#reader_0470563117
    http://www.goodreads.com/book/show/18147604-learning-sql-server-reporting-services-2012
    Thanks
    Please Mark This As Answer or vote for Helpful Post if this helps you to solve your question/problem. http://techequation.com

  • How to define our own selection screen for logical database  in abap-hr?

    Hi Friends,
    Can u please help me
    How to define your own selection screens for  logical database.
    we use to do like(goto->attributes-HRReportcatagerious ).but How to desin using  customer table like t599c, t599f and how to add to my logical database?
    Thanks in advance
    charan

    check out this online help
    http://help.sap.com/saphelp_erp2004/helpdata/en/9f/dba65c35c111d1829f0000e829fbfe/frameset.htm
    Regards
    Raja

  • Transporting Views created for Logical Database in QAS

    Hello all,
    Can anybody let me know teh steps...
    How to transport views created for logical database from dev to QAS...
    kindly give the steps...
    thanks
    saurabh

    I don't think PNPCE does anything with HRP infotypes.  PNPCE is all about PA data since PERNR is the main key.  Logical DB PCH is the one that deals with HRP Infotypes.

  • How to extend dynamic selection for Logical Database PNPCE

    Hi All,
    I need to extend dynamic selection for Logical Database PNPCE. Can someone able to help with steps?
    Thanks
    Ranjith

    Hi All,
    I need to extend dynamic selection for Logical Database PNPCE. Can someone able to help with steps?
    Thanks
    Ranjith

  • Modify selection screen for Logical Database 'SDF'

    Hi
    I need to make a section of the standard selection screen for logical database 'SDF' invisible. I have tried the differet selection screen options of the report attributes, but none of the provided ones give me what I want.
    How can I find the name of the screen group for the "Line Item Selection" block of the selection screen so that I can make it invisible when the selection screen is displayed?
    Thanks,
    Thomas

    I tried to do this:
    Loop at screen.
             if   screen-group4 = '026'
               or screen-group4 = '027'
               or screen-group4 = '028'.
                 screen-invisible = 1.
                 modify screen.
             endif.
    endloop.
    This removed the selection text for these fields, but the Line Item Selection block is still visible, and the actual input fields are also visible. They now look like password input fields with all ***** in them.
    What am I doing wrong?
    Thanks for your help!
    Thomas

  • Can somebody help me in getting some good material for Regular Expressions and IP Community list

    can somebody help me in getting some good material for Regular Expressions and IP Community list

    I'm not sure what you mean by "IP Community list", but here are 3 reference sites for Regular Expressions:
    Regular Expression Tutorial - Learn How to Use Regular Expressions
    http://www.regular-expressions.info/tutorial.html
    Regular Expressions Cheat Sheet by DaveChild
    http://www.cheatography.com/davechild/cheat-sheets/regular-expressions/
    Regular Expressions Quick Reference
    http://www.autohotkey.com/docs/misc/RegEx-QuickRef.htm

  • Could someone post some sample soap for using the WS 2.0 api?

    could someone post some sample soap for using the WS 2.0 api?
    I need the actionheader as well. I don't care the object or the action, just need a sample...

    You can throw a javax.xml.ws.soap.SOAPFaultException. https://jax-ws.dev.java.net/nonav/jax-ws-20-fcs/api/javax/xml/ws/soap/SOAPFaultException.html

  • How to get some good docs for general troubleshooting issues of WLS 8.1?

    Hi,
    In my company we just have started WLS, m working as WLS admin.
    How can i get some good docs for general issues as I m facing a lot problem in this early stage.
    If ther is any link, or community which can help me?
    I have tried on google n got some basic info.
    I think ther r some useful info is available on the site " http://eudownload.bea.com/" but m not able to open it.....is this url is changed?

    Troubleshoot Cluster :-
    http://download.oracle.com/docs/cd/E12840_01/wls/docs103/cluster/trouble.html
    Troubleshoot JMS :-
    http://download-llnw.oracle.com/docs/cd/E13222_01/wls/docs92/jms_admin/troubleshoot.html
    Troubleshoot SAF :-
    http://download.oracle.com/docs/cd/E12840_01/wls/docs103/saf_admin/troubleshoot.html
    Troubleshoot JDBC:-
    http://download-llnw.oracle.com/docs/cd/E13222_01/wls/docs81/jdbc/troubleshooting.html
    Troubleshoot JTA:-
    http://download.oracle.com/docs/cd/E11035_01/wls100/jta/trbtrx.html
    Its more or less same for all versions. You can refer to specific version docs. Hope this helps.

  • Some good resources for learning Unity scripting in C#.

    Title said evrything.Recomend me some good resource for learning scripting in Unity3d for C#.
    But because i write on C# for year and half i really want to lessons be more about new features for scripting in C# in Unity,then introducing some basic features in C#.

    Unity webpage provides best tutorials for learning Unity, including C# scripting.
    http://unity3d.com/learn/tutorials/modules/beginner/scripting

  • What are some good resources for title backgrounds and graphics to support titles?

    Like you know when a video plays and a person name appears as they are speaking. Sometimes there is a graphic like bar behind the name. Just to give it some life. I know I can easily make a simple bar but is there a place I can find graphics for video like this?
    Maybe with some animations?
    Or in general some good tools for video editors.
    Thanks!

    Hi Kg_himself,
    You may want to learn how to do such things in After Effects. There are lots of tutorials around the internet on how to do that. Specifically, check out the "Fractal Noise" effect. You can make a wide variety of background very quickly with that effect.
    Thanks,
    Kevin

  • Need some good links for JAXB Customization

    Hi all,
    Please gimme some good links for JAXB customization tutorial.
    cheers
    JoyBoy

    Hi all,
    Please gimme some good links for JAXB customization tutorial.
    cheers
    JoyBoy

  • Do I need to do authority check for Logical Database?

    Hi,
    Just to check, do I need to code authority check into a Logical Database or Logical Database will do the check by itself without me coding?
    This is because I have a user which does not have rights to infotypes 2000 and above and the logical database still show the user data which belongs to the infotypes 2000 and above.
    If I have to code it, how do I go about to do the coding of authority check?
    Thanks in advance.  Will reward points for good solutions.
    Lawrence

    Let me give an example
    Tables : pernr.
    infotypes: 0000, 0001, 2001.
    Get pernr.
    Do you mean that the 'get pernr' command will not return any data for users who do not have authorisation for infotype 2001?

  • Selection screen for logical database PNP..

    hi all,
    I am having a requirement to produce a HR Report where i need to use logical database PNP. Now the issue is i need to supress some of the elements of standard selection screen of PNP and add a couple of fields of mine.
    i have been looking all around and i got few of the below methods.
    its good to use a report category.
    somewhere it says include it in ur program using selection screen block..
    can you please guide me which is the best way and what would be a perfect solution?
    thanks in advance,
    Reena

    Hi reeena,
    1. simple
    2. u want to
      a) add ur own fields
      b) suppress some fields
    3. a) is simple, just add your parameters,
       in your program, and they will appear
       b) use SCREEN logic
    4. just copy paste to get a taste of it
      (it will HIDE the PAYROLL AREA field)
      and add MATNR field
    5.
    report abc.
    TABLES : PERNR.
    PARAMETERS : MATNR LIKE MARA-MATNR.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF SCREEN-NAME CS 'ABKRS'.
          SCREEN-INVISIBLE = '1'.
          SCREEN-INPUT = '0'.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    regards,
    amit m.

Maybe you are looking for

  • Trouble navigating to images folder

    Hi, I am sure that this is simple but ... I want to have a div with a background image ... here is the css .how_we_work_box { position: absolute; left:350px; top:450px; font-size: 16px; font-weight: bold; height: 150px; width: 200px; background-image

  • Need to know the column names in my dynamic select clause

    Dear All, Please go through the following code. While executing the following code i am getting an error saying that dbms_sql.describe_columns overflow, col_name_len=35. Use describe_columns2. Please guide me how to proceed further. Or please help me

  • Installing Windows XP on Qosmio X305-Q701

    Is it possible to install Windows XP on my Qosmio X305-Q701 without the need of a floppy drive etc? I saw a few other topics about it. However on different models, and my laptop does not have the option of putting my SATA drive in to compatibility mo

  • How to make texts of label as red highlighted?

    Hi Experts, Now i created a text field for displaying some words, i ticked the check box 'Bright' of the propertites of this label. And finally it is displayed as blue hightlighted . But now i want it to be highlighted as red color, how could i imple

  • Every few minutes my screen goes blue! It has never done this before I upgraded to Lion.

    I installed Lion last night, now every few minutes my screen goes blue! It has never done this before I upgraded to Lion. Any ideas?