<?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: Saving data from the subscreen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-data-from-the-subscreen/m-p/5466408#M1252091</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since you have not given the name of the screen fields, consider this example-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose in a subscreen, you have screen fields MARA-MATNR &amp;amp; MARA-MATKL.&lt;/P&gt;&lt;P&gt;Now when the user enters values in these fields you want that it should reflect in your databse table dbtab.Use an internal table itab first and then modify dbtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE OK_CODE.&lt;/P&gt;&lt;P&gt;WHEN 'SAVE'.&lt;/P&gt;&lt;P&gt;IF MARA-MATNR IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;  MODIFY ITAB from MARA.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this logic for all the fields of all the subscreens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; MODIFY dbtab FROM TABLE itab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Napsterr on Apr 28, 2009 7:52 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Napsterr on Apr 28, 2009 7:59 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Apr 2009 05:44:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-28T05:44:53Z</dc:date>
    <item>
      <title>Saving data from the subscreen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-data-from-the-subscreen/m-p/5466407#M1252090</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 a tabstrip having 3 tabs in it on the main screen. The 3 tabs have 3 subscreens ,on each subscreen there are some fields which the user enters(Dialog Program). Once the user enters the data in all the subscreens there is a save button on the main screen.Please suggest how should i code so that the data from the subscreens is stored into the database table on pressing save button.I have written the code in the PAI module of the main screen but its not working.Please suggest.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2009 05:20:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/saving-data-from-the-subscreen/m-p/5466407#M1252090</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-28T05:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Saving data from the subscreen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-data-from-the-subscreen/m-p/5466408#M1252091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since you have not given the name of the screen fields, consider this example-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose in a subscreen, you have screen fields MARA-MATNR &amp;amp; MARA-MATKL.&lt;/P&gt;&lt;P&gt;Now when the user enters values in these fields you want that it should reflect in your databse table dbtab.Use an internal table itab first and then modify dbtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE OK_CODE.&lt;/P&gt;&lt;P&gt;WHEN 'SAVE'.&lt;/P&gt;&lt;P&gt;IF MARA-MATNR IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;  MODIFY ITAB from MARA.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this logic for all the fields of all the subscreens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; MODIFY dbtab FROM TABLE itab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Napsterr on Apr 28, 2009 7:52 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Napsterr on Apr 28, 2009 7:59 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2009 05:44:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/saving-data-from-the-subscreen/m-p/5466408#M1252091</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-28T05:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Saving data from the subscreen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-data-from-the-subscreen/m-p/5466409#M1252092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One solutioin is to have SAVE button on every subscreen or use the property of  tabstrip.&lt;/P&gt;&lt;P&gt;tabstip_name-ACTIVETAB = name of tabstrip button and Accordingly you can programm you logic&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2009 05:50:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/saving-data-from-the-subscreen/m-p/5466409#M1252092</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-28T05:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: Saving data from the subscreen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/saving-data-from-the-subscreen/m-p/5466410#M1252093</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 need not write any extra code for subscreen fields, it automatically gets mapped when it is attached to the main screen.&lt;/P&gt;&lt;P&gt;only thing you need to take care is declare the same name of fields in the module programs where you write the code to modify the table. that will take care automatically. and those declarations should have the same name and same data type as of in the subscreen.&lt;/P&gt;&lt;P&gt;when you click on any of the tab in the tabstrip, you will get an ok-code that value save it in another dummy variable say w_dummy type sy-ucomm.&lt;/P&gt;&lt;P&gt;When u click on save button check the value of w_dummy.&lt;/P&gt;&lt;P&gt;based on the tab clicked then you use the subscreen fields you want to ....&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Siddharth Chordia on Apr 28, 2009 8:10 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2009 06:09:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/saving-data-from-the-subscreen/m-p/5466410#M1252093</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-28T06:09:31Z</dc:date>
    </item>
  </channel>
</rss>

