<?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: Selecting Data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data/m-p/8254291#M1631441</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;&lt;/P&gt;&lt;P&gt;Please check in T012 there displays   Bank key   and its details  but it will not show  text1 field   , because  text1 field is taken  from  This table  T012T .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so for taking bank details name  you  have to pass bank key to "T012T"&lt;/P&gt;&lt;P&gt;and get details   .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Always remeber  that  for master  tables   when it does not show description field  it means  there add "T" at last  and will give description table  .&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;Deepak.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Sep 2011 09:30:21 GMT</pubDate>
    <dc:creator>deepak_dhamat</dc:creator>
    <dc:date>2011-09-21T09:30:21Z</dc:date>
    <item>
      <title>Selecting Data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data/m-p/8254286#M1631436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am selecting the data from table PAYR to display the cheque payment details.&lt;/P&gt;&lt;P&gt;in the HBKID(5) -house bank key is there.&lt;/P&gt;&lt;P&gt;i need to display bank name.&lt;/P&gt;&lt;P&gt;for that i found a std table T012... if u display the entries it displays the bank name &lt;/P&gt;&lt;P&gt;but that field is not there in table.&lt;/P&gt;&lt;P&gt;i also tried from table bnka. but it is not selecting data because of lenth difference i.e.. bankl(15) and hbkid(5).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you please anyone help me in this regard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: anurag.radha on Sep 21, 2011 10:23 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 08:22:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data/m-p/8254286#M1631436</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-21T08:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting Data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data/m-p/8254287#M1631437</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;First map the table PAYR-HBKID = T012-HBKID after fetching the data map the tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; T012-BANKS  = BNKA-BANKS like that join the tables after that place the common data into one internal table,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;muralii.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 08:34:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data/m-p/8254287#M1631437</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-21T08:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting Data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data/m-p/8254288#M1631438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check the table T012T. If you want to find table name, just press F1 in text field to display the table and filed name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 08:38:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data/m-p/8254288#M1631438</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-21T08:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting Data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data/m-p/8254289#M1631439</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;House Bank Key and House Bank Name are 2 different fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After you select the records from table PAYR, make use of FOR ALL ENTRIES syntax and select the records from text table T012T. This table will give you all house bank names. Don't forget to filter this text table with the language key. i.e. EN for English.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, before you make use of FOR ALL ENTRIES, do make a sy-subrc check after fetching records from PAYR table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Danish.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 08:44:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data/m-p/8254289#M1631439</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-21T08:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting Data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data/m-p/8254290#M1631440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi murali...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT it_payr INTO wa_payr.&lt;/P&gt;&lt;P&gt;   MOVE-CORRESPONDING wa_payr TO wa_final1.&lt;/P&gt;&lt;P&gt;*Move Bank name to final work area&lt;/P&gt;&lt;P&gt;    payr-hbkid  = t012-hbkid.&lt;/P&gt;&lt;P&gt;    select single bankl banka from bnka into (wa_final1-bankl, wa_final1-banka) where bankl = wa_payr-hbkid.&lt;/P&gt;&lt;P&gt;   t012-banks = bnka-banks.&lt;/P&gt;&lt;P&gt;    APPEND wa_final1 TO it_final1.&lt;/P&gt;&lt;P&gt; clear wa_final1.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the code i have written.&lt;/P&gt;&lt;P&gt;but it's not working.. do i need do change the code ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 09:15:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data/m-p/8254290#M1631440</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-21T09:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting Data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data/m-p/8254291#M1631441</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;&lt;/P&gt;&lt;P&gt;Please check in T012 there displays   Bank key   and its details  but it will not show  text1 field   , because  text1 field is taken  from  This table  T012T .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so for taking bank details name  you  have to pass bank key to "T012T"&lt;/P&gt;&lt;P&gt;and get details   .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Always remeber  that  for master  tables   when it does not show description field  it means  there add "T" at last  and will give description table  .&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;Deepak.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 09:30:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data/m-p/8254291#M1631441</guid>
      <dc:creator>deepak_dhamat</dc:creator>
      <dc:date>2011-09-21T09:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting Data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data/m-p/8254292#M1631442</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;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

DATA: it_payr  TYPE TABLE OF payr,
      wa_payr  LIKE LINE OF it_payr,
      it_t012t TYPE TABLE OF t012t,
      wa_t012t LIKE LINE OF it_t012t.

* Suppose you have retrieved the data from table PAYR into IT_PAYR.

IF sy-subrc = 0.
  SELECT *
    FROM t012t
    INTO TABLE it_t012t
    FOR ALL ENTRIES IN it_payr
    WHERE spras EQ sy-langu
    AND   bukrs EQ it_payr-zbukr
    AND   hbkid EQ it_payr-hbkid.

  LOOP AT it_payr INTO wa_payr.
    MOVE-CORRESPONDING wa_payr TO wa_final.

    READ TABLE it_t012t INTO wa_t012t WITH KEY hbkid = wa_final-hbkid.
    IF sy-subrc = 0.
      wa_final-text1 = wa_t012t-text1.  " This contains the Bank Name.
    ENDIF.

    APPEND wa_final TO it_final.
    CLEAR: wa_payr, wa_final.
  ENDLOOP.
ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Danish.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 09:39:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data/m-p/8254292#M1631442</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-21T09:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting Data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data/m-p/8254293#M1631443</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;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT it_payr INTO wa_payr.
MOVE-CORRESPONDING wa_payr TO wa_final1.
*Move Bank name to final work area
payr-hbkid = t012-hbkid.  " From  where  you are getting  " t012-hbkid" 
select single bankl banka from bnka into (wa_final1-bankl, wa_final1-banka) where bankl = wa_payr-hbkid.
t012-banks = bnka-banks. " HEre again you are modifyin  t012-banks   what is purpose  .

APPEND wa_final1 TO it_final1.
clear wa_final1.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this  below  code   but you need to have  bank key  and company code  to pass .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT it_payr INTO wa_payr.
MOVE-CORRESPONDING wa_payr TO wa_final1.

select single bankl banka from bnka into (wa_final1-bankl, wa_final1-banka) where bankl = wa_payr-hbkid.
t012-banks = bnka-banks. " HEre again you are modifyin  t012-banks   what is purpose  .

select  single * from t012 
where bukrs = "company code'
and     hbkid = wa_payr-hbkid .

if sy-subrc = 0 .

select single * from  t012t 
where spras ='EN'.
bukrs = "company code'
and     hbkid = t012-hbkid .

if sy-subrc = 0 .


wa_final1-bank_name = t012t-text1 .



APPEND wa_final1 TO it_final1.
clear wa_final1.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Deepak.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 09:48:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data/m-p/8254293#M1631443</guid>
      <dc:creator>deepak_dhamat</dc:creator>
      <dc:date>2011-09-21T09:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting Data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data/m-p/8254294#M1631444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hI Dinesh,&lt;/P&gt;&lt;P&gt;Thank you for reply.&lt;/P&gt;&lt;P&gt;but when i am executing this it throughs an error that&lt;/P&gt;&lt;P&gt;" when u use for all entries bukrs and it_payr-bukrs must have same type and same length"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 09:59:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data/m-p/8254294#M1631444</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-21T09:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting Data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data/m-p/8254295#M1631445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Dinesh,&lt;/P&gt;&lt;P&gt;Problem solved&lt;/P&gt;&lt;P&gt;by using the code....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_payr into wa_payr.&lt;/P&gt;&lt;P&gt;move-corresponding wa_payr to wa-final.&lt;/P&gt;&lt;P&gt;    select single text1 from t012t into wa_final-bname where hbkid = wa_payr-hbkid&lt;/P&gt;&lt;P&gt;                                                        AND SPRAS EQ 'EN'.&lt;/P&gt;&lt;P&gt;append wa_final to it_final.&lt;/P&gt;&lt;P&gt;clear : wa_final, wa_payr.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;Dinesh@ : Your code help me to strike this piece of code.&lt;/P&gt;&lt;P&gt;Thnak You so much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: anurag.radha on Sep 21, 2011 12:16 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 10:15:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data/m-p/8254295#M1631445</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-21T10:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting Data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data/m-p/8254296#M1631446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thnak you Deepak.&lt;/P&gt;&lt;P&gt;Issue solved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 10:18:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data/m-p/8254296#M1631446</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-21T10:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting Data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data/m-p/8254297#M1631447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Issue Solved.&lt;/P&gt;&lt;P&gt;Thank you to all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 10:55:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-data/m-p/8254297#M1631447</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-21T10:55:03Z</dc:date>
    </item>
  </channel>
</rss>

