<?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: Why is this small code giving me error? Dynpro (screen programming ques) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-is-this-small-code-giving-me-error-dynpro-screen-programming-ques/m-p/3160473#M751838</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;Uwe, you are using gd_okcode and I used OK_CODE but the question is how do I define/declare this variable and where? If the right way is DATA ok_code TYPE sy-ucomm. then how will SAP know that this is the variable to be populated with the Function code from the screen?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more thing.. Can we paste any screenshot in the posts here (eg to illustrate a question or answer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Charles.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Dec 2007 21:10:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-18T21:10:52Z</dc:date>
    <item>
      <title>Why is this small code giving me error? Dynpro (screen programming ques)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-is-this-small-code-giving-me-error-dynpro-screen-programming-ques/m-p/3160465#M751830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote this code for dynpro and there is an error .. Could you please see this and tell me where is it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code::&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  z_sm_test_dynpro                        .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA sy_ucomm_1 TYPE sy-ucomm.&lt;/P&gt;&lt;P&gt;DATA ok_code_1 type ok_code.&lt;/P&gt;&lt;P&gt;DATA ok_code_2 type ok_code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*call the screen you want&lt;/P&gt;&lt;P&gt;CALL SCREEN 2000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*event PBO starts&lt;/P&gt;&lt;P&gt;process before output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*module for holding code of PBO&lt;/P&gt;&lt;P&gt;  MODULE status_2000 OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Gui status is set: For details doubleclick 'STATUS_1'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  SET PF-STATUS 'STATUS_1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*set the titlebar&lt;/P&gt;&lt;P&gt;  SET TITLEBAR '100'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*that is all for PBO&lt;/P&gt;&lt;P&gt;ENDMODULE.                   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*optional to tell this event below&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;PAI event starts.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;process after input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*module for holding code of PAI&lt;/P&gt;&lt;P&gt;  MODULE user_command_2000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ok_code_1 = ok_code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Question: why clear it?&lt;/P&gt;&lt;P&gt;  CLEAR ok_code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*do things based on input&lt;/P&gt;&lt;P&gt;  CASE ok_code_1.&lt;/P&gt;&lt;P&gt;          when 'BACK' or 'EXIT' or 'CANCEL'.&lt;/P&gt;&lt;P&gt;            leave program.&lt;/P&gt;&lt;P&gt;          when others.&lt;/P&gt;&lt;P&gt;            output = save_ok.&lt;/P&gt;&lt;P&gt;        endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*thats all for PAI&lt;/P&gt;&lt;P&gt;    ENDMODULE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Charles.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2007 21:44:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-is-this-small-code-giving-me-error-dynpro-screen-programming-ques/m-p/3160465#M751830</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-17T21:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: Why is this small code giving me error? Dynpro (screen programming ques)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-is-this-small-code-giving-me-error-dynpro-screen-programming-ques/m-p/3160466#M751831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, it would sure help if you would tell us the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OK - I think I see. You have to put the PAI and the PBO statments in the screen, not the report. If you just double click on the screen number, you will be able to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Dec 17, 2007 4:57 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2007 21:52:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-is-this-small-code-giving-me-error-dynpro-screen-programming-ques/m-p/3160466#M751831</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-17T21:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: Why is this small code giving me error? Dynpro (screen programming ques)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-is-this-small-code-giving-me-error-dynpro-screen-programming-ques/m-p/3160467#M751832</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 only error I found is this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the type OK_CODE does not exist in your program. you will need to declare OK_CODE in the screen first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use the following declaration in ur program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: ok_code_1 type sy-ucomm,&lt;/P&gt;&lt;P&gt;        ok_code type sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;in PAI.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ok_code_1 = ok_code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case ok_code_1.&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;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: OK_CODE should be declared inthe screen element list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be more clear if you could mail the details of the error.&lt;/P&gt;&lt;P&gt;&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;Vamsi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2007 22:03:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-is-this-small-code-giving-me-error-dynpro-screen-programming-ques/m-p/3160467#M751832</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-17T22:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: Why is this small code giving me error? Dynpro (screen programming ques)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-is-this-small-code-giving-me-error-dynpro-screen-programming-ques/m-p/3160468#M751833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;copy and paste the fo.. code in se38.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA sy_ucomm_1 TYPE sy-ucomm.&lt;/P&gt;&lt;P&gt;DATA ok_code_1 type ok_code.&lt;/P&gt;&lt;P&gt;DATA ok_code_2 type ok_code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*call the screen you want&lt;/P&gt;&lt;P&gt;CALL SCREEN 2000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*event PBO starts&lt;/P&gt;&lt;P&gt;*process before output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*module for holding code of PBO&lt;/P&gt;&lt;P&gt;MODULE status_2000 OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Gui status is set: For details doubleclick 'STATUS_1'&lt;/P&gt;&lt;P&gt;SET PF-STATUS 'STATUS_1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*set the titlebar&lt;/P&gt;&lt;P&gt;SET TITLEBAR '100'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*that is all for PBO&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*optional to tell this event below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*PAI event starts.&lt;/P&gt;&lt;P&gt;*process after input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*module for holding code of PAI&lt;/P&gt;&lt;P&gt;MODULE user_command_2000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ok_code_1 = sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Question: why clear it?&lt;/P&gt;&lt;P&gt;*CLEAR ok_code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*do things based on input&lt;/P&gt;&lt;P&gt;CASE ok_code_1.&lt;/P&gt;&lt;P&gt;when 'BACK' or 'EXIT' or 'CANCEL'.&lt;/P&gt;&lt;P&gt;leave program.&lt;/P&gt;&lt;P&gt;when others.&lt;/P&gt;&lt;P&gt;*output = save_ok.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*thats all for PAI&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after this double click on screen 2000. and uncomment modules, active it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and again come back to se38 and double click on pf_status, set req. tools there and activate it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2007 23:20:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-is-this-small-code-giving-me-error-dynpro-screen-programming-ques/m-p/3160468#M751833</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-17T23:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: Why is this small code giving me error? Dynpro (screen programming ques)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-is-this-small-code-giving-me-error-dynpro-screen-programming-ques/m-p/3160469#M751834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;do this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA sy_ucomm_1 TYPE sy-ucomm.&lt;/P&gt;&lt;P&gt;DATA ok_code_1 type sy-ucomm.&lt;/P&gt;&lt;P&gt;DATA ok_code_2 type sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u get error because ok_code is not an abap dictionary type..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2007 05:02:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-is-this-small-code-giving-me-error-dynpro-screen-programming-ques/m-p/3160469#M751834</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-18T05:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: Why is this small code giving me error? Dynpro (screen programming ques)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-is-this-small-code-giving-me-error-dynpro-screen-programming-ques/m-p/3160470#M751835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this ques.. Kamini above said that the element OK_code is not a data dictionary type so you cannot define variable of this type. But it is an element in the dictionary, so it should work.. eg MATNR is an element but still the code below works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*code::&lt;/P&gt;&lt;P&gt;REPORT  z_test1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA a type MATNR.&lt;/P&gt;&lt;P&gt;a = '2242'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: 'a holds', a.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Charles.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2007 19:35:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-is-this-small-code-giving-me-error-dynpro-screen-programming-ques/m-p/3160470#M751835</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-18T19:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: Why is this small code giving me error? Dynpro (screen programming ques)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-is-this-small-code-giving-me-error-dynpro-screen-programming-ques/m-p/3160471#M751836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Charles,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Here u r declaring A type matnr.&lt;/P&gt;&lt;P&gt;Matnr is a data element which is type CHAR with length 18.&lt;/P&gt;&lt;P&gt;so ur code is  same as A type C.and ur moving 2242  into A.&lt;/P&gt;&lt;P&gt;after that u r printing.&lt;/P&gt;&lt;P&gt;I think u got my point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Naveen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2007 19:45:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-is-this-small-code-giving-me-error-dynpro-screen-programming-ques/m-p/3160471#M751836</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-18T19:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: Why is this small code giving me error? Dynpro (screen programming ques)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-is-this-small-code-giving-me-error-dynpro-screen-programming-ques/m-p/3160472#M751837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Charles&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The flow logic of a standard screen looks like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PROCESS BEFORE OUTPUT.
  MODULE STATUS_0100.
*
PROCESS AFTER INPUT.
  MODULE USER_COMMAND_0100.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The modules can be coded within your report again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A typical USER_COMMAND module looks like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  TRANSLATE gd_okcode TO UPPER CASE.


  go_grid-&amp;gt;check_changed_data( ).

  CASE gd_okcode.
    WHEN 'BACK' OR
         'END'  OR
         'CANC'.
      SET SCREEN 0. LEAVE SCREEN.



    WHEN OTHERS.
  ENDCASE.


  PERFORM handle_changed_data.
  PERFORM validate_output.
  CALL METHOD go_grid-&amp;gt;refresh_table_display
*      EXPORTING
*        IS_STABLE      =
*        I_SOFT_REFRESH =
    EXCEPTIONS
      finished       = 1
      OTHERS         = 2
          .
  IF sy-subrc &amp;lt;&amp;gt; 0.
*     MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.


  CLEAR: gd_okcode.  " Define as TYPE sy-ucomm (I prefer TYPE ui_func).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the end of the USER_COMMAND module we always clear the ok_code because we do not want to have a preset ok_code at the next display of the 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;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2007 19:53:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-is-this-small-code-giving-me-error-dynpro-screen-programming-ques/m-p/3160472#M751837</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-12-18T19:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: Why is this small code giving me error? Dynpro (screen programming ques)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-is-this-small-code-giving-me-error-dynpro-screen-programming-ques/m-p/3160473#M751838</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;Uwe, you are using gd_okcode and I used OK_CODE but the question is how do I define/declare this variable and where? If the right way is DATA ok_code TYPE sy-ucomm. then how will SAP know that this is the variable to be populated with the Function code from the screen?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more thing.. Can we paste any screenshot in the posts here (eg to illustrate a question or answer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Charles.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2007 21:10:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-is-this-small-code-giving-me-error-dynpro-screen-programming-ques/m-p/3160473#M751838</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-18T21:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Why is this small code giving me error? Dynpro (screen programming ques)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-is-this-small-code-giving-me-error-dynpro-screen-programming-ques/m-p/3160474#M751839</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;Use this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : gd_okcode like sy-ucomm.   "&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;gd_okcode = sy-ucomm.               "&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE gd_okcode.&lt;/P&gt;&lt;P&gt;    WHEN 'BACK' OR&lt;/P&gt;&lt;P&gt;         'END'  OR&lt;/P&gt;&lt;P&gt;         'CANC'.&lt;/P&gt;&lt;P&gt;      SET SCREEN 0. LEAVE SCREEN.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    WHEN OTHERS.&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2007 21:16:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-is-this-small-code-giving-me-error-dynpro-screen-programming-ques/m-p/3160474#M751839</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-12-18T21:16:00Z</dc:date>
    </item>
  </channel>
</rss>

