<?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 working in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-working/m-p/4327390#M1031086</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 have created a function module it is working fine by executing it self,when I am calling it into any program it is not working it means it is not fetching data from table I passed correct parameters I don't know what was the problem any one can help me in this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;regds,&lt;/P&gt;&lt;P&gt;Sree.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Aug 2008 05:34:53 GMT</pubDate>
    <dc:creator>former_member125931</dc:creator>
    <dc:date>2008-08-29T05:34:53Z</dc:date>
    <item>
      <title>Function module not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-working/m-p/4327390#M1031086</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 have created a function module it is working fine by executing it self,when I am calling it into any program it is not working it means it is not fetching data from table I passed correct parameters I don't know what was the problem any one can help me in this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;regds,&lt;/P&gt;&lt;P&gt;Sree.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2008 05:34:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-working/m-p/4327390#M1031086</guid>
      <dc:creator>former_member125931</dc:creator>
      <dc:date>2008-08-29T05:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: Function module not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-working/m-p/4327391#M1031087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Check your program in debugging mode and see where have you done mistake.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Abhijeet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2008 05:36:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-working/m-p/4327391#M1031087</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-29T05:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Function module not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-working/m-p/4327392#M1031088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , &lt;/P&gt;&lt;P&gt; Please execute the program and check what is the data being passed to the FM , there can be cases where the conversion exit is not called.&lt;/P&gt;&lt;P&gt;In case your FM has date as parameters , please checj the format of that also &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2008 05:37:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-working/m-p/4327392#M1031088</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-29T05:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Function module not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-working/m-p/4327393#M1031089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sree&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it may be leading zeros or date format problem in importing parameters..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;need some more inputs from your side&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Deva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2008 05:37:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-working/m-p/4327393#M1031089</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-29T05:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: Function module not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-working/m-p/4327394#M1031090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Check wheather data type of your data and the import parameter for that table are same or not.&lt;/P&gt;&lt;P&gt;Then check wheather the table at all contain any data for these input parameter or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do both in Debug mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reagrds, &lt;/P&gt;&lt;P&gt;anirban&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2008 05:40:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-working/m-p/4327394#M1031090</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-29T05:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: Function module not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-working/m-p/4327395#M1031091</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;Hi , &lt;/P&gt;&lt;P&gt;Please execute the program and check i think the data format is different .so first u will check the data which data type u pass &lt;/P&gt;&lt;P&gt;and put the debugging symbal in functional module  and excute &lt;/P&gt;&lt;P&gt;it ,so u can easily u find it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Ashok&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2008 05:43:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-working/m-p/4327395#M1031091</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-29T05:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Function module not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-working/m-p/4327396#M1031092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sree,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the importing parameters. Check whether table which you are passing has data or not. Check for the initial condition of the table before passing the table into the function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandra Sekhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2008 05:43:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-working/m-p/4327396#M1031092</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-29T05:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: Function module not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-working/m-p/4327397#M1031093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Function module before calling into program I am passing the same value  there it is working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2008 05:50:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-working/m-p/4327397#M1031093</guid>
      <dc:creator>former_member125931</dc:creator>
      <dc:date>2008-08-29T05:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Function module not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-working/m-p/4327398#M1031094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no leading zeros here I am giving my funtion module code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*function zmm_vendor.&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_VENDOR) TYPE  LFA1-LIFNR&lt;/P&gt;&lt;P&gt;*"  TABLES&lt;/P&gt;&lt;P&gt;*"      P_VENDOR_DATA STRUCTURE  ZVENDOR_DATA&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables : lfa1,lfm1.&lt;/P&gt;&lt;P&gt;data flag(1) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types : begin of ty_lfm1,&lt;/P&gt;&lt;P&gt;        lifnr like lfm1-lifnr,&lt;/P&gt;&lt;P&gt;        "ekorg LIKE lfm1-ekorg,&lt;/P&gt;&lt;P&gt;        "erdat LIKE lfm1-erdat,&lt;/P&gt;&lt;P&gt;        ernam like lfm1-ernam,&lt;/P&gt;&lt;P&gt;        lfabc like lfm1-lfabc,&lt;/P&gt;&lt;P&gt;        waers like lfm1-waers,&lt;/P&gt;&lt;P&gt;        minbw like lfm1-minbw,&lt;/P&gt;&lt;P&gt;        webre like lfm1-webre,&lt;/P&gt;&lt;P&gt;        kalsk like lfm1-kalsk,&lt;/P&gt;&lt;P&gt;        ekgrp like lfm1-ekgrp,&lt;/P&gt;&lt;P&gt;        lipre like lfm1-lipre,&lt;/P&gt;&lt;P&gt;        end of ty_lfm1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types : begin of ty_lfa1,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        lifnr like lfa1-lifnr,&lt;/P&gt;&lt;P&gt;        name1 like lfa1-name1,&lt;/P&gt;&lt;P&gt;        ort01 like lfa1-ort01,&lt;/P&gt;&lt;P&gt;        ort02 like lfa1-ort02,&lt;/P&gt;&lt;P&gt;        adrnr like lfa1-adrnr,&lt;/P&gt;&lt;P&gt;        end of ty_lfa1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types : begin of ty_adr6,&lt;/P&gt;&lt;P&gt;        addrnumber like adr6-addrnumber,&lt;/P&gt;&lt;P&gt;        smtp_addr like adr6-smtp_addr,&lt;/P&gt;&lt;P&gt;        end of ty_adr6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types : begin of ty_lfb1,&lt;/P&gt;&lt;P&gt;        akont like lfb1-akont,&lt;/P&gt;&lt;P&gt;        zwels like lfb1-zwels,&lt;/P&gt;&lt;P&gt;        zterm like lfb1-zterm,&lt;/P&gt;&lt;P&gt;        fdgrv like lfb1-fdgrv,&lt;/P&gt;&lt;P&gt;        reprf like lfb1-reprf,&lt;/P&gt;&lt;P&gt;         end of ty_lfb1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types : begin of ty_display,&lt;/P&gt;&lt;P&gt;        sel,&lt;/P&gt;&lt;P&gt;        lifnr like lfm1-lifnr,&lt;/P&gt;&lt;P&gt;        ekorg like lfm1-ekorg,&lt;/P&gt;&lt;P&gt;        erdat like lfm1-erdat,&lt;/P&gt;&lt;P&gt;        ernam like lfm1-ernam,&lt;/P&gt;&lt;P&gt;        lfabc like lfm1-lfabc,&lt;/P&gt;&lt;P&gt;        smtp_addr like adr6-smtp_addr,&lt;/P&gt;&lt;P&gt;        waers like lfm1-waers,&lt;/P&gt;&lt;P&gt;        minbw like lfm1-minbw,&lt;/P&gt;&lt;P&gt;        webre like lfm1-webre,&lt;/P&gt;&lt;P&gt;        kalsk like lfm1-kalsk,&lt;/P&gt;&lt;P&gt;        ekgrp like lfm1-ekgrp,&lt;/P&gt;&lt;P&gt;        lipre like lfm1-lipre,&lt;/P&gt;&lt;P&gt;        name1 like lfa1-name1,&lt;/P&gt;&lt;P&gt;        ort01 like lfa1-ort01,&lt;/P&gt;&lt;P&gt;        ort02 like lfa1-ort02,&lt;/P&gt;&lt;P&gt;        akont like lfb1-akont,&lt;/P&gt;&lt;P&gt;        zwels like lfb1-zwels,&lt;/P&gt;&lt;P&gt;        zterm like lfb1-zterm,&lt;/P&gt;&lt;P&gt;        fdgrv like lfb1-fdgrv,&lt;/P&gt;&lt;P&gt;        reprf like lfb1-reprf,&lt;/P&gt;&lt;P&gt;        end of ty_display.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         INTERNAL TABLES DECLARATION&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: t_lfm1 type standard table of ty_lfm1 with header line,&lt;/P&gt;&lt;P&gt;      t_lfa1 type standard table of ty_lfa1 with header line,&lt;/P&gt;&lt;P&gt;      t_display type standard table of ty_display with header line,&lt;/P&gt;&lt;P&gt;       t_lfb1 type standard table of ty_lfb1 with header line,&lt;/P&gt;&lt;P&gt;       t_adr6 type standard table of ty_adr6 with header line.&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;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         WORK AREAS DECLARATION&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: wa_lfm1 type ty_lfm1,&lt;/P&gt;&lt;P&gt;      wa_lfa1 type ty_lfa1,&lt;/P&gt;&lt;P&gt;      wa_adr6 type ty_adr6,&lt;/P&gt;&lt;P&gt;      wa_lfb1 type ty_lfb1,&lt;/P&gt;&lt;P&gt;      wa_display type ty_display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; select lifnr&lt;/P&gt;&lt;P&gt;         ekorg&lt;/P&gt;&lt;P&gt;         erdat&lt;/P&gt;&lt;P&gt;         ernam&lt;/P&gt;&lt;P&gt;         lfabc&lt;/P&gt;&lt;P&gt;         waers&lt;/P&gt;&lt;P&gt;         minbw&lt;/P&gt;&lt;P&gt;         webre&lt;/P&gt;&lt;P&gt;         kalsk&lt;/P&gt;&lt;P&gt;         ekgrp&lt;/P&gt;&lt;P&gt;         lipre from lfm1&lt;/P&gt;&lt;P&gt;         into  corresponding fields of table t_lfm1&lt;/P&gt;&lt;P&gt;         where lifnr = p_vendor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if t_lfm1[] is not initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select lifnr&lt;/P&gt;&lt;P&gt;         name1&lt;/P&gt;&lt;P&gt;         ort01&lt;/P&gt;&lt;P&gt;         ort02&lt;/P&gt;&lt;P&gt;         adrnr from lfa1&lt;/P&gt;&lt;P&gt;         into corresponding fields of table t_lfa1&lt;/P&gt;&lt;P&gt;         for all entries in t_lfm1&lt;/P&gt;&lt;P&gt;         where lifnr =  t_lfm1-lifnr.&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;    if t_lfm1[] is not initial.&lt;/P&gt;&lt;P&gt;    select addrnumber smtp_addr from adr6&lt;/P&gt;&lt;P&gt;           into table t_adr6&lt;/P&gt;&lt;P&gt;           for all entries in t_lfa1&lt;/P&gt;&lt;P&gt;           where  addrnumber = t_lfa1-adrnr.&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;      if t_lfm1[] is not initial.&lt;/P&gt;&lt;P&gt;    select akont&lt;/P&gt;&lt;P&gt;           zwels&lt;/P&gt;&lt;P&gt;           zterm&lt;/P&gt;&lt;P&gt;           fdgrv&lt;/P&gt;&lt;P&gt;           reprf from lfb1&lt;/P&gt;&lt;P&gt;           into table t_lfb1&lt;/P&gt;&lt;P&gt;           for all entries in t_lfm1&lt;/P&gt;&lt;P&gt;           where  lifnr = t_lfm1-lifnr.&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;  loop at  t_lfm1 into wa_lfm1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    move  wa_lfm1-lifnr to t_display-lifnr.&lt;/P&gt;&lt;P&gt;     "move   wa_lfm1-ekorg to  wa_display-ekorg.&lt;/P&gt;&lt;P&gt;    " move   wa_lfm1-erdat to wa_display-erdat.&lt;/P&gt;&lt;P&gt;     move   wa_lfm1-lfabc to  t_display-lfabc.&lt;/P&gt;&lt;P&gt;     move   wa_lfm1-waers to  t_display-waers.&lt;/P&gt;&lt;P&gt;     move   wa_lfm1-minbw to  t_display-minbw.&lt;/P&gt;&lt;P&gt;     move   wa_lfm1-webre to  t_display-webre.&lt;/P&gt;&lt;P&gt;     move   wa_lfm1-kalsk to  t_display-kalsk.&lt;/P&gt;&lt;P&gt;     move   wa_lfm1-ekgrp to  t_display-ekgrp.&lt;/P&gt;&lt;P&gt;     move   wa_lfm1-lipre to  t_display-lipre.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     "append  wa_display to t_display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  read table t_lfa1  into wa_lfa1 index 1 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    move wa_lfa1-name1  to t_display-name1.&lt;/P&gt;&lt;P&gt;    move wa_lfa1-ort01  to t_display-ort01.&lt;/P&gt;&lt;P&gt;    move wa_lfa1-ort02  to t_display-ort02.&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table t_adr6  into wa_adr6 index 1 .&lt;/P&gt;&lt;P&gt; if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    move wa_adr6-smtp_addr  to t_display-smtp_addr.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table t_lfb1  into wa_lfb1 index 1 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    move wa_lfb1-akont  to t_display-akont.&lt;/P&gt;&lt;P&gt;    move wa_lfb1-zwels  to t_display-zwels.&lt;/P&gt;&lt;P&gt;    move wa_lfb1-zterm  to t_display-zterm.&lt;/P&gt;&lt;P&gt;    move wa_lfb1-fdgrv  to t_display-fdgrv.&lt;/P&gt;&lt;P&gt;    move wa_lfb1-reprf  to t_display-reprf.&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;append   t_display.&lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;"clear  wa_display.&lt;/P&gt;&lt;P&gt;"clear t_display.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;delete adjacent duplicates from  t_display comparing lifnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     move  t_display-lifnr to p_vendor_data-lifnr.&lt;/P&gt;&lt;P&gt;     "move   t_display-ekorg to  P_VENDOR_DATA-ekorg.&lt;/P&gt;&lt;P&gt;    " move   t_display-erdat to P_VENDOR_DATA-erdat.&lt;/P&gt;&lt;P&gt;     move   t_display-lfabc to  p_vendor_data-lfabc.&lt;/P&gt;&lt;P&gt;     move   t_display-waers to  p_vendor_data-waers.&lt;/P&gt;&lt;P&gt;     move   t_display-minbw to  p_vendor_data-minbw.&lt;/P&gt;&lt;P&gt;     move   t_display-webre to  p_vendor_data-webre.&lt;/P&gt;&lt;P&gt;     move   t_display-kalsk to  p_vendor_data-kalsk.&lt;/P&gt;&lt;P&gt;     move   t_display-ekgrp to  p_vendor_data-ekgrp.&lt;/P&gt;&lt;P&gt;     move   t_display-lipre to  p_vendor_data-lipre.&lt;/P&gt;&lt;P&gt;     move   t_display-name1  to p_vendor_data-name1.&lt;/P&gt;&lt;P&gt;     move   t_display-ort01  to p_vendor_data-ort01.&lt;/P&gt;&lt;P&gt;     move   t_display-ort02  to p_vendor_data-ort02.&lt;/P&gt;&lt;P&gt;     move   t_display-smtp_addr  to p_vendor_data-smtp_addr.&lt;/P&gt;&lt;P&gt;     move   t_display-akont  to p_vendor_data-akont.&lt;/P&gt;&lt;P&gt;     move   t_display-zwels  to p_vendor_data-zwels.&lt;/P&gt;&lt;P&gt;     move   t_display-zterm  to p_vendor_data-zterm.&lt;/P&gt;&lt;P&gt;     move   t_display-fdgrv  to p_vendor_data-fdgrv.&lt;/P&gt;&lt;P&gt;     move   t_display-reprf  to p_vendor_data-reprf.&lt;/P&gt;&lt;P&gt;     append p_vendor_data.&lt;/P&gt;&lt;P&gt;&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;but after calling this into my program it is not working here is my program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report ZTEST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters : zvendor like lfm1-lifnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of ty_display occurs 0,&lt;/P&gt;&lt;P&gt;       lifnr like lfm1-lifnr,&lt;/P&gt;&lt;P&gt;       ekorg like lfm1-ekorg,&lt;/P&gt;&lt;P&gt;       erdat like lfm1-erdat,&lt;/P&gt;&lt;P&gt;       ernam like lfm1-ernam,&lt;/P&gt;&lt;P&gt;       lfabc like lfm1-lfabc,&lt;/P&gt;&lt;P&gt;       smtp_addr like adr6-smtp_addr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;waers like lfm1-waers,&lt;/P&gt;&lt;P&gt;       minbw like lfm1-minbw,&lt;/P&gt;&lt;P&gt;       webre like lfm1-webre,&lt;/P&gt;&lt;P&gt;       kalsk like lfm1-kalsk,&lt;/P&gt;&lt;P&gt;       ekgrp like lfm1-ekgrp,&lt;/P&gt;&lt;P&gt;       lipre like lfm1-lipre,&lt;/P&gt;&lt;P&gt;       name1 like lfa1-name1,&lt;/P&gt;&lt;P&gt;       ort01 like lfa1-ort01,&lt;/P&gt;&lt;P&gt;       ort02 like lfa1-ort02,&lt;/P&gt;&lt;P&gt;       akont like lfb1-akont,&lt;/P&gt;&lt;P&gt;      zwels like lfb1-zwels,&lt;/P&gt;&lt;P&gt;      zterm like lfb1-zterm,&lt;/P&gt;&lt;P&gt;      fdgrv like lfb1-fdgrv,&lt;/P&gt;&lt;P&gt;      reprf like lfb1-reprf,&lt;/P&gt;&lt;P&gt;      end of ty_display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ZMM_VENDOR'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;  p_vendor            = zvendor&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;  p_vendor_data       = ty_display&lt;/P&gt;&lt;P&gt;        .&lt;/P&gt;&lt;P&gt;loop at ty_display.&lt;/P&gt;&lt;P&gt;write : / ty_display-ort01.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regds,&lt;/P&gt;&lt;P&gt;Sree.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2008 05:54:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-working/m-p/4327398#M1031094</guid>
      <dc:creator>former_member125931</dc:creator>
      <dc:date>2008-08-29T05:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: Function module not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-working/m-p/4327399#M1031095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in importing parameters you hav used&lt;/P&gt;&lt;P&gt;LFA1-LIFNR&lt;/P&gt;&lt;P&gt;similarly try with LFA1-LIFNR in parameter also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters : zvendor like LFA1-LIFNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just try i am not exact&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Deva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2008 06:00:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-working/m-p/4327399#M1031095</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-29T06:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: Function module not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-working/m-p/4327400#M1031096</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;       parameters : zvendor like lfm1-lifnr. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your declaring  zvendor type lfm1-lifnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In function module import parameter p_vendor type LFA1-LIFNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure this is the exact problem.can u check it out abt this.&lt;/P&gt;&lt;P&gt;&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;kishore.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2008 06:13:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-working/m-p/4327400#M1031096</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-29T06:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: Function module not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-working/m-p/4327401#M1031097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;that is not a problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2008 06:14:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-working/m-p/4327401#M1031097</guid>
      <dc:creator>former_member125931</dc:creator>
      <dc:date>2008-08-29T06:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: Function module not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-working/m-p/4327402#M1031098</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;In Program instead of declaring internal table ty_dispaly can u  declare internal table by using data dictionary strcture ZVENDOR_DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you checked this one?&lt;/P&gt;&lt;P&gt;&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;kishore.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2008 06:24:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-working/m-p/4327402#M1031098</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-29T06:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Function module not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-working/m-p/4327403#M1031099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still same problem kishore.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2008 06:39:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-working/m-p/4327403#M1031099</guid>
      <dc:creator>former_member125931</dc:creator>
      <dc:date>2008-08-29T06:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: Function module not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-working/m-p/4327404#M1031100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shree,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have you done debugging..?&lt;/P&gt;&lt;P&gt;if not then first of all debug your program at FM and then go inside of FM, checking where the problem is..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sure after debugging you will sort out the proble..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks n Regards,&lt;/P&gt;&lt;P&gt;Meet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2008 06:49:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-working/m-p/4327404#M1031100</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-29T06:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: Function module not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-working/m-p/4327405#M1031101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Meet,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank u for ur advise before posting thread I done all the excises my side still I failed to sortout the problem,if you have any idea please help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2008 06:53:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-working/m-p/4327405#M1031101</guid>
      <dc:creator>former_member125931</dc:creator>
      <dc:date>2008-08-29T06:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: Function module not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-working/m-p/4327406#M1031102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shree..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sure you have done proper debugging..&lt;/P&gt;&lt;P&gt;But In your case, your code looks perfect..&lt;/P&gt;&lt;P&gt;As you said your FM working fine, when run independently..&lt;/P&gt;&lt;P&gt;Then Please debug again your program, one by one step..&lt;/P&gt;&lt;P&gt;And find where the problem is..&lt;/P&gt;&lt;P&gt;may be you forget to check something while debugging...&lt;/P&gt;&lt;P&gt;So my advice is Debugging is the only solution for your problem...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Meet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2008 07:04:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-not-working/m-p/4327406#M1031102</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-29T07:04:59Z</dc:date>
    </item>
  </channel>
</rss>

