<?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: W/O using OOABAP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/w-o-using-ooabap/m-p/2525249#M572033</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use READ TABLE statement to read one of the internal table based on the primaty key's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can read the table..fetch data..and then APPEND the data into your main table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this answers your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jul 2007 07:04:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-11T07:04:23Z</dc:date>
    <item>
      <title>W/O using OOABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/w-o-using-ooabap/m-p/2525247#M572031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;plzz help me giving all the possible ways with explanation to do the following :------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i dont want the database table to use regularly, so i created 3 internal tables from which i want to extract data &amp;amp; put those data in the main output table which is used in ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the 3 internal tables are linked thru primary keys.....but want other fields to be extracted thru primary-foreign key relationship.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how should i bring the data from the the 3 internal tables into the output internal table ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;W/O using OOABAP.&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 07:00:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/w-o-using-ooabap/m-p/2525247#M572031</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T07:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: W/O using OOABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/w-o-using-ooabap/m-p/2525248#M572032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Divya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to use the LOOP ..ENDLOOP and READ. No need to use ABAP OO here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 07:02:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/w-o-using-ooabap/m-p/2525248#M572032</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T07:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: W/O using OOABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/w-o-using-ooabap/m-p/2525249#M572033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use READ TABLE statement to read one of the internal table based on the primaty key's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can read the table..fetch data..and then APPEND the data into your main table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this answers your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 07:04:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/w-o-using-ooabap/m-p/2525249#M572033</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T07:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: W/O using OOABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/w-o-using-ooabap/m-p/2525250#M572034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;See the sample code how data is fetched into internal tables and how it is read in the loop of one internal table&lt;/P&gt;&lt;P&gt;form read_data.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the Accounting Documents for the GR/IR Account Entered on&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Selection Screen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  clear i_bsis.&lt;/P&gt;&lt;P&gt;  refresh i_bsis.&lt;/P&gt;&lt;P&gt;  select bukrs           " Company Code&lt;/P&gt;&lt;P&gt;         hkont           " GR IR Account&lt;/P&gt;&lt;P&gt;         gjahr           " Fiscal Year&lt;/P&gt;&lt;P&gt;         belnr           " Acc Document&lt;/P&gt;&lt;P&gt;         buzei           " Item No&lt;/P&gt;&lt;P&gt;         budat           " Receipt Date(Posting)&lt;/P&gt;&lt;P&gt;         monat           " Period&lt;/P&gt;&lt;P&gt;   into table i_bsis&lt;/P&gt;&lt;P&gt;   from  bsis&lt;/P&gt;&lt;P&gt;   where  bukrs = p_bukrs&lt;/P&gt;&lt;P&gt;     and  hkont = p_grira&lt;/P&gt;&lt;P&gt;     and  budat in s_budat&lt;/P&gt;&lt;P&gt;     and  monat in s_monat .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    message i899 with 'No data found'(043).&lt;/P&gt;&lt;P&gt;    g_exit = c_x.&lt;/P&gt;&lt;P&gt;    stop.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  sort i_bsis by bukrs hkont gjahr belnr buzei.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the Vendor,PO,Material,Qty details from BSEG Table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  if not i_bsis[] is initial.&lt;/P&gt;&lt;P&gt;    clear i_bseg.&lt;/P&gt;&lt;P&gt;    refresh i_bseg.&lt;/P&gt;&lt;P&gt;    select bukrs           " Company Code&lt;/P&gt;&lt;P&gt;           belnr           " Acc Document&lt;/P&gt;&lt;P&gt;           buzei           " Item No&lt;/P&gt;&lt;P&gt;           gjahr           " Fiscal Year&lt;/P&gt;&lt;P&gt;           shkzg           " Dr/Cr Indicator&lt;/P&gt;&lt;P&gt;           lifnr           " Vendor Code&lt;/P&gt;&lt;P&gt;           matnr           " Material No&lt;/P&gt;&lt;P&gt;           ebeln           " Purchase Order&lt;/P&gt;&lt;P&gt;           ebelp           " PO Item&lt;/P&gt;&lt;P&gt;           werks           " Plant&lt;/P&gt;&lt;P&gt;           menge           " PO Quantity&lt;/P&gt;&lt;P&gt;           meins           " UOM&lt;/P&gt;&lt;P&gt;           dmbtr           " Amount in Local Currency&lt;/P&gt;&lt;P&gt;           wrbtr           " Amount in Trans.Currency&lt;/P&gt;&lt;P&gt;    into table i_bseg&lt;/P&gt;&lt;P&gt;    from   bseg&lt;/P&gt;&lt;P&gt;    for all entries in i_bsis&lt;/P&gt;&lt;P&gt;    where  bukrs = p_bukrs&lt;/P&gt;&lt;P&gt;    and    belnr = i_bsis-belnr&lt;/P&gt;&lt;P&gt;    and    gjahr = i_bsis-gjahr&lt;/P&gt;&lt;P&gt;    and    buzei = i_bsis-buzei&lt;/P&gt;&lt;P&gt;    and    lifnr in s_lifnr&lt;/P&gt;&lt;P&gt;    and    werks in s_werks&lt;/P&gt;&lt;P&gt;    and    matnr in s_matnr&lt;/P&gt;&lt;P&gt;    and    ebeln in s_ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    sort i_bseg by bukrs belnr buzei gjahr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Select the Trans.Currency from BKPF Table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    clear i_bkpf.&lt;/P&gt;&lt;P&gt;    refresh i_bkpf.&lt;/P&gt;&lt;P&gt;    select bukrs           " Company Code&lt;/P&gt;&lt;P&gt;           belnr           " Acc Document&lt;/P&gt;&lt;P&gt;           gjahr           " Fiscal Year&lt;/P&gt;&lt;P&gt;           waers           " Trans. Currency&lt;/P&gt;&lt;P&gt;           awkey           " Object Key&lt;/P&gt;&lt;P&gt;           awtyp           " Reference Procedure&lt;/P&gt;&lt;P&gt;    into table i_bkpf&lt;/P&gt;&lt;P&gt;    from   bkpf&lt;/P&gt;&lt;P&gt;    for all entries in i_bsis&lt;/P&gt;&lt;P&gt;    where  bukrs = p_bukrs&lt;/P&gt;&lt;P&gt;    and    belnr = i_bsis-belnr&lt;/P&gt;&lt;P&gt;    and    gjahr = i_bsis-gjahr.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  sort i_bkpf by bukrs belnr gjahr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the Quantity and UOM of Material from MSEG Table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  if not i_bkpf[] is initial.&lt;/P&gt;&lt;P&gt;    clear i_mseg.&lt;/P&gt;&lt;P&gt;    refresh i_mseg.&lt;/P&gt;&lt;P&gt;    select mblnr           " Material Document&lt;/P&gt;&lt;P&gt;           mjahr           " Fiscal Year&lt;/P&gt;&lt;P&gt;           bwart           " Movement Type&lt;/P&gt;&lt;P&gt;           matnr           " Material No&lt;/P&gt;&lt;P&gt;           menge           " PO Quantity&lt;/P&gt;&lt;P&gt;           meins           " UOM&lt;/P&gt;&lt;P&gt;      into table i_mseg&lt;/P&gt;&lt;P&gt;      from   mseg&lt;/P&gt;&lt;P&gt;      for all entries in i_bkpf&lt;/P&gt;&lt;P&gt;      where  mblnr = i_bkpf-awkey(10).&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  sort i_mseg by mblnr mjahr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the Material And Description from EKPO Table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if not i_bseg[] is initial.&lt;/P&gt;&lt;P&gt;    clear i_ekpo.&lt;/P&gt;&lt;P&gt;    refresh i_ekpo.&lt;/P&gt;&lt;P&gt;    select ebeln           " Purchase Order&lt;/P&gt;&lt;P&gt;           ebelp           " PO Item&lt;/P&gt;&lt;P&gt;           matnr           " Material No&lt;/P&gt;&lt;P&gt;           txz01           " Material Text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    into table i_ekpo&lt;/P&gt;&lt;P&gt;    from   ekpo&lt;/P&gt;&lt;P&gt;    for all entries in i_bseg&lt;/P&gt;&lt;P&gt;    where  ebeln = i_bseg-ebeln&lt;/P&gt;&lt;P&gt;    and    ebelp = i_bseg-ebelp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    sort i_ekpo by ebeln ebelp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the Valuation Class from MBEW Table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    clear i_mbew.&lt;/P&gt;&lt;P&gt;    refresh i_mbew.&lt;/P&gt;&lt;P&gt;    select matnr           " Material No&lt;/P&gt;&lt;P&gt;           bwkey           " Plant&lt;/P&gt;&lt;P&gt;           bklas           " Valuation Class&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    into table i_mbew&lt;/P&gt;&lt;P&gt;    from   mbew&lt;/P&gt;&lt;P&gt;    for all entries in i_bseg&lt;/P&gt;&lt;P&gt;    where  matnr = i_bseg-matnr&lt;/P&gt;&lt;P&gt;    and    bwkey = i_bseg-werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    sort i_mbew by matnr werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the Cost Center and Cost Element of the PO from EKKN Table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    clear i_ekkn.&lt;/P&gt;&lt;P&gt;    refresh i_ekkn.&lt;/P&gt;&lt;P&gt;    select ebeln           " Purchase Order&lt;/P&gt;&lt;P&gt;           ebelp           " PO Item&lt;/P&gt;&lt;P&gt;           kostl           " Cost Center&lt;/P&gt;&lt;P&gt;           sakto           " Cost Element&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    into table i_ekkn&lt;/P&gt;&lt;P&gt;    from   ekkn&lt;/P&gt;&lt;P&gt;    for all entries in i_bseg&lt;/P&gt;&lt;P&gt;    where  ebeln = i_bseg-ebeln&lt;/P&gt;&lt;P&gt;    and    ebelp = i_bseg-ebelp&lt;/P&gt;&lt;P&gt;    and    kostl in s_kostl&lt;/P&gt;&lt;P&gt;    and    sakto in s_kstar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    sort i_ekkn by ebeln ebelp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the Vendor Name&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    clear i_lfa1.&lt;/P&gt;&lt;P&gt;    refresh i_lfa1.&lt;/P&gt;&lt;P&gt;    select lifnr            " Vendor&lt;/P&gt;&lt;P&gt;           name1            " Name&lt;/P&gt;&lt;P&gt;    into table i_lfa1&lt;/P&gt;&lt;P&gt;    from   lfa1&lt;/P&gt;&lt;P&gt;    for all entries in i_bseg&lt;/P&gt;&lt;P&gt;    where  lifnr = i_bseg-lifnr.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  sort i_lfa1 by lifnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Move the data to Final Output Internal Table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  loop at i_bsis.&lt;/P&gt;&lt;P&gt;    i_final-belnr = i_bsis-belnr.     " FI Document&lt;/P&gt;&lt;P&gt;    i_final-monat = i_bsis-monat.     " Period&lt;/P&gt;&lt;P&gt;    i_final-budat = i_bsis-budat.     " Rec. Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Read the Transaction Currency from BKPF Internal Table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    read table i_bkpf with key bukrs = i_bsis-bukrs&lt;/P&gt;&lt;P&gt;                               belnr = i_bsis-belnr&lt;/P&gt;&lt;P&gt;                               gjahr = i_bsis-gjahr&lt;/P&gt;&lt;P&gt;                               binary search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      i_final-waers = i_bkpf-waers.     " Tran.Currency&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Read the Movement Type for all Material Related&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Documents from MSEG Internal Table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      if i_bkpf-awtyp = c_mkpf.&lt;/P&gt;&lt;P&gt;        read table i_mseg with key mblnr = i_bkpf-awkey(10)&lt;/P&gt;&lt;P&gt;                                   mjahr = i_bkpf-awkey+10(4).&lt;/P&gt;&lt;P&gt;        if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;          i_final-bwart = i_mseg-bwart.     " Movement Type&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Read Vendor, Plant, PO Document, Local And Trans.Amounts&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;from BSEG Internal Table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    read table i_bseg with key bukrs = i_bsis-bukrs&lt;/P&gt;&lt;P&gt;                               belnr = i_bsis-belnr&lt;/P&gt;&lt;P&gt;                               gjahr = i_bsis-gjahr&lt;/P&gt;&lt;P&gt;                               buzei = i_bsis-buzei&lt;/P&gt;&lt;P&gt;                               binary search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      i_final-lifnr = i_bseg-lifnr.     " Vendor&lt;/P&gt;&lt;P&gt;      i_final-werks = i_bseg-werks.     " Plant&lt;/P&gt;&lt;P&gt;      i_final-ebeln = i_bseg-ebeln.     " PO&lt;/P&gt;&lt;P&gt;      i_final-dmbtr = i_bseg-dmbtr.     " Local Amount&lt;/P&gt;&lt;P&gt;      i_final-wrbtr = i_bseg-wrbtr.     " Tran.Amount&lt;/P&gt;&lt;P&gt;      i_final-menge = i_bseg-menge.     " Quantity&lt;/P&gt;&lt;P&gt;      i_final-meins = i_bseg-meins.     " UOM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;For Credit Indicator(SHKZG = H) amounts should be (-)ve&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      if i_bseg-shkzg = c_h.&lt;/P&gt;&lt;P&gt;        i_final-dmbtr = i_final-dmbtr * -1.&lt;/P&gt;&lt;P&gt;        i_final-wrbtr = i_final-wrbtr * -1.&lt;/P&gt;&lt;P&gt;        i_final-menge = i_final-menge * -1.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Read the Material and its Description from EKPO Internal Table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      read table i_ekpo with key ebeln = i_bseg-ebeln&lt;/P&gt;&lt;P&gt;                                 ebelp = i_bseg-ebelp&lt;/P&gt;&lt;P&gt;                                 matnr = i_bseg-matnr&lt;/P&gt;&lt;P&gt;                                 binary search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;        i_final-matnr = i_ekpo-matnr.     " Material Number&lt;/P&gt;&lt;P&gt;        i_final-txz01 = i_ekpo-txz01.     " Material Text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Populate the Material Status depending on the Input Checkbox&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;On Selection Screen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        if not i_ekpo-matnr is initial.&lt;/P&gt;&lt;P&gt;          i_final-status = c_x.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Read the PO related Cost Element and Cost Centers&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;from EKKN Internal Table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      read table i_ekkn with key ebeln = i_bseg-ebeln&lt;/P&gt;&lt;P&gt;                                 ebelp = i_bseg-ebelp&lt;/P&gt;&lt;P&gt;                                 binary search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;        i_final-kostl = i_ekkn-kostl.     " Cost Center&lt;/P&gt;&lt;P&gt;        i_final-sakto = i_ekkn-sakto.     " Cost Element&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Read the Valuation Class from MBEW Internal Table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      read table i_mbew with key matnr = i_bseg-matnr&lt;/P&gt;&lt;P&gt;                                 werks = i_bseg-werks&lt;/P&gt;&lt;P&gt;                                 binary search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;        i_final-bklas = i_mbew-bklas.     " Val Class&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Read the Vendor Name from LFA1 Internal Table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      read table i_lfa1 with key lifnr = i_bseg-lifnr&lt;/P&gt;&lt;P&gt;                                 binary search.&lt;/P&gt;&lt;P&gt;      if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;        i_final-name1 = i_lfa1-name1.     " Vendor Name&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    append i_final.&lt;/P&gt;&lt;P&gt;    clear i_final.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  sort i_final by lifnr werks monat matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Depending on the check Box Selected display the data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  if p_incmt = c_x and p_incnm ne c_x.&lt;/P&gt;&lt;P&gt;    delete i_final where matnr eq space.&lt;/P&gt;&lt;P&gt;  elseif p_incnm = c_x and p_incmt ne c_x.&lt;/P&gt;&lt;P&gt;    delete i_final where matnr ne space.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.           "Read Data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points for useful Answers&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 07:09:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/w-o-using-ooabap/m-p/2525250#M572034</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T07:09:40Z</dc:date>
    </item>
  </channel>
</rss>

