<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: how to retrieve data using logical database and custom select options in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-retrieve-data-using-logical-database-and-custom-select-options/m-p/1516004#M237498</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ridhima,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. since u are having your own select options,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. u cannot filter directly , using the ldb functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. in the GET event,&lt;/P&gt;&lt;P&gt;  u are getting the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. At this point,&lt;/P&gt;&lt;P&gt;   after finding the link between the tables,&lt;/P&gt;&lt;P&gt;  u can write some IF condition&lt;/P&gt;&lt;P&gt;  to check based upon the SELECT options,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. If the condition is ok,&lt;/P&gt;&lt;P&gt;  u can proceed further for your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Jul 2006 10:25:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-27T10:25:06Z</dc:date>
    <item>
      <title>how to retrieve data using logical database and custom select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-retrieve-data-using-logical-database-and-custom-select-options/m-p/1516001#M237495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2006 09:41:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-retrieve-data-using-logical-database-and-custom-select-options/m-p/1516001#M237495</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-27T09:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to retrieve data using logical database and custom select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-retrieve-data-using-logical-database-and-custom-select-options/m-p/1516002#M237496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET &amp;lt;NODE_NAME&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to get the data of your logical database it will fill all tables according to selection screen of logical database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then you can use 'PROVIDE' statement to select data on the basis of your selection screen form the &lt;/P&gt;&lt;P&gt;internal tables filled by logical database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Wasim Ahmed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2006 09:55:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-retrieve-data-using-logical-database-and-custom-select-options/m-p/1516002#M237496</guid>
      <dc:creator>dani_mn</dc:creator>
      <dc:date>2006-07-27T09:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to retrieve data using logical database and custom select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-retrieve-data-using-logical-database-and-custom-select-options/m-p/1516003#M237497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi wasim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for reply.&lt;/P&gt;&lt;P&gt;but my problem is that select options which i am using are taken from bkpf and bseg tables which are not there in logical database. i need a link between logical database table prps and bkpf which is not there in PSJ logical database.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2006 10:20:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-retrieve-data-using-logical-database-and-custom-select-options/m-p/1516003#M237497</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-27T10:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to retrieve data using logical database and custom select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-retrieve-data-using-logical-database-and-custom-select-options/m-p/1516004#M237498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ridhima,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. since u are having your own select options,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. u cannot filter directly , using the ldb functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. in the GET event,&lt;/P&gt;&lt;P&gt;  u are getting the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. At this point,&lt;/P&gt;&lt;P&gt;   after finding the link between the tables,&lt;/P&gt;&lt;P&gt;  u can write some IF condition&lt;/P&gt;&lt;P&gt;  to check based upon the SELECT options,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. If the condition is ok,&lt;/P&gt;&lt;P&gt;  u can proceed further for your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2006 10:25:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-retrieve-data-using-logical-database-and-custom-select-options/m-p/1516004#M237498</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-27T10:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: how to retrieve data using logical database and custom select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-retrieve-data-using-logical-database-and-custom-select-options/m-p/1516005#M237499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai Gupta&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the following Document &amp;amp; Links&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. A logical database is in fact&lt;/P&gt;&lt;P&gt;a program only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. This LDB provides two main things :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a) a pre-defined selection screen&lt;/P&gt;&lt;P&gt;which handles all user inputs and validations&lt;/P&gt;&lt;P&gt;b) pre defined set of data &lt;/P&gt;&lt;P&gt;based upon the user selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. So we dont have to worry about from&lt;/P&gt;&lt;P&gt;which tables to fetch data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Moreover, this LDB Program,&lt;/P&gt;&lt;P&gt;handles all user-authorisations&lt;/P&gt;&lt;P&gt;and is efficient in all respects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. tcode is SLDB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;good info about Logical Database. you can check the link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.geekinterview.com/question_details/1506" target="test_blank"&gt;http://www.geekinterview.com/question_details/1506&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/EN/35/2cd77bd7705394e10000009b387c12/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/EN/35/2cd77bd7705394e10000009b387c12/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="490352"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="257816"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/en/9f/db9bed35c111d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/en/9f/db9bed35c111d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Functions for displaying and changing logical databases: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call Transaction SE36 or &lt;/P&gt;&lt;P&gt;Choose ABAP Workbench -&amp;gt; Development -&amp;gt; Programming environ. -&amp;gt; Logical databases &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interaction between database program and report: &lt;/P&gt;&lt;P&gt;During program processing, subroutines are performed in the database program and events are executed in the report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To read data from a database tables we use logical database. &lt;/P&gt;&lt;P&gt;A logical database provides read-only access to a group of related tables to an ABAP/4 program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;advantages:- &lt;/P&gt;&lt;P&gt;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. &lt;/P&gt;&lt;P&gt;i)An easy-to-use standard user interface. &lt;/P&gt;&lt;P&gt;ii)check functions which check that user input is complete,correct,and plausible. &lt;/P&gt;&lt;P&gt;iii)meaningful data selection. &lt;/P&gt;&lt;P&gt;iv)central authorization checks for database accesses. &lt;/P&gt;&lt;P&gt;v)good read access performance while retaining the hierarchical data view determined by the application logic. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;disadvantages:- &lt;/P&gt;&lt;P&gt;i)If you donot specify a logical database in the program attributes,the GET events never occur. &lt;/P&gt;&lt;P&gt;ii)There is no ENDGET command,so the code block associated with an event ends with the next event &lt;/P&gt;&lt;P&gt;statement (such as another GET or an END-OF-SELECTION). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. transaction code SLDB.&lt;/P&gt;&lt;P&gt;2.enter name z&amp;lt;ldb-name&amp;gt;&lt;/P&gt;&lt;P&gt;3.create&lt;/P&gt;&lt;P&gt;4.short text&lt;/P&gt;&lt;P&gt;5.create&lt;/P&gt;&lt;P&gt;6. name of root node (here Ekko)&lt;/P&gt;&lt;P&gt;7. enter short text (f6)&lt;/P&gt;&lt;P&gt;8.node type -&amp;gt; data base table.&lt;/P&gt;&lt;P&gt;9.create&lt;/P&gt;&lt;P&gt;10 change logical DB&lt;/P&gt;&lt;P&gt;riht click on ekko and insert node&lt;/P&gt;&lt;P&gt;here node name ekpo&lt;/P&gt;&lt;P&gt;11.create &lt;/P&gt;&lt;P&gt;12. click on selections &lt;/P&gt;&lt;P&gt;13. press no Should the changed structure of Z&amp;lt;ldb name&amp;gt; be saved first.&lt;/P&gt;&lt;P&gt;14.select tables which you want to join.&lt;/P&gt;&lt;P&gt;15.transfer&lt;/P&gt;&lt;P&gt;16 now you have to o to coding part.&lt;/P&gt;&lt;P&gt;17. save&lt;/P&gt;&lt;P&gt;activate.&lt;/P&gt;&lt;P&gt;19.click to src code&lt;/P&gt;&lt;P&gt;double click on first include and activate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sreeni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2006 10:28:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-retrieve-data-using-logical-database-and-custom-select-options/m-p/1516005#M237499</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-27T10:28:11Z</dc:date>
    </item>
  </channel>
</rss>

