<?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: write code for following in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-code-for-following/m-p/3668695#M883653</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Types:begin of typ_final,          (types)&lt;/P&gt;&lt;P&gt;      mandt(03) type clnt,&lt;/P&gt;&lt;P&gt;      empid(5)  type char,&lt;/P&gt;&lt;P&gt;      empnm(15) type char,&lt;/P&gt;&lt;P&gt;      empdj(8)  type char,&lt;/P&gt;&lt;P&gt;      empad(30) type char,&lt;/P&gt;&lt;P&gt;      empph(15) type char,&lt;/P&gt;&lt;P&gt;      depid(5) type char,&lt;/P&gt;&lt;P&gt;   end of typ_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:gt_final type standard table of typ_final.(internal table)&lt;/P&gt;&lt;P&gt;data:gs_final type typ_final.(work area).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for selection-screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of block b1 with frame title text-001.&lt;/P&gt;&lt;P&gt;select-options:s_empid for empid.&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;selection-screen end of block b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for creating button DELETE ,Insert and update&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have to include pf-status&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set pf-status 'ABC'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;D .click o ABC and define button INSERT,DELETE,UPDATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AND you have to write your code in this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at User-command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'INSERT'.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------" /&gt;&lt;P&gt;YOUR CODE&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 'UPDATE' &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------" /&gt;&lt;P&gt;YOUR CODE&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------" /&gt;&lt;P&gt;when 'DELETE'&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------" /&gt;&lt;P&gt;YOUR CODE&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------" /&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;          &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REwards plz if this helps you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Apr 2008 06:38:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-07T06:38:38Z</dc:date>
    <item>
      <title>write code for following</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-code-for-following/m-p/3668693#M883651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please help me to write the code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;#9632;        Create a work area of the following fields of  'Z' table(employee/department)-&lt;/P&gt;&lt;P&gt;                   MANDT   CLNT  (03),&lt;/P&gt;&lt;P&gt;                   EMPID   CHAR  (05),&lt;/P&gt;&lt;P&gt;                   EMPNM   CHAR  (15),&lt;/P&gt;&lt;P&gt;                   EMPDJ   CHAR  (08),&lt;/P&gt;&lt;P&gt;                   EMPAD   CHAR  (30),&lt;/P&gt;&lt;P&gt;                   EMPPH   CHAR  (15),&lt;/P&gt;&lt;P&gt;                   DEPID   CHAR  (05).&lt;/P&gt;&lt;P&gt;&amp;amp;#9632;        Create a selection-screen equivalent of the above work area&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;#9632;        Also put 'INSERT' 'DELETE' and 'UPDATE' buttons on the selection-screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;#9632;        Using INSERT statement insert selection-screen record into DATABASE TABLE,&lt;/P&gt;&lt;P&gt;         when the user presses 'INSERT' button on selection-screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;#9632;        Using UPDATE statement modify record of the DATABASE TABLE, &lt;/P&gt;&lt;P&gt;         when the user presses 'UPDATE' button on selection-screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;#9632;        Using DELETE statement delete the corresponding DATABASE TABLE record,&lt;/P&gt;&lt;P&gt;         when the user presses 'DELETE' button on selection-screen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Apr 2008 07:15:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-code-for-following/m-p/3668693#M883651</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-05T07:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: write code for following</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-code-for-following/m-p/3668694#M883652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;

SELECTION-SCREEN BEGIN OF BLOCK blk1.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN PUSHBUTTON  5(10) b1 USER-COMMAND bu1.
SELECTION-SCREEN PUSHBUTTON  20(10) b2 USER-COMMAND bu2.
SELECTION-SCREEN PUSHBUTTON  35(10) b3 USER-COMMAND bu3.
SELECTION-SCREEN end OF LINE.
SELECTION-SCREEN end OF BLOCK blk1.
 
INITIALIZATION.
 
  MOVE : 'insert' TO b1,
         'delete 2' TO b2,
         'update' TO b3.
 
AT SELECTION-SCREEN OUTPUT.
       LOOP AT SCREEN.
        CASE screen-name.
          WHEN 'B1'.
            "write insert statement  .
        WHEN 'B2'.
 "write delete statement  
         WHEN 'B3'.
 "write update statement 
          
        ENDCASE.
        MODIFY SCREEN.
      ENDLOOP.
    
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Apr 2008 07:40:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-code-for-following/m-p/3668694#M883652</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-05T07:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: write code for following</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-code-for-following/m-p/3668695#M883653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Types:begin of typ_final,          (types)&lt;/P&gt;&lt;P&gt;      mandt(03) type clnt,&lt;/P&gt;&lt;P&gt;      empid(5)  type char,&lt;/P&gt;&lt;P&gt;      empnm(15) type char,&lt;/P&gt;&lt;P&gt;      empdj(8)  type char,&lt;/P&gt;&lt;P&gt;      empad(30) type char,&lt;/P&gt;&lt;P&gt;      empph(15) type char,&lt;/P&gt;&lt;P&gt;      depid(5) type char,&lt;/P&gt;&lt;P&gt;   end of typ_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:gt_final type standard table of typ_final.(internal table)&lt;/P&gt;&lt;P&gt;data:gs_final type typ_final.(work area).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for selection-screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of block b1 with frame title text-001.&lt;/P&gt;&lt;P&gt;select-options:s_empid for empid.&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;selection-screen end of block b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for creating button DELETE ,Insert and update&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have to include pf-status&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set pf-status 'ABC'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;D .click o ABC and define button INSERT,DELETE,UPDATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AND you have to write your code in this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at User-command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'INSERT'.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------" /&gt;&lt;P&gt;YOUR CODE&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 'UPDATE' &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------" /&gt;&lt;P&gt;YOUR CODE&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------" /&gt;&lt;P&gt;when 'DELETE'&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------" /&gt;&lt;P&gt;YOUR CODE&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------" /&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;          &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REwards plz if this helps you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2008 06:38:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-code-for-following/m-p/3668695#M883653</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-07T06:38:38Z</dc:date>
    </item>
  </channel>
</rss>

