<?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: clear subscreen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-subscreen/m-p/1684397#M301440</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I try to clear it using clear ZTBLCTRL_BUDGET. but when i run the transaction, give me runtime error. DYNP_COMPRESS_ILLEGAL_VALUE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The tabstrips are created in SPWizard and all the subscreens are link to a custom SAP table. I'm trying to add, delete, modify the data in the table. Is there a simple way of doing this? any help will be great appreciate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Oct 2006 15:11:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-23T15:11:47Z</dc:date>
    <item>
      <title>clear subscreen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-subscreen/m-p/1684393#M301436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how can you clear a subscreen of all the data. I have a tabstrip that has 5 subscreen. the main screen which is 100 has a primary field that will use to load the data into all the 5 subscreens. when the user wants to create a new record, the subscreens should be blank. then when they push the save button, then the record will be save. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE USER_COMMAND_0100 INPUT.&lt;/P&gt;&lt;P&gt;  CASE SY-DYNNR.&lt;/P&gt;&lt;P&gt;      CASE OK_CODE.&lt;/P&gt;&lt;P&gt;        WHEN 'SAVE'.&lt;/P&gt;&lt;P&gt;        perform check_projectnumber.&lt;/P&gt;&lt;P&gt;        perform saverecord.&lt;/P&gt;&lt;P&gt;        WHEN 'DELETE'.&lt;/P&gt;&lt;P&gt;        perform check_projectnumber.&lt;/P&gt;&lt;P&gt;        WHEN 'CHANGE'.&lt;/P&gt;&lt;P&gt;        perform check_projectnumber.&lt;/P&gt;&lt;P&gt;        WHEN 'INSERT'.&lt;/P&gt;&lt;P&gt;        perform check_projectnumber.&lt;/P&gt;&lt;P&gt;        WHEN 'CREATE'.&lt;/P&gt;&lt;P&gt;        perform add_project.&lt;/P&gt;&lt;P&gt;        when 'ENTER'.&lt;/P&gt;&lt;P&gt;        perform check_projectnumber.&lt;/P&gt;&lt;P&gt;      ENDCASE.&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;  CLEAR OK_CODE.&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " EXIT  INPUT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2006 14:44:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-subscreen/m-p/1684393#M301436</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-23T14:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: clear subscreen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-subscreen/m-p/1684394#M301437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the screen fields are not part of some structure, then you will need to clear them individually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Clear: p_fld1, p_Fld2, p_Fld3, p_fld4.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If all your fields are of a structure, then you can simple clear the structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Data: begin of xscreen,
      p_fld1 type c,
      p_fld2 type c,
      p_fld3 type c,
      p_fld4 type c,
      end of xscreen.

clear xscreen.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your USER_COMMAND, simply enter the clear statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MODULE USER_COMMAND_0100 INPUT.
CASE SY-DYNNR.
CASE OK_CODE.
WHEN 'SAVE'.
perform check_projectnumber.
perform saverecord.
WHEN 'DELETE'.
perform check_projectnumber.
WHEN 'CHANGE'.
perform check_projectnumber.
WHEN 'INSERT'.
perform check_projectnumber.
WHEN 'CREATE'.
&amp;lt;b&amp;gt;*  Insert the CLEAR STATEMENT HERE   &amp;lt;---- HERE&amp;lt;/b&amp;gt;
perform add_project.
when 'ENTER'.
perform check_projectnumber.
ENDCASE.
ENDCASE.
CLEAR OK_CODE.
ENDMODULE. " EXIT 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;&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 14:47:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-subscreen/m-p/1684394#M301437</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-10-23T14:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: clear subscreen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-subscreen/m-p/1684395#M301438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you have to clear each field individually.&lt;/P&gt;&lt;P&gt; If they are a part of the same structure, then you can clear that structure at once.&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 14:47:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-subscreen/m-p/1684395#M301438</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-23T14:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: clear subscreen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-subscreen/m-p/1684396#M301439</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;You can use CLEAR syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg: CLAER: V_FIELD1, V_STRCTURE1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is better to define all fields in 5 screens in single structure. Because it is simple to clear all the data in one instance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write the CLEAR statement after SAVE data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ramakrishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2006 14:48:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-subscreen/m-p/1684396#M301439</guid>
      <dc:creator>venkata_ramisetti</dc:creator>
      <dc:date>2006-10-23T14:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: clear subscreen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-subscreen/m-p/1684397#M301440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I try to clear it using clear ZTBLCTRL_BUDGET. but when i run the transaction, give me runtime error. DYNP_COMPRESS_ILLEGAL_VALUE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The tabstrips are created in SPWizard and all the subscreens are link to a custom SAP table. I'm trying to add, delete, modify the data in the table. Is there a simple way of doing this? any help will be great appreciate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2006 15:11:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-subscreen/m-p/1684397#M301440</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-23T15:11:47Z</dc:date>
    </item>
  </channel>
</rss>

