<?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: simple doubt in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-doubt/m-p/1066881#M93548</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT-OPTIONS S_BTRTL FOR PA0000-BTRTL.

SELECT BTRTL FIELD1 FIELD2 etc FROM DBTABLE INTO TABLE ITAB WHERE BTRTL IN S_BTRTL AND, OR OTHER CONDITIONS.

SELECT BTRTL BTEXT INTO TABLE ITAB_TEXT FROM T001P
                  WHERE BTRTL IN S_BTRTL
                    AND SPRAS = SY-LANGU.

END-OF-SELECTION.

LOOP AT ITAB.
  WRITE:/ ITAB-BTRTL.
  CLEAR ITAB_TEXT.
  READ TABLE ITAB_TEXT WITH KEY BTRTL = ITAB-BTRTL.
  WRITE: ITAB_TEXT-BTRTL.
ENDDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Oct 2005 04:28:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-10-13T04:28:47Z</dc:date>
    <item>
      <title>simple doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-doubt/m-p/1066880#M93547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have &lt;/P&gt;&lt;P&gt;btrtl for pa0000-btrtl in selection screen.&lt;/P&gt;&lt;P&gt;(btrtl is personal sub area number)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i select this range in sel screen., i want to display the personal sub area text in the report output.&lt;/P&gt;&lt;P&gt;sub-area text is in t001p-btext.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone tell me!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2005 04:18:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-doubt/m-p/1066880#M93547</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-13T04:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: simple doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-doubt/m-p/1066881#M93548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT-OPTIONS S_BTRTL FOR PA0000-BTRTL.

SELECT BTRTL FIELD1 FIELD2 etc FROM DBTABLE INTO TABLE ITAB WHERE BTRTL IN S_BTRTL AND, OR OTHER CONDITIONS.

SELECT BTRTL BTEXT INTO TABLE ITAB_TEXT FROM T001P
                  WHERE BTRTL IN S_BTRTL
                    AND SPRAS = SY-LANGU.

END-OF-SELECTION.

LOOP AT ITAB.
  WRITE:/ ITAB-BTRTL.
  CLEAR ITAB_TEXT.
  READ TABLE ITAB_TEXT WITH KEY BTRTL = ITAB-BTRTL.
  WRITE: ITAB_TEXT-BTRTL.
ENDDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2005 04:28:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-doubt/m-p/1066881#M93548</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-13T04:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: simple doubt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-doubt/m-p/1066882#M93549</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;I cannot see BTRTL in pa0000.&lt;/P&gt;&lt;P&gt;But you can make the select statement as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types : begin of ty,&lt;/P&gt;&lt;P&gt;        btext type t001p-btext,&lt;/P&gt;&lt;P&gt;        end of ty.&lt;/P&gt;&lt;P&gt;data : i_btext type standard table of ty,&lt;/P&gt;&lt;P&gt;       w_btext type ty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select btext into table i_btext from t001p where btrtl in s_btrtl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_btext into w_btext.&lt;/P&gt;&lt;P&gt;write w_btext-btext.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly reward points if it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2005 04:34:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-doubt/m-p/1066882#M93549</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2005-10-13T04:34:59Z</dc:date>
    </item>
  </channel>
</rss>

