<?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: problem in PAI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-pai/m-p/2054268#M423864</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should implement your code into the USER_COMMAND module in the PAI.  You should have some kind of button on your screen which is mapped to a function code, when the user presses this button, you need to check for the functon code in this module and do the logic to update your database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Case ok_code.
   when 'BACK'.
        set screen 0.
        leave screen.
   when 'BUTTON1'.
       clear ok_code.
       data: xztab type ztable.
       xztab-exdiv = gscreen-exdiv.
       xztab-door# = gscreen-door#.
       xztab-uname = sy-uname.
       xztab-datum = sy-datum.
       modify ztab from xztab.
endcase.&lt;/CODE&gt;&lt;/PRE&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>Sat, 17 Mar 2007 17:34:33 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2007-03-17T17:34:33Z</dc:date>
    <item>
      <title>problem in PAI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-pai/m-p/2054267#M423863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello friends,&lt;/P&gt;&lt;P&gt;i need little help,&lt;/P&gt;&lt;P&gt;i have a screen which has two input values,gscreen_exdiv and gscreen_door# as input.&lt;/P&gt;&lt;P&gt;how do i update a ztable in the database, with these fields along with system userid, system date.&lt;/P&gt;&lt;P&gt;can any one please give a step by step approach, presently the development was done till  PAI, &lt;/P&gt;&lt;P&gt;when i double click on PAI it takes me to few modules already built. now i have to&lt;/P&gt;&lt;P&gt;write a module that does this  job. can any one plz give details of sample code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Mar 2007 17:00:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-pai/m-p/2054267#M423863</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-17T17:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: problem in PAI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-pai/m-p/2054268#M423864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should implement your code into the USER_COMMAND module in the PAI.  You should have some kind of button on your screen which is mapped to a function code, when the user presses this button, you need to check for the functon code in this module and do the logic to update your database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Case ok_code.
   when 'BACK'.
        set screen 0.
        leave screen.
   when 'BUTTON1'.
       clear ok_code.
       data: xztab type ztable.
       xztab-exdiv = gscreen-exdiv.
       xztab-door# = gscreen-door#.
       xztab-uname = sy-uname.
       xztab-datum = sy-datum.
       modify ztab from xztab.
endcase.&lt;/CODE&gt;&lt;/PRE&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>Sat, 17 Mar 2007 17:34:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-pai/m-p/2054268#M423864</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-03-17T17:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: problem in PAI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-pai/m-p/2054269#M423865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi kutumba rao,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use your own modules also just write the module name...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg. module mod1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now double click on mod1 ..&lt;/P&gt;&lt;P&gt;then choose main progaram and then enter.&lt;/P&gt;&lt;P&gt;now here you can write your own code as your logic says...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for system date you can use sy-datum . you can use other system variables as per your requirement..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in that module you can write like..&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 'PUSH'. " Function code for the Push Button you had given...&lt;/P&gt;&lt;P&gt;      call transaction 'se11'.&lt;/P&gt;&lt;P&gt;when 'EXIT'.&lt;/P&gt;&lt;P&gt;     leave program.&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;encase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you..&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;ilesh Nandaniya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Mar 2007 17:55:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-pai/m-p/2054269#M423865</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-17T17:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: problem in PAI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-pai/m-p/2054270#M423866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks rich,&lt;/P&gt;&lt;P&gt;great help. &lt;/P&gt;&lt;P&gt;i will try that  and come back to you.&lt;/P&gt;&lt;P&gt;thanks again for your reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Mar 2007 18:16:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-pai/m-p/2054270#M423866</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-17T18:16:04Z</dc:date>
    </item>
  </channel>
</rss>

