Scrol

SAP Trainings contact sap.sreeram@gmail.com or 091-9916083157, 001-210-399-8414

Logical Database Step by step Creation


Step-by-Step Procedure to create the logical data base(LDB):

  1. Enter the transaction code SE36.

 














  1. Enter the LDB name starting with Y or Z and click on create.















  1.  Enter the short description click on “Create”


 
  1. Enter the package name and click on “Save”.


 
  1. Enter the root table name and short description and click on create. NOTE:: Node name and DB table name must be same.



  1. Then you will see the following screen layout. To insert other nodes select the node first and right click then select “Insert node”.

 
  1. Provide the DB table name, short text and then click on “Create New Node”. Then click on “Save”.

 
  1. You will see the following screen. From the application tool bar click on “Selections”.



  1. Then it will ask whether the LDB is generated from the structure? Click “Yes”.
  2. Then again it will ask whether you want to define the “search help”? click “no”. then you will see the following screen. Select the database tables for which free selections are to be generated. Click on “Transfer”.


 
  1. Un comment the select-options and replace “?” with the suitable database table name. Then Save and activate. Then click on “back”(F3).


 
  1. Click on “ Source code” button from the application tool bar


 
  1. Then you will see the following screen


 
  1.  Double click on TOP include. Save and active and then come back(F3).

 

  1. Double click on next include. Then you will see the following screen.


 
  1. if you are created the LDB using n number of database tables then you will get n number of includes(DB<p_name>N001, DB<p_name>N002 ,…….. DB<p_name>N00n).
  2. Double Click the first node. And insert the following code before the PUT statement .

Select * from zsemp where eno in eno.
            Put zsemp.
                        Endselect.
           
                        Then Save and activate.


  1. Then double click on second node and enter the following code before the put statement.

Select * from zsdept where edept = zsdept-edept and edept in edept.
            Put zsdept.
Endselect.



  1.  That’s completes the creation of Logical Data Base.
  2. Now using this LDB we have to write the program.
  3. For that create any program of Type 1/E (Report Program).
  4. Enter the transaction code SE38. Provide the program name and then click on “Create”. Then Enter the short description, select the type of the program, Logical database table name and then click on “Save”.



  1.  Enter the following code.

nodes: zsemp, zsdept.

get: zsemp, zsdept.

write: / zsemp-eno, zsemp-ename, zsemp-esal, zsemp-edept, zsdept-edes,
         zsdept-epf.

  1.  Save, Check, activate and execute the program.