<?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/1648320#M288252</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, here is steps for simply screen.  IN your report program add this statement .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;report zrich_0001.

data: ok_code type sy-ucomm.

  start-of-selection.

  call screen 100.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Double click on the "100" in the call screen statement. SYstem will ask if you want to create, say yes,  give description of screen on the next screen,  there should be a tab for screen elements,  add OK_CODE to the ok_code type field, this will handle the FCODES from the screen.  Click on the screen flow tab, and uncomment the the module statements for STATUS and USER-COMMAND.  Double click on each, system will ask if you want to create them, in the dialog choose your program to add the module to.  Once both have been created in the ABAP program, you can continue to the layout, click the layout button the application toolbar.&lt;/P&gt;&lt;P&gt;Screen painter should then fire and here is where you can add your UI elements,  Click the UI element for text element and put in the screen, add some text to this UI element. Save and activate all and run your program, you should see the screen.  You have not yet created the gui status so there is no function codes for you to handle, exit the program by putting "/N" in the transaction code box at the top of the sapgui.  Once you get this far we can continue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lite Reading....&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/e4/2adbef449911d1949c0000e8353423/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/e4/2adbef449911d1949c0000e8353423/frameset.htm&lt;/A&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>Thu, 19 Oct 2006 22:12:48 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2006-10-19T22:12:48Z</dc:date>
    <item>
      <title>SCREEN PROGRAMMING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming/m-p/1648319#M288251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;   Can anybody give me a small example of how to create screens step by step...&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;vijaya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 22:05:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming/m-p/1648319#M288251</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T22:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: SCREEN PROGRAMMING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming/m-p/1648320#M288252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, here is steps for simply screen.  IN your report program add this statement .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;report zrich_0001.

data: ok_code type sy-ucomm.

  start-of-selection.

  call screen 100.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Double click on the "100" in the call screen statement. SYstem will ask if you want to create, say yes,  give description of screen on the next screen,  there should be a tab for screen elements,  add OK_CODE to the ok_code type field, this will handle the FCODES from the screen.  Click on the screen flow tab, and uncomment the the module statements for STATUS and USER-COMMAND.  Double click on each, system will ask if you want to create them, in the dialog choose your program to add the module to.  Once both have been created in the ABAP program, you can continue to the layout, click the layout button the application toolbar.&lt;/P&gt;&lt;P&gt;Screen painter should then fire and here is where you can add your UI elements,  Click the UI element for text element and put in the screen, add some text to this UI element. Save and activate all and run your program, you should see the screen.  You have not yet created the gui status so there is no function codes for you to handle, exit the program by putting "/N" in the transaction code box at the top of the sapgui.  Once you get this far we can continue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lite Reading....&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/e4/2adbef449911d1949c0000e8353423/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/e4/2adbef449911d1949c0000e8353423/frameset.htm&lt;/A&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>Thu, 19 Oct 2006 22:12:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming/m-p/1648320#M288252</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-10-19T22:12: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/1648321#M288253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich&lt;/P&gt;&lt;P&gt;   I finished till that point..can we further..&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;vijaya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 22:27:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming/m-p/1648321#M288253</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T22:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: SCREEN PROGRAMMING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming/m-p/1648322#M288254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, next step is to create the gui status .  Your ABAP program should now look like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

REPORT ZRICH_0001 .

data: ok_code type sy-ucomm.

start-of-selection.

  call screen 100.
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  STATUS_0100  OUTPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE STATUS_0100 OUTPUT.
*  SET PF-STATUS 'xxxxxxxx'.
*  SET TITLEBAR 'xxx'.

ENDMODULE.                 " STATUS_0100  OUTPUT
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  USER_COMMAND_0100  INPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE USER_COMMAND_0100 INPUT.

ENDMODULE.                 " USER_COMMAND_0100  INPUT



&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in the PBO Module....  Uncomment the SET PF-STATUS line. And replace the 'xxxxx' with '0100'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MODULE STATUS_0100 OUTPUT.
&amp;lt;b&amp;gt;  SET PF-STATUS '0100'.&amp;lt;/b&amp;gt;
*  SET TITLEBAR 'xxx'.

ENDMODULE.                 " STATUS_0100  OUTPUT&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now double click on the '0100' in that line.  System will ask if you want to create the status, say yes.  In the dialog enter short text, choose "online status".  Click green check.  Now on the next screen, drop down the function key section.  You must recoginze the icons in the standard toolbar section, for the "Green Arrow, BACK" icon,  enter the word BACK,  for the yellow, enter EXIT, for the red, enter CANCEL.  Save and activate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next step is handle these FCodes in the PAI inside the USER_COMMAND MOdule.  You can enter the coding like this.&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;PRE&gt;&lt;CODE&gt;

MODULE USER_COMMAND_0100 INPUT.

case ok_code.
  when 'BACK' or 'EXIT' or 'CANCEL'.
    clear ok_code.
    leave program.
    
endcase.

ENDMODULE.                 " USER_COMMAND_0100  INPUT

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doing all of this will allow you to leave the program using the standard buttons.  This is the most basis screen programming, of course, it gets more exiting as it gets more complex.&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>Mon, 23 Oct 2006 13:02:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming/m-p/1648322#M288254</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-10-23T13:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: SCREEN PROGRAMMING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming/m-p/1648323#M288255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Durga,&lt;/P&gt;&lt;P&gt;  YOu can go to ABAPDOCU Transaction if you haven't done that already.&lt;/P&gt;&lt;P&gt;Open the node:&lt;/P&gt;&lt;P&gt;ABAP User Dialogs-&amp;gt;Screens-&amp;gt;Processing Screens.&lt;/P&gt;&lt;P&gt;YOu would find good sample programs.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2006 13:13:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming/m-p/1648323#M288255</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-23T13:13:08Z</dc:date>
    </item>
  </channel>
</rss>

