<?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 ABAP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-in-abap/m-p/3783401#M910305</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to create a funcion module which inserts data in a table i created sooner.&lt;/P&gt;&lt;P&gt;This is how my table looks in se11:&lt;/P&gt;&lt;P&gt;[pic01|http://kepfeltolto.hu/i/?90028&amp;amp;t=img]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is how my import tab looks within the function module:[pic02|http://kepfeltolto.hu/i/?90031&amp;amp;t=img]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my source code in the modul:&lt;/P&gt;&lt;P&gt;FUNCTION ZPB01FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;     REFERENCE(OUAID) TYPE  INT1&lt;/P&gt;&lt;P&gt;     REFERENCE(COMP) TYPE  SSTRING&lt;/P&gt;&lt;P&gt;     REFERENCE(BUSINESS) TYPE  SSTRING&lt;/P&gt;&lt;P&gt;     REFERENCE(GROUP) TYPE  SSTRING&lt;/P&gt;&lt;P&gt;     REFERENCE(NAMEOF) TYPE  SSTRING&lt;/P&gt;&lt;P&gt;     REFERENCE(MANNAME) TYPE  SSTRING&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;DATA: itab TYPE TABLE OF ZPB_FORM_ORG&lt;/P&gt;&lt;P&gt;             &lt;/P&gt;&lt;P&gt;      wa LIKE LINE OF itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa-ORG_UAID = OUAID. &lt;/P&gt;&lt;P&gt;wa-company = comp. &lt;/P&gt;&lt;P&gt;wa-business_area = business.&lt;/P&gt;&lt;P&gt;wa-group_zpb = group. &lt;/P&gt;&lt;P&gt;wa-name_of_nou = nameof. &lt;/P&gt;&lt;P&gt;wa-manager_name = manname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT wa INTO TABLE ZPB_FORM_ORG.&lt;/P&gt;&lt;P&gt;&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;I did not change anything else in function modul. Will this work? If not how should i do it?&lt;/P&gt;&lt;P&gt;If it works is it not a problem, that i don't insert all fields in table, only 5 of them?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really need the answer, thanks, Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 May 2008 18:13:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-02T18:13:58Z</dc:date>
    <item>
      <title>Function module in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-in-abap/m-p/3783401#M910305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to create a funcion module which inserts data in a table i created sooner.&lt;/P&gt;&lt;P&gt;This is how my table looks in se11:&lt;/P&gt;&lt;P&gt;[pic01|http://kepfeltolto.hu/i/?90028&amp;amp;t=img]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is how my import tab looks within the function module:[pic02|http://kepfeltolto.hu/i/?90031&amp;amp;t=img]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my source code in the modul:&lt;/P&gt;&lt;P&gt;FUNCTION ZPB01FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;     REFERENCE(OUAID) TYPE  INT1&lt;/P&gt;&lt;P&gt;     REFERENCE(COMP) TYPE  SSTRING&lt;/P&gt;&lt;P&gt;     REFERENCE(BUSINESS) TYPE  SSTRING&lt;/P&gt;&lt;P&gt;     REFERENCE(GROUP) TYPE  SSTRING&lt;/P&gt;&lt;P&gt;     REFERENCE(NAMEOF) TYPE  SSTRING&lt;/P&gt;&lt;P&gt;     REFERENCE(MANNAME) TYPE  SSTRING&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;DATA: itab TYPE TABLE OF ZPB_FORM_ORG&lt;/P&gt;&lt;P&gt;             &lt;/P&gt;&lt;P&gt;      wa LIKE LINE OF itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa-ORG_UAID = OUAID. &lt;/P&gt;&lt;P&gt;wa-company = comp. &lt;/P&gt;&lt;P&gt;wa-business_area = business.&lt;/P&gt;&lt;P&gt;wa-group_zpb = group. &lt;/P&gt;&lt;P&gt;wa-name_of_nou = nameof. &lt;/P&gt;&lt;P&gt;wa-manager_name = manname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT wa INTO TABLE ZPB_FORM_ORG.&lt;/P&gt;&lt;P&gt;&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;I did not change anything else in function modul. Will this work? If not how should i do it?&lt;/P&gt;&lt;P&gt;If it works is it not a problem, that i don't insert all fields in table, only 5 of them?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really need the answer, thanks, Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2008 18:13:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-in-abap/m-p/3783401#M910305</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-02T18:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: Function module in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-in-abap/m-p/3783402#M910306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, the other fields will simply be blank,  but your INSERT statement isn't right. I don't think that will pass a syntax check.  You might want to do this instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;INSERT ZPB_FORM_ORG from wa.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2008 18:17:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-in-abap/m-p/3783402#M910306</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2008-05-02T18:17:31Z</dc:date>
    </item>
  </channel>
</rss>

