<?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: logical database in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/logical-database/m-p/6326824#M1395489</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;Hi Rakesh, 
Try this way. 
&lt;PRE&gt;&lt;CODE&gt;
REPORT ztest_notepad.
TABLES:p0105,pernr.

"AT SELECTION-SCREEN OUTPUT.
AT SELECTION-SCREEN OUTPUT.
  SELECT SINGLE pernr
    FROM pa0105
    INTO p0105-pernr
  WHERE usrid = sy-uname
    AND endda = '99991231'
    AND subty = '0001'.

  pnppernr-low    =  p0105-pernr.
  pnppernr-option = 'EQ'.
  pnppernr-sign   = 'I'.
  APPEND pnppernr.
  CLEAR  pnppernr.

START-OF-SELECTION.

GET pernr.&lt;/CODE&gt;&lt;/PRE&gt;
Thanks
Venkat.O&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Nov 2009 06:48:05 GMT</pubDate>
    <dc:creator>venkat_o</dc:creator>
    <dc:date>2009-11-17T06:48:05Z</dc:date>
    <item>
      <title>logical database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logical-database/m-p/6326821#M1395486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Hi&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I am useing logical database pnpce &amp;amp; make it zpnpce1 . In the selection screen code I want to do one query and pass the data in&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;perner ( emp code ) of selection screen .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;data : pernr_rk type PA0105-pernr .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single pernr from pa0105 into pernr_rk where&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;            usrid = SY-UNAME and&lt;/P&gt;&lt;P&gt;            endda = '99991231' and&lt;/P&gt;&lt;P&gt;            subty = '0001' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I want to  pass pernr_rk   data in the selection screen code&lt;/STRONG&gt;   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: pnppernr FOR pernr-pernr&lt;/P&gt;&lt;P&gt;DEFAULT pernr_rk&lt;/P&gt;&lt;P&gt;SY-UNAME+1(8)&lt;/P&gt;&lt;P&gt;NO-DISPLAY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; MODIF ID sel&lt;/P&gt;&lt;P&gt;  MATCHCODE OBJECT prem&lt;/P&gt;&lt;P&gt; NO INTERVALS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How could i do .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Regards&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Rakesh singh&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2009 04:18:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logical-database/m-p/6326821#M1395486</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-17T04:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: logical database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logical-database/m-p/6326822#M1395487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rakesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I am using logical database pnpce &amp;amp; make it zpnpce1 . In the selection screen code I want to do one query and pass the data in&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hoping that you didnt change the selection screen code when you copied to custom LDB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single pernr from pa0105 into pernr_rk where &lt;STRONG&gt;pnpernr&lt;/STRONG&gt; = &amp;lt;value&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to get it ? -- Goto SE36. Select selections and click display. then you will see the whole selection screen declaration.&lt;/P&gt;&lt;P&gt;you can see which is the field you are looking for based on field text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I want to pass pernr_rk data in the selection screen code&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In the initialisation event of your report&lt;/STRONG&gt;, write the logic for filling the selection screen.&lt;/P&gt;&lt;P&gt;So when selection screen is displayed, value will be seen as filled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;CONCATENATE pernr_rk SY-UNAME+1(8) TO pnpernr SEPARATED BY SPACE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just an info.&lt;/P&gt;&lt;P&gt;Selection screen data declared in LDB code, will automatically be available in report.&lt;/P&gt;&lt;P&gt;There is no need to explicitly declare another selection screen field.&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;Nisha Vengal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2009 05:14:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logical-database/m-p/6326822#M1395487</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-17T05:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: logical database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logical-database/m-p/6326823#M1395488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where i have to initialize in selection screen code or in driver program .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2009 05:20:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logical-database/m-p/6326823#M1395488</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-17T05:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: logical database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logical-database/m-p/6326824#M1395489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;Hi Rakesh, 
Try this way. 
&lt;PRE&gt;&lt;CODE&gt;
REPORT ztest_notepad.
TABLES:p0105,pernr.

"AT SELECTION-SCREEN OUTPUT.
AT SELECTION-SCREEN OUTPUT.
  SELECT SINGLE pernr
    FROM pa0105
    INTO p0105-pernr
  WHERE usrid = sy-uname
    AND endda = '99991231'
    AND subty = '0001'.

  pnppernr-low    =  p0105-pernr.
  pnppernr-option = 'EQ'.
  pnppernr-sign   = 'I'.
  APPEND pnppernr.
  CLEAR  pnppernr.

START-OF-SELECTION.

GET pernr.&lt;/CODE&gt;&lt;/PRE&gt;
Thanks
Venkat.O&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2009 06:48:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logical-database/m-p/6326824#M1395489</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2009-11-17T06:48:05Z</dc:date>
    </item>
  </channel>
</rss>

