<?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: FM in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm/m-p/1906539#M377803</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;1. In the Function Group i.e Global Data, declare a table as follows.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPES : BEGIN OF x_ebeln,
          ebeln TYPE ebeln,
        END    OF  x_ebeln.

DATA : lt_ekko TYPE TABLE OF x_ebeln.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;2. In you code, &amp;lt;b&amp;gt;instead of&amp;lt;/b&amp;gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select ebeln from ekko into corresponding fields of table lt_ekko
where bsart in ('ECDP','ECPO','EB').
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;lt;b&amp;gt;use&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select ebeln from ekko into table lt_ekko
where bsart in ('ECDP','ECPO','EB').
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, your table has only one field therefore it will not display other field with null values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if the answer is helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mukul&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Feb 2007 16:00:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-23T16:00:39Z</dc:date>
    <item>
      <title>FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm/m-p/1906535#M377799</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 creating a FM which RFC enabled..so when i execute this FM it should only give PO numbers(ebeln) from the ekko table..but while declaring in the table i hve declared lt_ekko as ekko table...now when i execute the FM it is giving ebeln values and other fields are displayed with null values..how to remove those fields other than ebeln..i have decalred as below::&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tables:&lt;/P&gt;&lt;P&gt;LT_EKKO             LIKE      EKKO                &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the source code i have written as ::&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select ebeln from ekko into corresponding fields of table lt_ekko&lt;/P&gt;&lt;P&gt;                                    where bsart in ('ECDP','ECPO','EB').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to get only PO number ???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2007 15:47:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm/m-p/1906535#M377799</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-23T15:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm/m-p/1906536#M377800</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;Please create structure/tranparent table (SE11) with only field EBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LT_EKKO TYPE ZEKKO. &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;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2007 15:52:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm/m-p/1906536#M377800</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-02-23T15:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm/m-p/1906537#M377801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a structure with single field as EBELN, and use the same in FM Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2007 15:52:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm/m-p/1906537#M377801</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-23T15:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm/m-p/1906538#M377802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you just want to retrieve po values, you've to declare the table like:&lt;/P&gt;&lt;P&gt;lt_ekko type z_t_ekko. (tabletype z_t_ekko has just one column ebeln)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select ebeln from ekko into table lt_ekko&lt;/P&gt;&lt;P&gt;where bsart in ('ECDP','ECPO','EB').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Mario Schmidt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2007 15:56:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm/m-p/1906538#M377802</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-23T15:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm/m-p/1906539#M377803</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;1. In the Function Group i.e Global Data, declare a table as follows.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPES : BEGIN OF x_ebeln,
          ebeln TYPE ebeln,
        END    OF  x_ebeln.

DATA : lt_ekko TYPE TABLE OF x_ebeln.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;2. In you code, &amp;lt;b&amp;gt;instead of&amp;lt;/b&amp;gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select ebeln from ekko into corresponding fields of table lt_ekko
where bsart in ('ECDP','ECPO','EB').
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;lt;b&amp;gt;use&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select ebeln from ekko into table lt_ekko
where bsart in ('ECDP','ECPO','EB').
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, your table has only one field therefore it will not display other field with null values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if the answer is helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mukul&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2007 16:00:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm/m-p/1906539#M377803</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-23T16:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm/m-p/1906540#M377804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THanks !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other way without creating the structure????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2007 16:12:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm/m-p/1906540#M377804</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-23T16:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm/m-p/1906541#M377805</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;That is the only way to create structure unless you only want to get a single PO&lt;/P&gt;&lt;P&gt;then you can use parameter instead table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2007 16:17:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm/m-p/1906541#M377805</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-02-23T16:17:22Z</dc:date>
    </item>
  </channel>
</rss>

