<?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: Code Function Module...? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-function-module/m-p/2564554#M585031</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Vijay,&lt;/P&gt;&lt;P&gt;Thnx for the reply..&lt;/P&gt;&lt;P&gt;I want to write a FM that will select data from these tables...its like view of all these three tables...what will be the coding like and what will be the import and export parameters...&lt;/P&gt;&lt;P&gt;please help ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jul 2007 20:03:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-24T20:03:52Z</dc:date>
    <item>
      <title>Code Function Module...?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-function-module/m-p/2564552#M585029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have to write a FM out of tables FAGLFLEXA BSEG BKPF...What will be the import and export parameters for this FM and how can i code...I am not sure if this possible actually the query is if we can write this FM by joining these tables through common field..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does it make sense..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers:&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 19:54:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-function-module/m-p/2564552#M585029</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T19:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Code Function Module...?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-function-module/m-p/2564553#M585030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Whats the purpose of a FM in your case? I am not clear with your question. Do you want to write a FM which will select data from the above tables or do you want to write a FM to maintain( inster, modify, Update ) data in the above tables? &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; If you want to onlys select data from the above tables then you can do it using a Join in the FM source code. If you want to update the table then writing a FM is not a good idea as they are std tables and shoould not be used for direct updates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Cheers&lt;/P&gt;&lt;P&gt; VJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 20:01:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-function-module/m-p/2564553#M585030</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T20:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Code Function Module...?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-function-module/m-p/2564554#M585031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Vijay,&lt;/P&gt;&lt;P&gt;Thnx for the reply..&lt;/P&gt;&lt;P&gt;I want to write a FM that will select data from these tables...its like view of all these three tables...what will be the coding like and what will be the import and export parameters...&lt;/P&gt;&lt;P&gt;please help ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 20:03:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-function-module/m-p/2564554#M585031</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T20:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: Code Function Module...?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-function-module/m-p/2564555#M585032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Since you only need to select the data then you can use a inner join. An example of how to using inner join is given below. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT b~matnr b~mtvfp b~werks
       b~dismm b~beskz b~plifz b~disgr
       c~pstat c~mtart c~brgew c~normt z~mtpos
    INTO CORRESPONDING FIELDS OF TABLE t_materials
        FROM marc AS b 
           INNER JOIN mara AS c 
              ON a~matnr = c~matnr
           INNER JOIN mvke AS z
              ON a~matnr = b~matnr 
                 FOR ALL ENTRIES IN t_materials2
                    WHERE b~matnr EQ t_materials2-matnr
                    AND b~werks EQ t_materials2-werks
                    AND b~stawn IN s_stawn
                    AND b~disgr IN s_disgr
                    AND b~mmsta EQ '03'
                    AND c~mtart IN s_mtart
                    AND z~vkorg EQ p_vkorg
                    AND z~vtweg EQ p_vtweg
                    AND z~mtpos IN s_mtpos.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; The IMPORT parameter should be those fields based on which you would like to restrcit your selection. The EXPORT paramaters can be empty if you are going to fetch multiple records so you can use TABLES paramters instead. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Cheers&lt;/P&gt;&lt;P&gt; VJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 20:08:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-function-module/m-p/2564555#M585032</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T20:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: Code Function Module...?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-function-module/m-p/2564556#M585033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would suggest you creating a view... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or do you already have a specification, which tells you what the output should be and what input data you have?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that case, you perhaps want to create a ddic type of the output (either structure for a single value or a table type for a table) as well as ddic types for the input values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 20:08:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-function-module/m-p/2564556#M585033</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-24T20:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: Code Function Module...?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-function-module/m-p/2564557#M585034</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;Check SAP standard fm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FI_DOCUMENT_READ1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aRs,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2007 20:11:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-function-module/m-p/2564557#M585034</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-07-24T20:11:59Z</dc:date>
    </item>
  </channel>
</rss>

