<?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: screen programming in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming/m-p/2568217#M586152</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;say your flow logic will like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PBO:&lt;/P&gt;&lt;P&gt;MODULE PBO_100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PAI:&lt;/P&gt;&lt;P&gt;MODULE PAI_100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOW IN PAI WRITE LIKE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if sy-ucomm = 'SAVE'. "User presses SAVE button
itab-fld1 = tblctrl-tbl_fld1.
itab-fld2 = tblctrl-tbl_fld2.
itab-fld3 = tblctrl-tbl_fld3.
itab-fld4 = tblctrl-tbl_fld4.
append itab.
endif.

"comapre data here

"show message
if &amp;lt;comditon&amp;gt; = &amp;lt;codn&amp;gt;.
message 'type a message' type 'I'. "information message .
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jogdand M B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jul 2007 09:32:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-30T09:32:29Z</dc:date>
    <item>
      <title>screen programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming/m-p/2568215#M586150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;      I have created a screen 100 and there are four fields for the user to input. I need to transfer the data (which the user enters) to the internal table. So that I can compare those data with the database and wants to display a message in the same screen.please tell me how to do it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 09:25:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming/m-p/2568215#M586150</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-30T09:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: screen programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming/m-p/2568216#M586151</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;&lt;/P&gt;&lt;P&gt;U can acess the values entered by the user in the PAI event. There u can append them in to internal table and compare with the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can display corresponding message on the same screen.&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;Sankar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 09:30:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming/m-p/2568216#M586151</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-30T09:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: screen programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming/m-p/2568217#M586152</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;say your flow logic will like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PBO:&lt;/P&gt;&lt;P&gt;MODULE PBO_100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PAI:&lt;/P&gt;&lt;P&gt;MODULE PAI_100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOW IN PAI WRITE LIKE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if sy-ucomm = 'SAVE'. "User presses SAVE button
itab-fld1 = tblctrl-tbl_fld1.
itab-fld2 = tblctrl-tbl_fld2.
itab-fld3 = tblctrl-tbl_fld3.
itab-fld4 = tblctrl-tbl_fld4.
append itab.
endif.

"comapre data here

"show message
if &amp;lt;comditon&amp;gt; = &amp;lt;codn&amp;gt;.
message 'type a message' type 'I'. "information message .
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jogdand M B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 09:32:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming/m-p/2568217#M586152</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-30T09:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: screen programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming/m-p/2568218#M586153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. first user enters data in the screen&lt;/P&gt;&lt;P&gt;2. get your data from the data base in to a work area&lt;/P&gt;&lt;P&gt;3. wa-fld1 = freld 1 form screen&lt;/P&gt;&lt;P&gt;   wa-fld2 = freld 2 form screen&lt;/P&gt;&lt;P&gt;   wa-fld3 = freld 3 form screen&lt;/P&gt;&lt;P&gt;   wa-fld4 = freld 4 form screen&lt;/P&gt;&lt;P&gt;if all the four conditions are satisfied &lt;/P&gt;&lt;P&gt;set a flag as 'x'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not display a your message&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and use this flag where ever u want these conditions further&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 09:33:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming/m-p/2568218#M586153</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-30T09:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: screen programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming/m-p/2568219#M586154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First uif u r having the fieldnames of the textbox which u have in ur screen 100 as like table or differesnt...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example if u have fieldname as i_vbeln i_date  then u have to declare in ur program first.&lt;/P&gt;&lt;P&gt;If u are having VBAK-VBELN then no need to declare in the program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declare in program like this...&lt;/P&gt;&lt;P&gt;Data : i_vbeln like vbak-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in screen 100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the PAI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chain.&lt;/P&gt;&lt;P&gt;field: i_vbeln ,&lt;/P&gt;&lt;P&gt;       i_date.&lt;/P&gt;&lt;P&gt;Module Process_fiele.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endchain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Module Process_fields input.&lt;/P&gt;&lt;P&gt;Check here with the database table.&lt;/P&gt;&lt;P&gt;endmodule.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 09:33:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming/m-p/2568219#M586154</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-30T09:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: screen programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming/m-p/2568220#M586155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this code&lt;/P&gt;&lt;P&gt;tables mara.&lt;/P&gt;&lt;P&gt;parameters : p_matnr type mara-matnr,&lt;/P&gt;&lt;P&gt;             p_mtart type mara-mtart,&lt;/P&gt;&lt;P&gt;             p_matkl type mara-matkl,&lt;/P&gt;&lt;P&gt;             p_meins type mara-meins.&lt;/P&gt;&lt;P&gt;             &lt;/P&gt;&lt;P&gt;             &lt;/P&gt;&lt;P&gt;             &lt;/P&gt;&lt;P&gt; select * from mara where matnr = p_matnr and&lt;/P&gt;&lt;P&gt;                          mtart = P_mtart and&lt;/P&gt;&lt;P&gt;                          matkl = p_matkl and&lt;/P&gt;&lt;P&gt;                          meins = p_meins.&lt;/P&gt;&lt;P&gt;                          &lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;message 'Entered data already exists' type 'S'.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;message 'Entered data doesnt exist' type 'S'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 09:34:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming/m-p/2568220#M586155</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-30T09:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: screen programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming/m-p/2568221#M586156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The easiest way is to use a work area(wa) created as:&lt;/P&gt;&lt;P&gt;Data: wa like line of itab.&lt;/P&gt;&lt;P&gt;Afterwards you call wa from screen via get from program tooltipped button and write the textbox wa. Then click ok.&lt;/P&gt;&lt;P&gt;The fields automatically come.&lt;/P&gt;&lt;P&gt;For example the itab and wa contains the fields like, Name, SName,City,Zip.&lt;/P&gt;&lt;P&gt;Then:&lt;/P&gt;&lt;P&gt;In the PAI write:&lt;/P&gt;&lt;P&gt;itab-name = wa-name.&lt;/P&gt;&lt;P&gt;itab-sname = wa-sname.&lt;/P&gt;&lt;P&gt;itab-city = wa-city.&lt;/P&gt;&lt;P&gt;itab-zip = wa-zip..&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;The game is over now:)&lt;/P&gt;&lt;P&gt;Hope helps...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 09:35:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming/m-p/2568221#M586156</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-30T09:35:11Z</dc:date>
    </item>
  </channel>
</rss>

