<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/4394373#M1044782</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; When I am  executing this  fm  getting error as &lt;/P&gt;&lt;P&gt;*&lt;STRONG&gt;Type Items is unknown&lt;/STRONG&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requireemnt is&lt;/P&gt;&lt;P&gt; when i pass input as pernr to get result in items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION Z_GET_LINEITEMS.&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Local Interface:&lt;/P&gt;&lt;P&gt;*"  IMPORTING&lt;/P&gt;&lt;P&gt;*"     REFERENCE(P_PERNR) TYPE  PERNR_D&lt;/P&gt;&lt;P&gt;*"  EXPORTING&lt;/P&gt;&lt;P&gt;*"     REFERENCE(VITEMS) TYPE  ZVENDOR_ITEMS&lt;/P&gt;&lt;P&gt;*"  TABLES&lt;/P&gt;&lt;P&gt;*"      ITEMS STRUCTURE  ZVENDOR_ITEMS&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;data: v_Stell type stell.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of h1001_typ,&lt;/P&gt;&lt;P&gt;       rsign type rsign,&lt;/P&gt;&lt;P&gt;       otype type otype,&lt;/P&gt;&lt;P&gt;       subty type subty,&lt;/P&gt;&lt;P&gt;       sclas type sclas,&lt;/P&gt;&lt;P&gt;       objid type hrobjid,&lt;/P&gt;&lt;P&gt;       sobid type sobid,  "SOBID&lt;/P&gt;&lt;P&gt;       pernr type p_pernr,&lt;/P&gt;&lt;P&gt;       objid1 type hrobjid,&lt;/P&gt;&lt;P&gt;  end of h1001_typ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; data:  h1001_gt type standard table of h1001_typ initial size 0,&lt;/P&gt;&lt;P&gt;      wa_h1001 type h1001_typ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: WA TYPE ITEMS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; select single stell from pa0001 into v_Stell where pernr = p_pernr and endda ge sy-datum and begda le sy-datum.&lt;/P&gt;&lt;P&gt;      check sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      select otype sclas objid sobid subty rsign from hrp1001 into corresponding fields of table h1001_gt&lt;/P&gt;&lt;P&gt;         where objid = V_stell       and endda ge sy-datum and begda le sy-datum.&lt;/P&gt;&lt;P&gt;      check sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      loop at h1001_gt into wa_h1001.&lt;/P&gt;&lt;P&gt;        wa-pernr = p_pernr.&lt;/P&gt;&lt;P&gt;        wa = wa_h1001-objid.&lt;/P&gt;&lt;P&gt;        wa = wa_h1001-sobid.&lt;/P&gt;&lt;P&gt;        append wa to items.&lt;/P&gt;&lt;P&gt;     endloop.&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Asha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Aug 2008 22:24:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-15T22:24:13Z</dc:date>
    <item>
      <title>Function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/4394373#M1044782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; When I am  executing this  fm  getting error as &lt;/P&gt;&lt;P&gt;*&lt;STRONG&gt;Type Items is unknown&lt;/STRONG&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requireemnt is&lt;/P&gt;&lt;P&gt; when i pass input as pernr to get result in items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION Z_GET_LINEITEMS.&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Local Interface:&lt;/P&gt;&lt;P&gt;*"  IMPORTING&lt;/P&gt;&lt;P&gt;*"     REFERENCE(P_PERNR) TYPE  PERNR_D&lt;/P&gt;&lt;P&gt;*"  EXPORTING&lt;/P&gt;&lt;P&gt;*"     REFERENCE(VITEMS) TYPE  ZVENDOR_ITEMS&lt;/P&gt;&lt;P&gt;*"  TABLES&lt;/P&gt;&lt;P&gt;*"      ITEMS STRUCTURE  ZVENDOR_ITEMS&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;data: v_Stell type stell.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of h1001_typ,&lt;/P&gt;&lt;P&gt;       rsign type rsign,&lt;/P&gt;&lt;P&gt;       otype type otype,&lt;/P&gt;&lt;P&gt;       subty type subty,&lt;/P&gt;&lt;P&gt;       sclas type sclas,&lt;/P&gt;&lt;P&gt;       objid type hrobjid,&lt;/P&gt;&lt;P&gt;       sobid type sobid,  "SOBID&lt;/P&gt;&lt;P&gt;       pernr type p_pernr,&lt;/P&gt;&lt;P&gt;       objid1 type hrobjid,&lt;/P&gt;&lt;P&gt;  end of h1001_typ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; data:  h1001_gt type standard table of h1001_typ initial size 0,&lt;/P&gt;&lt;P&gt;      wa_h1001 type h1001_typ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: WA TYPE ITEMS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; select single stell from pa0001 into v_Stell where pernr = p_pernr and endda ge sy-datum and begda le sy-datum.&lt;/P&gt;&lt;P&gt;      check sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      select otype sclas objid sobid subty rsign from hrp1001 into corresponding fields of table h1001_gt&lt;/P&gt;&lt;P&gt;         where objid = V_stell       and endda ge sy-datum and begda le sy-datum.&lt;/P&gt;&lt;P&gt;      check sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      loop at h1001_gt into wa_h1001.&lt;/P&gt;&lt;P&gt;        wa-pernr = p_pernr.&lt;/P&gt;&lt;P&gt;        wa = wa_h1001-objid.&lt;/P&gt;&lt;P&gt;        wa = wa_h1001-sobid.&lt;/P&gt;&lt;P&gt;        append wa to items.&lt;/P&gt;&lt;P&gt;     endloop.&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Asha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2008 22:24:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/4394373#M1044782</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-15T22:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: Function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/4394374#M1044783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2008 23:27:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/4394374#M1044783</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-15T23:27:47Z</dc:date>
    </item>
  </channel>
</rss>

