<?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: dialog programing-Urgent in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programing-urgent/m-p/1188910#M127985</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why are you doing a 'clear UserEntered' before your 'case UserEntered'. It will clear the value of this and your case statement will never execute.&lt;/P&gt;&lt;P&gt;Your message statement is ok.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Feb 2006 18:31:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-02-22T18:31:03Z</dc:date>
    <item>
      <title>dialog programing-Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programing-urgent/m-p/1188909#M127984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Friends,&lt;/P&gt;&lt;P&gt;           currenlty i am trying an DIALOG PROGRAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ineed to have  message ssayihn that if any entries have the value 0 then , it should ask the user to enter a non-zero value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my dialog program is that, i have to enter the &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. employe name, employee no and deptno.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is my PAI program &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now inside the SAVE code i need to enter an message id. how could i do that. Please help me regarding this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;odule INSERTTABLE .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clear UserEntered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE UserEntered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        When 'SAVE' or 'STORE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;              ZZEMP-EMPNO = PEMPNO.&lt;/P&gt;&lt;P&gt;               ZZEMP-FIRSTNAME = PFIRSTNAME.&lt;/P&gt;&lt;P&gt;               ZZEMP-DEPTNO = PDEPTNO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               insert  zzemp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            If ZZEMP-EMPNO = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;             message i001 with PEMPNO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;             ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         When 'MOD'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               ZZEMP-EMPNO = PEMPNO.&lt;/P&gt;&lt;P&gt;               ZZEMP-FIRSTNAME = PFIRSTNAME.&lt;/P&gt;&lt;P&gt;               ZZEMP-DEPTNO = PDEPTNO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           update zzemp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       When 'DELETE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                  ZZEMP-EMPNO = PEMPNO.&lt;/P&gt;&lt;P&gt;                  ZZEMP-FIRSTNAME = PFIRSTNAME.&lt;/P&gt;&lt;P&gt;                  ZZEMP-DEPTNO = PDEPTNO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          DELETE ZZEMP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      When 'REFRESH'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CLEAR ZZEMP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CLEAR  PEMPNO.&lt;/P&gt;&lt;P&gt;      CLEAR  PFIRSTNAME.&lt;/P&gt;&lt;P&gt;      CLEAR  PDEPTNO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          when 'BACK'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;              set screen 0.&lt;/P&gt;&lt;P&gt;              leave screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        when 'EXIT' or 'CANCEL'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               Leave Program.&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmodule.                 " USER_COMMAND_0010  INPUT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2006 18:26:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programing-urgent/m-p/1188909#M127984</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-22T18:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: dialog programing-Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programing-urgent/m-p/1188910#M127985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why are you doing a 'clear UserEntered' before your 'case UserEntered'. It will clear the value of this and your case statement will never execute.&lt;/P&gt;&lt;P&gt;Your message statement is ok.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2006 18:31:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programing-urgent/m-p/1188910#M127985</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-22T18:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: dialog programing-Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programing-urgent/m-p/1188911#M127986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U CAN CREATE A MESSAGE CLASS(say zmes) IN se91 and create ur messages in it. like&lt;/P&gt;&lt;P&gt;001  Please enter &amp;amp; &amp;amp; ( &amp;amp; implies that u can enter variables in its place)&lt;/P&gt;&lt;P&gt;then in ur code u can write&lt;/P&gt;&lt;P&gt;message i001(zmes) with text-001 ( u can write what u want to display after 'Please enter' here).&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bikash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2006 18:33:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programing-urgent/m-p/1188911#M127986</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-22T18:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: dialog programing-Urgent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programing-urgent/m-p/1188912#M127987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am a little confused about your requirement, but you want to issue a message if emp number is not filled in by the user correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


When 'SAVE' or 'STORE'.

&amp;lt;b&amp;gt;Clear UserEntered.&amp;lt;/b&amp;gt;


&amp;lt;b&amp;gt;If ZZEMP-EMPNO = 0.
message&amp;lt;b&amp;gt; E001&amp;lt;/b&amp;gt; with PEMPNO.
ENDIF.&amp;lt;/b&amp;gt;


ZZEMP-EMPNO = PEMPNO.
ZZEMP-FIRSTNAME = PFIRSTNAME.
ZZEMP-DEPTNO = PDEPTNO.

insert zzemp.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, you should probably be check this before you write to the database, and second it should probably be an error, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should also be clearing your &amp;lt;b&amp;gt;UserEntered&amp;lt;/b&amp;gt; in the case statement after dropping into "SAVE" section.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usually I would put these kinds of checks in a separate module and tie it directly to the field.&lt;/P&gt;&lt;P&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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2006 18:37:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programing-urgent/m-p/1188912#M127987</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-02-22T18:37:08Z</dc:date>
    </item>
  </channel>
</rss>

