<?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 Fetching data from KRMI  transaction in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-data-from-krmi-transaction/m-p/5295677#M1221454</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 want to fetch the quantity data from KRMI transaction and use this in my report.&lt;/P&gt;&lt;P&gt;How to fetch the data from this transaction and after fetching how to use this in my report?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Mar 2009 13:43:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-16T13:43:46Z</dc:date>
    <item>
      <title>Fetching data from KRMI  transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-data-from-krmi-transaction/m-p/5295677#M1221454</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 want to fetch the quantity data from KRMI transaction and use this in my report.&lt;/P&gt;&lt;P&gt;How to fetch the data from this transaction and after fetching how to use this in my report?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2009 13:43:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-data-from-krmi-transaction/m-p/5295677#M1221454</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-16T13:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching data from KRMI  transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-data-from-krmi-transaction/m-p/5295678#M1221455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dear praveen ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; create one report in se38 and &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    paste this code and just change selection parameter according to your requirment I.E MATNR ='WFHAR02570'  OR KOKRS = 'XYX' ETC ......&lt;/P&gt;&lt;P&gt;and also change no of fields you want  in work area .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : listtab like abaplist occurs 1 .&lt;/P&gt;&lt;P&gt;data : listtab_tmp like abaplist occurs 1.&lt;/P&gt;&lt;P&gt;data: txtlines(2000) type c occurs 0 with header line.&lt;/P&gt;&lt;P&gt;data :txtlines1(2000) type c occurs 0 with header line .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : n type int2 .&lt;/P&gt;&lt;P&gt;data : cnt type i value 1 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types : begin of wa_alpha,&lt;/P&gt;&lt;P&gt;a(30) type c ,&lt;/P&gt;&lt;P&gt;b(30) type c ,&lt;/P&gt;&lt;P&gt;c(30) type c ,&lt;/P&gt;&lt;P&gt;d(30) type c ,&lt;/P&gt;&lt;P&gt;e(30) type c ,&lt;/P&gt;&lt;P&gt;f(30) type c ,&lt;/P&gt;&lt;P&gt;g(30) type c ,&lt;/P&gt;&lt;P&gt;h(30) type c ,&lt;/P&gt;&lt;P&gt;i(30) type c ,&lt;/P&gt;&lt;P&gt;j(30) type c ,&lt;/P&gt;&lt;P&gt;k(30) type c ,&lt;/P&gt;&lt;P&gt;l(30) type c ,&lt;/P&gt;&lt;P&gt;end of wa_alpha .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : it_alpha type standard table of wa_alpha with header line .&lt;/P&gt;&lt;P&gt;data : it_alpha1 type standard table of wa_alpha with header line .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;submit KRMI using "selecting parameter "  exporting list to memory and return .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'LIST_FROM_MEMORY'&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;listobject = listtab&lt;/P&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;not_found = 1&lt;/P&gt;&lt;P&gt;others = 2.&lt;/P&gt;&lt;P&gt;if sy-subrc 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO &lt;/P&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. &lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;describe table listtab lines n .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'LIST_TO_ASCI'&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;listobject = listtab&lt;/P&gt;&lt;P&gt;listasci = txtlines&lt;/P&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;empty_list = 1&lt;/P&gt;&lt;P&gt;list_index_invalid = 2&lt;/P&gt;&lt;P&gt;others = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;describe table txtlines lines n .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;n = n - 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at txtlines .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if cnt = 1 or cnt = 3 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete txtlines .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if cnt = n .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete txtlines .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cnt = cnt + 1 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear txtlines .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : delimiter(1) value '|'.&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;loop at txtlines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;split txtlines at delimiter into it_alpha-a&lt;/P&gt;&lt;P&gt;it_alpha-b&lt;/P&gt;&lt;P&gt;it_alpha-c&lt;/P&gt;&lt;P&gt;it_alpha-d&lt;/P&gt;&lt;P&gt;it_alpha-e&lt;/P&gt;&lt;P&gt;it_alpha-f&lt;/P&gt;&lt;P&gt;it_alpha-g&lt;/P&gt;&lt;P&gt;it_alpha-h&lt;/P&gt;&lt;P&gt;it_alpha-i&lt;/P&gt;&lt;P&gt;it_alpha-j&lt;/P&gt;&lt;P&gt;it_alpha-k&lt;/P&gt;&lt;P&gt;it_alpha-l .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append it_alpha .&lt;/P&gt;&lt;P&gt;clear txtlines .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this logic your problem will solve .....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks And Regards &lt;/P&gt;&lt;P&gt;Deepak Dhamat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2009 10:30:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-data-from-krmi-transaction/m-p/5295678#M1221455</guid>
      <dc:creator>deepak_dhamat</dc:creator>
      <dc:date>2009-03-17T10:30:53Z</dc:date>
    </item>
  </channel>
</rss>

