<?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: mseg table data not retrive in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/mseg-table-data-not-retrive/m-p/4900914#M1144565</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sam &lt;/P&gt;&lt;P&gt;when it_vbap has one record ,then you will get the same data according to that record.&lt;/P&gt;&lt;P&gt;so you use different condition..&lt;/P&gt;&lt;P&gt;you let me know your req?&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Dec 2008 07:32:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-12-26T07:32:57Z</dc:date>
    <item>
      <title>mseg table data not retrive</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mseg-table-data-not-retrive/m-p/4900900#M1144551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guru's,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have retrieve data using  read table . but in that mseg table data display but only first record repeated three time. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my select query like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM MSEG&lt;/P&gt;&lt;P&gt; INTO CORRESPONDING FIELDS&lt;/P&gt;&lt;P&gt; OF TABLE IT_MSEG for all entries in it_vbap&lt;/P&gt;&lt;P&gt; WHERE MAT_KDAUF = it_vbap-vbeln&lt;/P&gt;&lt;P&gt;  AND BWART = '501'&lt;/P&gt;&lt;P&gt;  AND SOBKZ = 'E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and after that i have read table like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_vbap where vbeln = it_vbak-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  read table it_kna1 with key&lt;/P&gt;&lt;P&gt;           kunnr = it_vbak-kunnr.&lt;/P&gt;&lt;P&gt;      if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    read table it_vbep with key&lt;/P&gt;&lt;P&gt;           vbeln = it_vbap-vbeln&lt;/P&gt;&lt;P&gt;           posnr = it_vbap-posnr.&lt;/P&gt;&lt;P&gt;      if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    read table it_mseg with key&lt;/P&gt;&lt;P&gt;           mat_kdauf = it_vbap-vbeln&lt;/P&gt;&lt;P&gt;           BWART = '501'&lt;/P&gt;&lt;P&gt;           SOBKZ = 'E'.&lt;/P&gt;&lt;P&gt;      if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      read table it_mkpf with key&lt;/P&gt;&lt;P&gt;           mblnr = it_mseg-mblnr.&lt;/P&gt;&lt;P&gt;      if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;  read table it_MAKT with key&lt;/P&gt;&lt;P&gt;           MATNR = it_MSEG-MATNR.&lt;/P&gt;&lt;P&gt;      if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    read table it_lips with key&lt;/P&gt;&lt;P&gt;           vgbel = it_vbap-vbeln&lt;/P&gt;&lt;P&gt;           posnv = it_vbap-posnr.&lt;/P&gt;&lt;P&gt;      if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;        IT_ANN-vbeln = it_vbak-vbeln.&lt;/P&gt;&lt;P&gt;        IT_ANN-name1 = it_kna1-name1.&lt;/P&gt;&lt;P&gt;        IT_ANN-kwmeng = it_vbap-kwmeng.&lt;/P&gt;&lt;P&gt;        IT_ANN-lsmeng = it_vbap-lsmeng.&lt;/P&gt;&lt;P&gt;        IT_ANN-posnr = it_vbap-posnr.&lt;/P&gt;&lt;P&gt;        IT_ANN-matnr = it_vbap-matnr.&lt;/P&gt;&lt;P&gt;        IT_ANN-arktx = it_vbap-arktx.&lt;/P&gt;&lt;P&gt;        IT_ANN-edatu = it_vbep-edatu.&lt;/P&gt;&lt;P&gt;        IT_ANN-prsdt = it_vbkd-prsdt.&lt;/P&gt;&lt;P&gt;        IT_ANN-mblnr = it_mseg-mblnr.&lt;/P&gt;&lt;P&gt;        IT_ANN-mat1 = it_mseg-matnr.&lt;/P&gt;&lt;P&gt;        IT_ANN-lifnr = it_mseg-lifnr.&lt;/P&gt;&lt;P&gt;        IT_ANN-erfmg = it_mseg-erfmg.&lt;/P&gt;&lt;P&gt;        IT_ANN-sgtxt = it_mseg-sgtxt.&lt;/P&gt;&lt;P&gt;        IT_ANN-BUDAT = it_mkpf-BUDAT.&lt;/P&gt;&lt;P&gt;        IT_ANN-lfimg = it_lips-lfimg.&lt;/P&gt;&lt;P&gt;        IT_ANN-MAKTX = it_MAKT-MAKTX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append it_ann.&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;P&gt;     endif.&lt;/P&gt;&lt;P&gt;     endif.&lt;/P&gt;&lt;P&gt;     endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;where i am wrong.&lt;/P&gt;&lt;P&gt;please help me.&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Dec 2008 05:28:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mseg-table-data-not-retrive/m-p/4900900#M1144551</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-26T05:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: mseg table data not retrive</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mseg-table-data-not-retrive/m-p/4900901#M1144552</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 think you have compare another field at the time of selection and read also i.e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MSEG-MAT_KDPOS = VBAP-POSNR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arunima&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Dec 2008 05:35:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mseg-table-data-not-retrive/m-p/4900901#M1144552</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-26T05:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: mseg table data not retrive</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mseg-table-data-not-retrive/m-p/4900902#M1144553</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 don understand wat kind of output you want but &lt;/P&gt;&lt;P&gt;if you don want mseg data to be repeated, then whnever you will find entry in mseg table while reading the mseg table take that sy-tabix value in some other variable and at the end of the if condition ie when your 'endif' of your 'sy-subrc = 0' check comes, delete the entry from internal mseg table after processing which wont repeat further if you dont want. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this is you want&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Dec 2008 05:38:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mseg-table-data-not-retrive/m-p/4900902#M1144553</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-26T05:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: mseg table data not retrive</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mseg-table-data-not-retrive/m-p/4900903#M1144554</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;If you are using &lt;STRONG&gt;READ&lt;/STRONG&gt; key word it gets only the first available record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_scarr.&lt;/P&gt;&lt;P&gt;read table i_sflight where carrid = i_scarr-carrid.&lt;/P&gt;&lt;P&gt;obviously &lt;STRONG&gt;SFLIGHT&lt;/STRONG&gt; has more number of records for a given &lt;STRONG&gt;carrid&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Please check the tables &lt;STRONG&gt;SCARR&lt;/STRONG&gt; and &lt;STRONG&gt;SFLIGHT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in your case you need to do like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_scarr.&lt;/P&gt;&lt;P&gt;loop at i_sflight where carrid = i_scarr-carrid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endloop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or loop the &lt;STRONG&gt;Item&lt;/STRONG&gt; interanal table if you have more records in item than header  table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I_VBAP has different &lt;STRONG&gt;MATNR&lt;/STRONG&gt; then change your &lt;STRONG&gt;READ&lt;/STRONG&gt; statement as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table it_mseg with key&lt;/P&gt;&lt;P&gt;mat_kdauf = it_vbap-vbeln&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;matnr = it_vbap-matnr&lt;/STRONG&gt;   " &lt;STRONG&gt;&lt;EM&gt;Might be helpfu&lt;/EM&gt;l&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;BWART = '501'&lt;/P&gt;&lt;P&gt;SOBKZ = 'E'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Dec 2008 05:38:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mseg-table-data-not-retrive/m-p/4900903#M1144554</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-26T05:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: mseg table data not retrive</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mseg-table-data-not-retrive/m-p/4900904#M1144555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sam,&lt;/P&gt;&lt;P&gt;actually the condition that you use at loop statement..&lt;/P&gt;&lt;P&gt;here "loop at it_vbap where vbeln = it_vbak-vbeln."&lt;/P&gt;&lt;P&gt;it_vbak-vbeln has same value so you are getting repeated records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please you propercondtion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think you will get record according to last record value  in it_vbap .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Dec 2008 06:48:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mseg-table-data-not-retrive/m-p/4900904#M1144555</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-26T06:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: mseg table data not retrive</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mseg-table-data-not-retrive/m-p/4900905#M1144556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sam did you get the point where it was wrong.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Dec 2008 06:55:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mseg-table-data-not-retrive/m-p/4900905#M1144556</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-26T06:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: mseg table data not retrive</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mseg-table-data-not-retrive/m-p/4900906#M1144557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swati,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for answer .&lt;/P&gt;&lt;P&gt;Could you tell me which condition i use here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Dec 2008 06:56:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mseg-table-data-not-retrive/m-p/4900906#M1144557</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-26T06:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: mseg table data not retrive</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mseg-table-data-not-retrive/m-p/4900907#M1144558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi use..&lt;/P&gt;&lt;P&gt;loop at it_vbak.&lt;/P&gt;&lt;P&gt;loop at it_vbap where vbeln = it_vbak-vbeln.&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;clear it_vbap .&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear it_vbak.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: swati gupta on Dec 26, 2008 8:02 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Dec 2008 07:00:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mseg-table-data-not-retrive/m-p/4900907#M1144558</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-26T07:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: mseg table data not retrive</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mseg-table-data-not-retrive/m-p/4900908#M1144559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sam,&lt;/P&gt;&lt;P&gt;is your problem solved r not..&lt;/P&gt;&lt;P&gt;please let me know abt that..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Dec 2008 07:08:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mseg-table-data-not-retrive/m-p/4900908#M1144559</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-26T07:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: mseg table data not retrive</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mseg-table-data-not-retrive/m-p/4900909#M1144560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi swati&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your suggestion not work.&lt;/P&gt;&lt;P&gt;problem occurred same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Dec 2008 07:15:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mseg-table-data-not-retrive/m-p/4900909#M1144560</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-26T07:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: mseg table data not retrive</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mseg-table-data-not-retrive/m-p/4900910#M1144561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello sam,&lt;/P&gt;&lt;P&gt;    i had mentioned before that you have to match the line item also....have you tried that???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arunima&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Dec 2008 07:17:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mseg-table-data-not-retrive/m-p/4900910#M1144561</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-26T07:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: mseg table data not retrive</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mseg-table-data-not-retrive/m-p/4900911#M1144562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi please check the entries in it_vbak..&lt;/P&gt;&lt;P&gt;by using debugging..you wll get the solution..and please update me result&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Dec 2008 07:17:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mseg-table-data-not-retrive/m-p/4900911#M1144562</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-26T07:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: mseg table data not retrive</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mseg-table-data-not-retrive/m-p/4900912#M1144563</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 tried that but item not same &lt;/P&gt;&lt;P&gt;menace mseg-mat_kdpos and vbap-posnr not same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regard &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Dec 2008 07:26:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mseg-table-data-not-retrive/m-p/4900912#M1144563</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-26T07:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: mseg table data not retrive</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mseg-table-data-not-retrive/m-p/4900913#M1144564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swati,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also debugge  code  .&lt;/P&gt;&lt;P&gt;1)in it_vbak one record.&lt;/P&gt;&lt;P&gt;2)it_vbap three record &lt;/P&gt;&lt;P&gt;3)and it_mseg 3 record &lt;/P&gt;&lt;P&gt;but when dubugge code &lt;/P&gt;&lt;P&gt; 1 and 2 correct but last one only display 1 record three time.&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;Sam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Dec 2008 07:30:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mseg-table-data-not-retrive/m-p/4900913#M1144564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-26T07:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: mseg table data not retrive</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mseg-table-data-not-retrive/m-p/4900914#M1144565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sam &lt;/P&gt;&lt;P&gt;when it_vbap has one record ,then you will get the same data according to that record.&lt;/P&gt;&lt;P&gt;so you use different condition..&lt;/P&gt;&lt;P&gt;you let me know your req?&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Dec 2008 07:32:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mseg-table-data-not-retrive/m-p/4900914#M1144565</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-26T07:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: mseg table data not retrive</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mseg-table-data-not-retrive/m-p/4900915#M1144566</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 want to develop Annexure V report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that i want MIGO related record,&lt;/P&gt;&lt;P&gt;like sales order no, customer , material , order quantity, del. quantity, raw material, posting date , posting quantity, vendor , invoice 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;Regard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: sam on Dec 26, 2008 10:01 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Dec 2008 07:41:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mseg-table-data-not-retrive/m-p/4900915#M1144566</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-26T07:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: mseg table data not retrive</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/mseg-table-data-not-retrive/m-p/4900916#M1144567</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 the following code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at it_vbap where vbeln = it_vbak-vbeln.
  IT_ANN-vbeln = it_vbak-vbeln.

  IT_ANN-kwmeng = it_vbap-kwmeng.
  IT_ANN-lsmeng = it_vbap-lsmeng.
  IT_ANN-posnr = it_vbap-posnr.
  IT_ANN-matnr = it_vbap-matnr.
  IT_ANN-arktx = it_vbap-arktx.

  IT_ANN-prsdt = it_vbkd-prsdt.

  read table it_kna1 with key kunnr = it_vbak-kunnr.
  if sy-subrc = 0.
    IT_ANN-name1 = it_kna1-name1.
  endif.

  read table it_vbep with key vbeln = it_vbap-vbeln
                              posnr = it_vbap-posnr.
  if sy-subrc = 0.
    IT_ANN-edatu = it_vbep-edatu.
  endif.

  read table it_MAKT with key MATNR = it_MSEG-MATNR.
  if sy-subrc = 0.
    IT_ANN-MAKTX = it_MAKT-MAKTX.
  endif.

  read table it_lips with key vgbel = it_vbap-vbeln
                              posnv = it_vbap-posnr.
  if sy-subrc = 0.
    IT_ANN-lfimg = it_lips-lfimg.
  endif.

  loop at it_mseg where mat_kdauf = it_vbap-vbeln.
    read table it_mkpf with key mblnr = it_mseg-mblnr.
    if sy-subrc = 0.
      IT_ANN-BUDAT = it_mkpf-BUDAT.
    endif.

    IT_ANN-mblnr = it_mseg-mblnr.
    IT_ANN-mat1 = it_mseg-matnr.
    IT_ANN-lifnr = it_mseg-lifnr.
    IT_ANN-erfmg = it_mseg-erfmg.
    IT_ANN-sgtxt = it_mseg-sgtxt.

    append it_ann.
  endloop.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Guy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Guy F. on Dec 26, 2008 11:03 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Dec 2008 10:03:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/mseg-table-data-not-retrive/m-p/4900916#M1144567</guid>
      <dc:creator>GuyF</dc:creator>
      <dc:date>2008-12-26T10:03:44Z</dc:date>
    </item>
  </channel>
</rss>

