<?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 Creating Z Program and Function Module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-z-program-and-function-module/m-p/8789319#M1679091</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"&gt;Hello Dear Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"&gt;I need to create a Z Program which will get following Using PARAMETER statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"&gt;Employee Number&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"&gt;Address 1&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"&gt;Address 2&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"&gt;City &lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"&gt;State&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"&gt;ZIP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"&gt;Then, create a Z Function Module (SE37), which will take all these fields as input, and use INSERT statement inside the function module to add this data into my Z Table which I have already created with above fields. Will anyone do this for me, I am in need of help!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;Moderator message: please work on your requirements yourself.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Thomas Zloch&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 03 Jun 2012 03:52:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-06-03T03:52:13Z</dc:date>
    <item>
      <title>Creating Z Program and Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-z-program-and-function-module/m-p/8789319#M1679091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"&gt;Hello Dear Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"&gt;I need to create a Z Program which will get following Using PARAMETER statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"&gt;Employee Number&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"&gt;Address 1&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"&gt;Address 2&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"&gt;City &lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"&gt;State&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"&gt;ZIP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"&gt;Then, create a Z Function Module (SE37), which will take all these fields as input, and use INSERT statement inside the function module to add this data into my Z Table which I have already created with above fields. Will anyone do this for me, I am in need of help!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;Moderator message: please work on your requirements yourself.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Thomas Zloch&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jun 2012 03:52:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-z-program-and-function-module/m-p/8789319#M1679091</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-06-03T03:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Z Program and Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-z-program-and-function-module/m-p/8789320#M1679092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Badar,&lt;/P&gt;&lt;P&gt;Please follow the below sequence:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Go to SE37 and create a z function module.&lt;/P&gt;&lt;P&gt;Inside Import tab ,&amp;nbsp; enter all input fields i.e.&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial, sans-serif; background-color: rgba(255, 255, 255, 0.917969); color: #222222; text-align: -webkit-auto;"&gt;Employee Number&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial, sans-serif; background-color: rgba(255, 255, 255, 0.917969); color: #222222; text-align: -webkit-auto;"&gt;Address 1&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial, sans-serif; background-color: rgba(255, 255, 255, 0.917969); color: #222222; text-align: -webkit-auto;"&gt;Address 2&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial, sans-serif; background-color: rgba(255, 255, 255, 0.917969); color: #222222; text-align: -webkit-auto;"&gt;City&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial, sans-serif; background-color: rgba(255, 255, 255, 0.917969); color: #222222; text-align: -webkit-auto;"&gt;State&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial, sans-serif; background-color: rgba(255, 255, 255, 0.917969); color: #222222; text-align: -webkit-auto;"&gt;ZIP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; Inside changing&amp;nbsp; tab, you need to add all the parameters:&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial, sans-serif; background-color: rgba(255, 255, 255, 0.917969); color: #222222; text-align: -webkit-auto;"&gt;Employee Number&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial, sans-serif; background-color: rgba(255, 255, 255, 0.917969); color: #222222; text-align: -webkit-auto;"&gt;Address 1&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial, sans-serif; background-color: rgba(255, 255, 255, 0.917969); color: #222222; text-align: -webkit-auto;"&gt;Address 2&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial, sans-serif; background-color: rgba(255, 255, 255, 0.917969); color: #222222; text-align: -webkit-auto;"&gt;City&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial, sans-serif; background-color: rgba(255, 255, 255, 0.917969); color: #222222; text-align: -webkit-auto;"&gt;State&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial, sans-serif; background-color: rgba(255, 255, 255, 0.917969); color: #222222; text-align: -webkit-auto;"&gt;ZIP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial, sans-serif; background-color: rgba(255, 255, 255, 0.917969); color: #222222; text-align: -webkit-auto;"&gt;3..&amp;nbsp; Inside&amp;nbsp; code tab, yo need to add below lines to Update enteries from selection screen into Ztablesay ZKNA1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial, sans-serif; background-color: rgba(255, 255, 255, 0.917969); color: #222222; text-align: -webkit-auto;"&gt;&lt;SPAN style="color: #222222; font-size: 12px; font-family: arial, sans-serif;"&gt;ZKNA1-EMP_NO = P_EMP_NO. " &lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12px; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"&gt;P_EMP_NO&lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-size: 12px; font-family: arial, sans-serif;"&gt; is parameter entered from selection screen&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial, sans-serif; background-color: rgba(255, 255, 255, 0.917969); color: #222222; text-align: -webkit-auto;"&gt;ZKNA1-ADRNR1 = P_ADRNR1.&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial, sans-serif; background-color: rgba(255, 255, 255, 0.917969); color: #222222; text-align: -webkit-auto;"&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12px; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"&gt;ZKNA1-ADRNR2 = P_ADRNR2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial, sans-serif; background-color: rgba(255, 255, 255, 0.917969); color: #222222; text-align: -webkit-auto;"&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12px; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"&gt;ZKNA1-CITY = P_CITY.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;MODIFY &lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12px; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"&gt;ZKNA1&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12px; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"&gt;ZKNA1&lt;/SPAN&gt;. "to write changes on database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now , inside report , design selection screen and call ZFunction module and process/display the values accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial, sans-serif; background-color: rgba(255, 255, 255, 0.917969); color: #222222; text-align: -webkit-auto;"&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12px; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"&gt;Best&amp;nbsp; regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial, sans-serif; background-color: rgba(255, 255, 255, 0.917969); color: #222222; text-align: -webkit-auto;"&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12px; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"&gt;Sachin&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jun 2012 14:18:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-z-program-and-function-module/m-p/8789320#M1679092</guid>
      <dc:creator>former_member213851</dc:creator>
      <dc:date>2012-06-03T14:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Z Program and Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-z-program-and-function-module/m-p/8789321#M1679093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"&gt;Thanks alot..i'm working on it but why do I need to add PARAMETERS to Changing Tab? Also please tell me how to write a Z program in SE38 using PARAMETER statement which will get employeenumber, address1, address2, city, state and zip. Thanks much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jun 2012 14:42:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-z-program-and-function-module/m-p/8789321#M1679093</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-06-03T14:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Z Program and Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-z-program-and-function-module/m-p/8789322#M1679094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Badar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No need to add parameters inside Changing tab. Just ignore 2nd step.&lt;/P&gt;&lt;P&gt;You can define parameters as &lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;PARAMETERS &lt;/SPAN&gt;: p_ empno &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;emp-wnpno.&lt;/P&gt;&lt;P&gt;also ensure taht Type of selection screen parameter and Import parameter type in Function module is same ,&lt;/P&gt;&lt;P&gt;else Type conflict error will occur&lt;/P&gt;&lt;P&gt; where emp is table name .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jun 2012 15:02:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-z-program-and-function-module/m-p/8789322#M1679094</guid>
      <dc:creator>former_member213851</dc:creator>
      <dc:date>2012-06-03T15:02:46Z</dc:date>
    </item>
  </channel>
</rss>

