<?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: Module pool Program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-program/m-p/2843849#M666146</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dont use error message if u want the processing to continue. [and r u fetching the kunnr into kna1?...]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead use'i' (information) message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess u r getting a n error message which says ''INPUT CUSTOMER NUMBER'' and no data is fetch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I am correct then , change the error message to 'i'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 'DISPLAY'.&lt;/P&gt;&lt;P&gt;IF KNA1-KUNNR IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM KNA1 WHERE KUNNR EQ KNA1-KUNNR.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;MESSAGE E000(0) WITH 'CUSTOMER NUMBER INVALID'.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;MESSAGE i000(0) WITH 'INPUT CUSTOMER NUMBER'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Sep 2007 09:42:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-19T09:42:27Z</dc:date>
    <item>
      <title>Module pool Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-program/m-p/2843844#M666141</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; This is my module pool program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When iam executing this using t.code  data of the customer was not retrieved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz let me know where i had gone wrong. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE USER_COMMAND_9001 INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES:&lt;/P&gt;&lt;P&gt;KNA1.&lt;/P&gt;&lt;P&gt;CASE SY-UCOMM.&lt;/P&gt;&lt;P&gt;WHEN 'EXIT'.&lt;/P&gt;&lt;P&gt;LEAVE PROGRAM.&lt;/P&gt;&lt;P&gt;WHEN 'DISPLAY'.&lt;/P&gt;&lt;P&gt;IF KNA1-KUNNR IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM KNA1 WHERE KUNNR EQ KNA1-KUNNR.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;MESSAGE E000(0) WITH 'CUSTOMER NUMBER INVALID'.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;MESSAGE E000(0) WITH 'INPUT CUSTOMER NUMBER'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;WHEN 'INSERT'.&lt;/P&gt;&lt;P&gt;INSERT KNA1.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;MESSAGE E000(0) WITH 'RECORD INSERTED'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " USER_COMMAND_9001  INPUT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 07:11:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-program/m-p/2843844#M666141</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-19T07:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-program/m-p/2843845#M666142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi rams,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; there is nothing wrong with ur module pool program what are you passing kna1-kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Execute it in debug mode and check why data is not retreived.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 07:18:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-program/m-p/2843845#M666142</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-19T07:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-program/m-p/2843846#M666143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this program &lt;/P&gt;&lt;P&gt;when 'display'&lt;/P&gt;&lt;P&gt;you are checking the kna1-kunnr &lt;/P&gt;&lt;P&gt;check weather you have to pick the value from any internal table &lt;/P&gt;&lt;P&gt;if you check the kna1-kunnr initially &lt;/P&gt;&lt;P&gt;you will not get any value &lt;/P&gt;&lt;P&gt;the value will be always initial &lt;/P&gt;&lt;P&gt;so you can not fetch any value back from the table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you just make it as &lt;/P&gt;&lt;P&gt;select single * from kna1 where kunnr EQ itab-kunnr or some thing variable v_kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you select using kna1-kunnr you will not get any value there&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 07:26:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-program/m-p/2843846#M666143</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-19T07:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-program/m-p/2843847#M666144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Rams , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   I am a bit confused for your code , did you do a syntax check on this code ? &lt;/P&gt;&lt;P&gt;  I guess you have missed out the INTO clause in your SELECT statement .&lt;/P&gt;&lt;P&gt;  There are no structure or I-table where you are storing the values from KNA1 table .Please check that .&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;Ranjita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 07:31:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-program/m-p/2843847#M666144</guid>
      <dc:creator>former_member196299</dc:creator>
      <dc:date>2007-09-19T07:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-program/m-p/2843848#M666145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi rams,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the logic is to be corrected,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are checking for sy-subrc ryt !!! that shud be done inside the &lt;/P&gt;&lt;P&gt;if condition itself as shown below !! the below code will give you an idea&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IF KNA1-KUNNR IS NOT INITIAL.
SELECT SINGLE * FROM KNA1 WHERE KUNNR EQ KNA1-KUNNR.
******ENDIF.
    IF SY-SUBRC NE 0.
        MESSAGE E000(0) WITH 'CUSTOMER NUMBER INVALID'.
    ELSE.
        MESSAGE E000(0) WITH 'CUSTOMER NUMBER EXISTS'.
    ENDIF.

ELSE.
MESSAGE E000(0) WITH 'INPUT CUSTOMER NUMBER'.
ENDIF.

ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Happy coding ... &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&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;SJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 07:36:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-program/m-p/2843848#M666145</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-19T07:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: Module pool Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-program/m-p/2843849#M666146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dont use error message if u want the processing to continue. [and r u fetching the kunnr into kna1?...]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead use'i' (information) message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess u r getting a n error message which says ''INPUT CUSTOMER NUMBER'' and no data is fetch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I am correct then , change the error message to 'i'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 'DISPLAY'.&lt;/P&gt;&lt;P&gt;IF KNA1-KUNNR IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM KNA1 WHERE KUNNR EQ KNA1-KUNNR.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;MESSAGE E000(0) WITH 'CUSTOMER NUMBER INVALID'.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;MESSAGE i000(0) WITH 'INPUT CUSTOMER NUMBER'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 09:42:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-program/m-p/2843849#M666146</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-19T09:42:27Z</dc:date>
    </item>
  </channel>
</rss>

