<?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: types and data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/types-and-data/m-p/1421819#M202399</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Declare the internal table as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;DATA&amp;lt;/b&amp;gt;: it_mseg type standard table of t_mseg,&lt;/P&gt;&lt;P&gt;      wa_mseg type t_mseg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And not sure why you need the 'Append wa_mseg' statement? Data will be directly selected into the tab, you dont require a select-endselect there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a&lt;SUB&gt;mblnr a&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;a&lt;SUB&gt;menge a&lt;/SUB&gt;lifnr&lt;/P&gt;&lt;P&gt;b~budat&lt;/P&gt;&lt;P&gt;into &amp;lt;b&amp;gt;table&amp;lt;/b&amp;gt; it_mseg&lt;/P&gt;&lt;P&gt;from mseg as a&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;inner&amp;lt;/b&amp;gt; join mkpf as b&lt;/P&gt;&lt;P&gt;on a&lt;SUB&gt;mblnr = b&lt;/SUB&gt;mblnr&lt;/P&gt;&lt;P&gt;where werks = p_werks and&lt;/P&gt;&lt;P&gt;budat = s_budat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sudha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Sudha Mohan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Jul 2006 06:07:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-19T06:07:32Z</dc:date>
    <item>
      <title>types and data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/types-and-data/m-p/1421816#M202396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;   i have to use both types and data without occurs n and i have to select the data from different tables and put in an internal table.Here is my code can any one modify this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tables: mseg,mkpf,lfa1,ekko,ekpo,bseg,bkpf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of block b1 with frame title text-001.&lt;/P&gt;&lt;P&gt;parameters: p_werks like mseg-werks.&lt;/P&gt;&lt;P&gt;select-options: s_budat for Mkpf-budat.&lt;/P&gt;&lt;P&gt;selection-screen end of block b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types:begin     of  t_mseg,&lt;/P&gt;&lt;P&gt;      p_werks   type  werks_d,   "Plant location&lt;/P&gt;&lt;P&gt;      mblnr     type  mblnr,      "Number of Material Document&lt;/P&gt;&lt;P&gt;      s_budat   type  budat,     "Posting date in document&lt;/P&gt;&lt;P&gt;      mtsnr     type  mtsnr1,    "Number of external material slip&lt;/P&gt;&lt;P&gt;      maktx     type  maktx,     "Material description&lt;/P&gt;&lt;P&gt;      menge     type  menge_d,   "Quantity&lt;/P&gt;&lt;P&gt;      lifnr     type  lifnr,     "Vendor Number&lt;/P&gt;&lt;P&gt;      name1     type  name1_gp,  "Name1&lt;/P&gt;&lt;P&gt;      name2     type  name2_gp,  "Name2&lt;/P&gt;&lt;P&gt;      telf1     type  telf1,     "Telephone number&lt;/P&gt;&lt;P&gt;      trnam     type  ztrnam,    "Transporter name&lt;/P&gt;&lt;P&gt;      glano     type  zglano,    "GR/LR/AWB  No&lt;/P&gt;&lt;P&gt;      J_1ICSTNO type  J_1ICSTNO, "Central Sales Tax Number&lt;/P&gt;&lt;P&gt;      J_1ILSTNO type  J_1ILSTNO, "Local Sales Tax Number&lt;/P&gt;&lt;P&gt;      J_1IEXRN  type  J_1IEXRN , "Excise Registration Number&lt;/P&gt;&lt;P&gt;      end of t_mseg.&lt;/P&gt;&lt;P&gt;*data: begin of it_mseg ,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     mblnr  like  mseg-mblnr,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     budat  like  mkpf-budat,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     mtsnr  like  gohead-mtsnr,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     maktx  like  makt-maktx,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     menge  like  mseg-menge,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     lifnr  like  mseg-lifnr,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     name1  like  lfa1-name1,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     name2  like  lfa1-name2,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     telf1  like  lfa1-telf1,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     trnam  like  zmigo_addition-trnam,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     glano  like  zmigo_addition-glano,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     end of it_mseg.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;types: it_mseg type standard table of t_mseg,&lt;/P&gt;&lt;P&gt; wa_mseg type t_mseg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a&lt;SUB&gt;mblnr a&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;       a&lt;SUB&gt;menge a&lt;/SUB&gt;lifnr&lt;/P&gt;&lt;P&gt;       b~budat&lt;/P&gt;&lt;P&gt;       into it_mseg&lt;/P&gt;&lt;P&gt;       from mseg as a&lt;/P&gt;&lt;P&gt;       join mkpf as b&lt;/P&gt;&lt;P&gt;       on a&lt;SUB&gt;mblnr = b&lt;/SUB&gt;mblnr&lt;/P&gt;&lt;P&gt;       where werks = p_werks and&lt;/P&gt;&lt;P&gt;             budat = s_budat.&lt;/P&gt;&lt;P&gt;append wa_MSEG to it_mseg.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;points will be given .&lt;/P&gt;&lt;P&gt;Thnaks in advance.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit Teja.V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 06:02:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/types-and-data/m-p/1421816#M202396</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T06:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: types and data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/types-and-data/m-p/1421817#M202397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi amit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I just tried your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. do like this, and it will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. remove the Type (2 lines)&lt;/P&gt;&lt;P&gt;  and instead use DATA like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*types: it_mseg type standard table of t_mseg,&lt;/P&gt;&lt;P&gt;*wa_mseg type t_mseg.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;data : it_mseg type t_mseg occurs 0 with header line.&lt;/P&gt;&lt;P&gt;data : wa_mseg type t_mseg.&amp;lt;/b&amp;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;&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>Wed, 19 Jul 2006 06:04:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/types-and-data/m-p/1421817#M202397</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T06:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: types and data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/types-and-data/m-p/1421818#M202398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;data:&amp;lt;/b&amp;gt; it_mseg type standard table of t_mseg,&lt;/P&gt;&lt;P&gt;wa_mseg type t_mseg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a&lt;SUB&gt;mblnr a&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;a&lt;SUB&gt;menge a&lt;/SUB&gt;lifnr&lt;/P&gt;&lt;P&gt;b~budat&lt;/P&gt;&lt;P&gt;into &amp;lt;b&amp;gt;table&amp;lt;/b&amp;gt; it_mseg&lt;/P&gt;&lt;P&gt;from mseg as a&lt;/P&gt;&lt;P&gt;join mkpf as b&lt;/P&gt;&lt;P&gt;on a&lt;SUB&gt;mblnr = b&lt;/SUB&gt;mblnr&lt;/P&gt;&lt;P&gt;where werks = p_werks and&lt;/P&gt;&lt;P&gt;budat = s_budat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 06:07:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/types-and-data/m-p/1421818#M202398</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T06:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: types and data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/types-and-data/m-p/1421819#M202399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Declare the internal table as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;DATA&amp;lt;/b&amp;gt;: it_mseg type standard table of t_mseg,&lt;/P&gt;&lt;P&gt;      wa_mseg type t_mseg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And not sure why you need the 'Append wa_mseg' statement? Data will be directly selected into the tab, you dont require a select-endselect there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a&lt;SUB&gt;mblnr a&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;a&lt;SUB&gt;menge a&lt;/SUB&gt;lifnr&lt;/P&gt;&lt;P&gt;b~budat&lt;/P&gt;&lt;P&gt;into &amp;lt;b&amp;gt;table&amp;lt;/b&amp;gt; it_mseg&lt;/P&gt;&lt;P&gt;from mseg as a&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;inner&amp;lt;/b&amp;gt; join mkpf as b&lt;/P&gt;&lt;P&gt;on a&lt;SUB&gt;mblnr = b&lt;/SUB&gt;mblnr&lt;/P&gt;&lt;P&gt;where werks = p_werks and&lt;/P&gt;&lt;P&gt;budat = s_budat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sudha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Sudha Mohan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 06:07:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/types-and-data/m-p/1421819#M202399</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T06:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: types and data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/types-and-data/m-p/1421820#M202400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi use the below code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tables: mseg,mkpf,lfa1,ekko,ekpo,bseg,bkpf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of block b1 with frame title text-001.&lt;/P&gt;&lt;P&gt;parameters: p_werks like mseg-werks.&lt;/P&gt;&lt;P&gt;select-options: s_budat for Mkpf-budat.&lt;/P&gt;&lt;P&gt;selection-screen end of block b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types:begin of t_mseg,&lt;/P&gt;&lt;P&gt;       mblnr type mseg-mblnr,&lt;/P&gt;&lt;P&gt;       matnr type mara-matnr,&lt;/P&gt;&lt;P&gt;       menge type mseg-menge,&lt;/P&gt;&lt;P&gt;       lifnr type mseg-lifnr,&lt;/P&gt;&lt;P&gt;       budat type mkpf-budat,&lt;/P&gt;&lt;P&gt;end of t_mseg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: it_mseg type standard table of t_mseg,&lt;/P&gt;&lt;P&gt;wa_mseg type t_mseg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: itab type it_mseg,&lt;/P&gt;&lt;P&gt;      wa type wa_mseg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a&lt;SUB&gt;mblnr a&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;a&lt;SUB&gt;menge a&lt;/SUB&gt;lifnr&lt;/P&gt;&lt;P&gt;b~budat&lt;/P&gt;&lt;P&gt;into table itab&lt;/P&gt;&lt;P&gt;from mseg as a&lt;/P&gt;&lt;P&gt;join mkpf as b&lt;/P&gt;&lt;P&gt;on a&lt;SUB&gt;mblnr = b&lt;/SUB&gt;mblnr&lt;/P&gt;&lt;P&gt;where werks = p_werks and&lt;/P&gt;&lt;P&gt;budat in s_budat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Abdul Hakim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 06:08:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/types-and-data/m-p/1421820#M202400</guid>
      <dc:creator>abdul_hakim</dc:creator>
      <dc:date>2006-07-19T06:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: types and data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/types-and-data/m-p/1421821#M202401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Just simple one..., change the Types to DATA.&lt;/P&gt;&lt;P&gt;Tables: mseg,mkpf,lfa1,ekko,ekpo,bseg,bkpf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of block b1 with frame title text-001.&lt;/P&gt;&lt;P&gt;parameters: p_werks like mseg-werks.&lt;/P&gt;&lt;P&gt;select-options: s_budat for Mkpf-budat.&lt;/P&gt;&lt;P&gt;selection-screen end of block b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types:begin of t_mseg,&lt;/P&gt;&lt;P&gt;p_werks type werks_d, "Plant location&lt;/P&gt;&lt;P&gt;mblnr type mblnr, "Number of Material Document&lt;/P&gt;&lt;P&gt;s_budat type budat, "Posting date in document&lt;/P&gt;&lt;P&gt;mtsnr type mtsnr1, "Number of external material slip&lt;/P&gt;&lt;P&gt;maktx type maktx, "Material description&lt;/P&gt;&lt;P&gt;menge type menge_d, "Quantity&lt;/P&gt;&lt;P&gt;lifnr type lifnr, "Vendor Number&lt;/P&gt;&lt;P&gt;name1 type name1_gp, "Name1&lt;/P&gt;&lt;P&gt;name2 type name2_gp, "Name2&lt;/P&gt;&lt;P&gt;telf1 type telf1, "Telephone number&lt;/P&gt;&lt;P&gt;trnam type ztrnam, "Transporter name&lt;/P&gt;&lt;P&gt;glano type zglano, "GR/LR/AWB No&lt;/P&gt;&lt;P&gt;J_1ICSTNO type J_1ICSTNO, "Central Sales Tax Number&lt;/P&gt;&lt;P&gt;J_1ILSTNO type J_1ILSTNO, "Local Sales Tax Number&lt;/P&gt;&lt;P&gt;J_1IEXRN type J_1IEXRN , "Excise Registration Number&lt;/P&gt;&lt;P&gt;end of t_mseg.&lt;/P&gt;&lt;P&gt;*data: begin of it_mseg ,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;mblnr like mseg-mblnr,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;budat like mkpf-budat,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;mtsnr like gohead-mtsnr,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;maktx like makt-maktx,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;menge like mseg-menge,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;lifnr like mseg-lifnr,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;name1 like lfa1-name1,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;name2 like lfa1-name2,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;telf1 like lfa1-telf1,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;trnam like zmigo_addition-trnam,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;glano like zmigo_addition-glano,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;end of it_mseg.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;lt;b&amp;gt;data&amp;lt;/b&amp;gt;: it_mseg type standard table of t_mseg,&lt;/P&gt;&lt;P&gt;wa_mseg type t_mseg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a&lt;SUB&gt;mblnr a&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;a&lt;SUB&gt;menge a&lt;/SUB&gt;lifnr&lt;/P&gt;&lt;P&gt;b~budat&lt;/P&gt;&lt;P&gt;into it_mseg&lt;/P&gt;&lt;P&gt;from mseg as a&lt;/P&gt;&lt;P&gt;join mkpf as b&lt;/P&gt;&lt;P&gt;on a&lt;SUB&gt;mblnr = b&lt;/SUB&gt;mblnr&lt;/P&gt;&lt;P&gt;where werks = p_werks and&lt;/P&gt;&lt;P&gt;budat = s_budat.&lt;/P&gt;&lt;P&gt;append wa_MSEG to it_mseg.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 06:10:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/types-and-data/m-p/1421821#M202401</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T06:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: types and data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/types-and-data/m-p/1421822#M202402</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;Make the following changes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;1st Change&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;types: it_mseg type standard table of t_mseg,&lt;/P&gt;&lt;P&gt;wa_mseg type t_mseg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;\/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: it_mseg type table of t_mseg,&lt;/P&gt;&lt;P&gt;      wa_mseg type t_mseg.&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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;2nd change&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;select a&lt;SUB&gt;mblnr a&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;a&lt;SUB&gt;menge a&lt;/SUB&gt;lifnr&lt;/P&gt;&lt;P&gt;b~budat&lt;/P&gt;&lt;P&gt;into it_mseg&lt;/P&gt;&lt;P&gt;from mseg as a&lt;/P&gt;&lt;P&gt;join mkpf as b&lt;/P&gt;&lt;P&gt;on a&lt;SUB&gt;mblnr = b&lt;/SUB&gt;mblnr&lt;/P&gt;&lt;P&gt;where werks = p_werks and&lt;/P&gt;&lt;P&gt;budat = s_budat.&lt;/P&gt;&lt;P&gt;append wa_MSEG to it_mseg.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;\/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a&lt;SUB&gt;mblnr a&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;a&lt;SUB&gt;menge a&lt;/SUB&gt;lifnr&lt;/P&gt;&lt;P&gt;b~budat&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;into table it_mseg&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;from mseg as a&lt;/P&gt;&lt;P&gt;join mkpf as b&lt;/P&gt;&lt;P&gt;on a&lt;SUB&gt;mblnr = b&lt;/SUB&gt;mblnr&lt;/P&gt;&lt;P&gt;where werks = p_werks and&lt;/P&gt;&lt;P&gt;budat = s_budat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 06:11:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/types-and-data/m-p/1421822#M202402</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T06:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: types and data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/types-and-data/m-p/1421823#M202403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;What kind of error is coming to you....?&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no problem with your types statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create internal table like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: it_mseg type table of t_mseg with header line,&lt;/P&gt;&lt;P&gt;       wa_mseg type t_mseg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you have to assign the selected values to an internal table in the inner join.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer this link if you have any doubt regarding inner joins...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb39c4358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb39c4358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 06:11:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/types-and-data/m-p/1421823#M202403</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T06:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: types and data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/types-and-data/m-p/1421824#M202404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Just one Modification &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of using the following &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;types: it_mseg type standard table of t_mseg,&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;use &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: it_mseg type standard table of t_mseg,&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this Helps&lt;/P&gt;&lt;P&gt;Anirban&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 06:11:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/types-and-data/m-p/1421824#M202404</guid>
      <dc:creator>former_member480923</dc:creator>
      <dc:date>2006-07-19T06:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: types and data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/types-and-data/m-p/1421825#M202405</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;Making the following changes might help your cause :-&lt;/P&gt;&lt;P&gt;1. Instead of 'types' keyword use 'data' in the    statement &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  types: it_mseg type standard table of t_mseg,
         wa_mseg type t_mseg.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;2. In SELECT statement 'table' keyword should follow into.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select a~mblnr a~matnr
a~menge a~lifnr
b~budat
into &amp;lt;b&amp;gt; table&amp;lt;/b&amp;gt; it_mseg
from mseg as a
join mkpf as b
on a~mblnr = b~mblnr
where werks = p_werks and
budat = s_budat.
append wa_MSEG to it_mseg.
endselect.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anirban.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 06:14:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/types-and-data/m-p/1421825#M202405</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T06:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: types and data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/types-and-data/m-p/1421826#M202406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex Code:&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types : begin of itab,&lt;/P&gt;&lt;P&gt;matnr like mara-matnr.&lt;/P&gt;&lt;P&gt;end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Data Itab1 type standard table of Itab with header line.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;select Matnr from mara into &amp;lt;b&amp;gt;TABLE ITAB1&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;from mara&lt;/P&gt;&lt;P&gt;where matnr &amp;lt; '000000000000000010'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1.&lt;/P&gt;&lt;P&gt;write : /, itab1.&lt;/P&gt;&lt;P&gt;end loop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 06:15:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/types-and-data/m-p/1421826#M202406</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T06:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: types and data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/types-and-data/m-p/1421827#M202407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to use data instead of type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data :begin of t_mseg,&lt;/P&gt;&lt;P&gt;p_werks type werks_d, "Plant location&lt;/P&gt;&lt;P&gt;mblnr type mblnr, "Number of Material Document&lt;/P&gt;&lt;P&gt;s_budat type budat, "Posting date in document&lt;/P&gt;&lt;P&gt;mtsnr type mtsnr1, "Number of external material slip&lt;/P&gt;&lt;P&gt;maktx type maktx, "Material description&lt;/P&gt;&lt;P&gt;menge type menge_d, "Quantity&lt;/P&gt;&lt;P&gt;lifnr type lifnr, "Vendor Number&lt;/P&gt;&lt;P&gt;name1 type name1_gp, "Name1&lt;/P&gt;&lt;P&gt;name2 type name2_gp, "Name2&lt;/P&gt;&lt;P&gt;telf1 type telf1, "Telephone number&lt;/P&gt;&lt;P&gt;trnam type ztrnam, "Transporter name&lt;/P&gt;&lt;P&gt;glano type zglano, "GR/LR/AWB No&lt;/P&gt;&lt;P&gt;J_1ICSTNO type J_1ICSTNO, "Central Sales Tax Number&lt;/P&gt;&lt;P&gt;J_1ILSTNO type J_1ILSTNO, "Local Sales Tax Number&lt;/P&gt;&lt;P&gt;J_1IEXRN type J_1IEXRN , "Excise Registration Number&lt;/P&gt;&lt;P&gt;end of t_mseg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Correct code in this way..........&lt;/P&gt;&lt;P&gt;Rewards points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 06:17:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/types-and-data/m-p/1421827#M202407</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T06:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: types and data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/types-and-data/m-p/1421828#M202408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just copy it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS: p_werks LIKE mseg-werks.
SELECT-OPTIONS: s_budat FOR mkpf-budat.
SELECTION-SCREEN END OF BLOCK b1.

TYPES:BEGIN OF t_mseg,
      mblnr TYPE mseg-mblnr,
      matnr TYPE mara-matnr,
      menge TYPE mseg-menge,
      lifnr TYPE mseg-lifnr,
      budat TYPE mkpf-budat,
      END OF t_mseg.

&amp;lt;b&amp;gt;DATA:  it_mseg TYPE STANDARD TABLE OF t_mseg,
       wa_mseg TYPE t_mseg,
       itab    TYPE STANDARD TABLE OF t_mseg,
       wa      TYPE i_mseg.&amp;lt;/b&amp;gt;

SELECT a~mblnr a~matnr
a~menge a~lifnr
b~budat
INTO TABLE itab
FROM mseg AS a
JOIN mkpf AS b
ON a~mblnr = b~mblnr
WHERE werks = p_werks AND
budat IN s_budat.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arun Sambargi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jul 2006 06:31:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/types-and-data/m-p/1421828#M202408</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-19T06:31:09Z</dc:date>
    </item>
  </channel>
</rss>

