<?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: Sample coding for reterieving values form fun. module' MRM_DBTAB_RSEG_READ' in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sample-coding-for-reterieving-values-form-fun-module-mrm-dbtab-rseg-read/m-p/1128820#M111144</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is some sample code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


report zrich_0003 .

type-pools: mrm.

data: irseg type  mrm_tab_rseg.
data: xrseg like line of irseg.


parameters: p_belnr type rseg-belnr.
parameters: p_gjahr type rseg-gjahr.

call function 'MRM_DBTAB_RSEG_READ'
  exporting
    i_belnr               = p_belnr
    i_gjahr               = p_gjahr
*   I_BUFFER_ON           = X
 importing
   te_rseg               = irseg
 exceptions
   entry_not_found       = 1
   others                = 2.


loop at irseg into xrseg.
  write:/ xrseg-belnr,
          xrseg-gjahr,
          xrseg-buzei,
          xrseg-ebeln,
          xrseg-ebelp.

endloop.

&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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jan 2006 14:15:40 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2006-01-12T14:15:40Z</dc:date>
    <item>
      <title>Sample coding for reterieving values form fun. module' MRM_DBTAB_RSEG_READ'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sample-coding-for-reterieving-values-form-fun-module-mrm-dbtab-rseg-read/m-p/1128819#M111143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to give all the import and export parmenter but the problem occurs only when i try to loop the internal table got from the function module. Pls do provide the coding for retrieving the values from the function module ' MRM_DBTAB_RSEG_READ'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I promise to award points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;anitha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2006 14:08:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sample-coding-for-reterieving-values-form-fun-module-mrm-dbtab-rseg-read/m-p/1128819#M111143</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-12T14:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Sample coding for reterieving values form fun. module' MRM_DBTAB_RSEG_READ'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sample-coding-for-reterieving-values-form-fun-module-mrm-dbtab-rseg-read/m-p/1128820#M111144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is some sample code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


report zrich_0003 .

type-pools: mrm.

data: irseg type  mrm_tab_rseg.
data: xrseg like line of irseg.


parameters: p_belnr type rseg-belnr.
parameters: p_gjahr type rseg-gjahr.

call function 'MRM_DBTAB_RSEG_READ'
  exporting
    i_belnr               = p_belnr
    i_gjahr               = p_gjahr
*   I_BUFFER_ON           = X
 importing
   te_rseg               = irseg
 exceptions
   entry_not_found       = 1
   others                = 2.


loop at irseg into xrseg.
  write:/ xrseg-belnr,
          xrseg-gjahr,
          xrseg-buzei,
          xrseg-ebeln,
          xrseg-ebelp.

endloop.

&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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2006 14:15:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sample-coding-for-reterieving-values-form-fun-module-mrm-dbtab-rseg-read/m-p/1128820#M111144</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-01-12T14:15:40Z</dc:date>
    </item>
  </channel>
</rss>

