<?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 screen painter in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-screen-painter/m-p/5229495#M1208935</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use below approch (syntax may not be correct as I have typed it in notepad but use it as guide line)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;***In screen flow logic

PROCESS AFTER INPUT.
  module cancel at exit-command.
  chain.
    field: zproject_details-originator,
	   zproject_details-proj_type.
    module check_data on chain-request.	   
  endchain.
  
  module user_command_002.

***In abap code

module cancel input.
  leave program.
endmodule.

module check_data input.
  if zproject_details-originator is initial.
    message exxxx "throw error message here
  endif. 

  if zproject_details-proj_type is initial.
    message exxxx "throw error message here
  endif. 	
endmodule.

module user_command_002.
  save_ok = ok_code.  "good practice to save okcode
  clear ok_code.

  case save_ok.
    when 'save' " using constant for fcode here is better 
      perform save_data. "make it moduler instead of writing whole code in case statement
    
  enscase.
endmodule.

form save_data.
 ** do some additional checks if required before saving

 update zproject_details from zproject_details. " update database table here from work area contents
endform.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vishal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Feb 2009 12:48:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-11T12:48:38Z</dc:date>
    <item>
      <title>problem in screen painter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-screen-painter/m-p/5229494#M1208934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    i have two screens, in screen 1 i manually enter the project_no(input output field) and &lt;/P&gt;&lt;P&gt;    press the DISPLAY button to call screen 2. in screen  2, i have drop down list boxes,&lt;/P&gt;&lt;P&gt;    input output fields and radio buttons. all these elements are filled with information that are&lt;/P&gt;&lt;P&gt;    retrieved from a transparent table zproject_details with project_no as its primary key...&lt;/P&gt;&lt;P&gt;    this screen allows changes to be made in the info... thus if i change some value in this screen,&lt;/P&gt;&lt;P&gt;    and press the SAVE button, then the change is updated in the table zproject_details... &lt;/P&gt;&lt;P&gt;    the problem is, if i select another the value from dropdown list box the table gets updated,&lt;/P&gt;&lt;P&gt;                          if i select another radio button then also the table gets updated &lt;/P&gt;&lt;P&gt;                          but when i manually change  the value from input output  box, table does not change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   if the list boxes are originator and proj_type and if func_code of radio buttons is rad.&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;in pbo of screen 002.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: up_originator(35) type c,&lt;/P&gt;&lt;P&gt;        up_proj_type(15) type c,&lt;/P&gt;&lt;P&gt;        up_radio(1) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in pai of screen 002.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case ok_code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'originator'.&lt;/P&gt;&lt;P&gt;       move zproject_details-originator to up_originator.&lt;/P&gt;&lt;P&gt;       &lt;/P&gt;&lt;P&gt;when 'proj_type'.&lt;/P&gt;&lt;P&gt;       move zproject_details-proj_type to up_proj_type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'rad'.&lt;/P&gt;&lt;P&gt;        if radio1 = 'x'.&lt;/P&gt;&lt;P&gt;           up_radio = 'A'.&lt;/P&gt;&lt;P&gt;           clear : radio2.&lt;/P&gt;&lt;P&gt;        elseif radio2 = 'x'.&lt;/P&gt;&lt;P&gt;           up_radio = 'B'.&lt;/P&gt;&lt;P&gt;           clear: radio1.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'save'.&lt;/P&gt;&lt;P&gt;       if not up_originator is initial.&lt;/P&gt;&lt;P&gt;             update zproject_details set originator  = up_originator.&lt;/P&gt;&lt;P&gt;             clear up_originator.&lt;/P&gt;&lt;P&gt;       endif.&lt;/P&gt;&lt;P&gt;       if not up_proj_type is initial.&lt;/P&gt;&lt;P&gt;             update zproject_details set proj_type  = up_proj_type.&lt;/P&gt;&lt;P&gt;             clear up_proj_type.&lt;/P&gt;&lt;P&gt;       endif.&lt;/P&gt;&lt;P&gt;       if not up_radio is initial.&lt;/P&gt;&lt;P&gt;             update zproject_details set radio  = up_radio.&lt;/P&gt;&lt;P&gt;             clear up_radio.&lt;/P&gt;&lt;P&gt;       endif.&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;this is the logic i used, but i cannot do no_days(input output field) as&lt;/P&gt;&lt;P&gt;when 'no_days'.&lt;/P&gt;&lt;P&gt;       ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz help me out...&lt;/P&gt;&lt;P&gt;thx...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 09:52:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-screen-painter/m-p/5229494#M1208934</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-11T09:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: problem in screen painter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-screen-painter/m-p/5229495#M1208935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use below approch (syntax may not be correct as I have typed it in notepad but use it as guide line)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;***In screen flow logic

PROCESS AFTER INPUT.
  module cancel at exit-command.
  chain.
    field: zproject_details-originator,
	   zproject_details-proj_type.
    module check_data on chain-request.	   
  endchain.
  
  module user_command_002.

***In abap code

module cancel input.
  leave program.
endmodule.

module check_data input.
  if zproject_details-originator is initial.
    message exxxx "throw error message here
  endif. 

  if zproject_details-proj_type is initial.
    message exxxx "throw error message here
  endif. 	
endmodule.

module user_command_002.
  save_ok = ok_code.  "good practice to save okcode
  clear ok_code.

  case save_ok.
    when 'save' " using constant for fcode here is better 
      perform save_data. "make it moduler instead of writing whole code in case statement
    
  enscase.
endmodule.

form save_data.
 ** do some additional checks if required before saving

 update zproject_details from zproject_details. " update database table here from work area contents
endform.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vishal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 12:48:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-screen-painter/m-p/5229495#M1208935</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-11T12:48:38Z</dc:date>
    </item>
  </channel>
</rss>

