<?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 Function Module not displaying Data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-displaying-data/m-p/12402396#M1995755</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;
  &lt;P&gt; I have below Program but it does not display any data . Function Module display record.&lt;/P&gt;
  &lt;P&gt;In Parameter i am entering 000000000000000038&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;REPORT  ZABAP_GETMATERIALDETAILS.

data : wa_mara type mara.
PARAMETERS : p_matnr type mara-matnr.
CALL FUNCTION 'ZABAP_GETMATERIALDETAILS'
  EXPORTING
    IM_MATNR       = p_matnr
* IMPORTING
*   EX_MARA        = wa_mara
.

Write : SY-SUBRC.
IF SY-SUBRC = 0.
* Implement suitable error handling here
 WRITE : WA_MARA-MATNR, WA_MARA-MTART, WA_MARA-MEINS, WA_MARA-MBRSH .
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;PRE&gt;&lt;CODE&gt;FUNCTION ZABAP_GETMATERIALDETAILS.
*"----------------------------------------------------------------------
*"*"Local Interface:
*"  IMPORTING
*"     REFERENCE(IM_MATNR) TYPE  MARA-MATNR
*"  EXPORTING
*"     REFERENCE(EX_MARA) TYPE  MARA
*"----------------------------------------------------------------------

SELECT SINGLE * FROM MARA
       INTO EX_MARA
       WHERE MATNR = IM_MATNR.

ENDFUNCTION.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 14 May 2021 11:00:07 GMT</pubDate>
    <dc:creator>ramco1917</dc:creator>
    <dc:date>2021-05-14T11:00:07Z</dc:date>
    <item>
      <title>Function Module not displaying Data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-displaying-data/m-p/12402396#M1995755</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
  &lt;P&gt; I have below Program but it does not display any data . Function Module display record.&lt;/P&gt;
  &lt;P&gt;In Parameter i am entering 000000000000000038&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;REPORT  ZABAP_GETMATERIALDETAILS.

data : wa_mara type mara.
PARAMETERS : p_matnr type mara-matnr.
CALL FUNCTION 'ZABAP_GETMATERIALDETAILS'
  EXPORTING
    IM_MATNR       = p_matnr
* IMPORTING
*   EX_MARA        = wa_mara
.

Write : SY-SUBRC.
IF SY-SUBRC = 0.
* Implement suitable error handling here
 WRITE : WA_MARA-MATNR, WA_MARA-MTART, WA_MARA-MEINS, WA_MARA-MBRSH .
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;PRE&gt;&lt;CODE&gt;FUNCTION ZABAP_GETMATERIALDETAILS.
*"----------------------------------------------------------------------
*"*"Local Interface:
*"  IMPORTING
*"     REFERENCE(IM_MATNR) TYPE  MARA-MATNR
*"  EXPORTING
*"     REFERENCE(EX_MARA) TYPE  MARA
*"----------------------------------------------------------------------

SELECT SINGLE * FROM MARA
       INTO EX_MARA
       WHERE MATNR = IM_MATNR.

ENDFUNCTION.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 11:00:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-displaying-data/m-p/12402396#M1995755</guid>
      <dc:creator>ramco1917</dc:creator>
      <dc:date>2021-05-14T11:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module not displaying Data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-displaying-data/m-p/12402397#M1995756</link>
      <description>&lt;P&gt;It works better if you import the values&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 11:03:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-displaying-data/m-p/12402397#M1995756</guid>
      <dc:creator>abo</dc:creator>
      <dc:date>2021-05-14T11:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module not displaying Data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-displaying-data/m-p/12402398#M1995757</link>
      <description>&lt;P&gt;Hello  &lt;SPAN class="mention-scrubbed"&gt;ramco_1917&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;You're not receiving any data back, because the IMPORTING part is commented out.&lt;/P&gt;&lt;P&gt;It is responsible for receiving data from the function.&lt;/P&gt;Kind regards,&lt;BR /&gt;Mateusz</description>
      <pubDate>Fri, 14 May 2021 11:09:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-displaying-data/m-p/12402398#M1995757</guid>
      <dc:creator>MateuszAdamus</dc:creator>
      <dc:date>2021-05-14T11:09:48Z</dc:date>
    </item>
  </channel>
</rss>

