<?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 Inserting records in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-inserting-records/m-p/6027327#M1348741</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Richa ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create an work area of the type Z table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then use the following code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF ( SY-UCOMM = 'F_SUBMIT').
wa-field=screenname .
Modify ztable from wa .
if sy-subrc = 4 .
mesasge "successful " type i .
else .
message "unsuccesful" type w.
endif.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have written the same code and still facing the problem then :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check whether screen names are correct .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Debug the program and  see whether the values are coming in the internal table or not .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will surely help .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aditi  Wason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Aug 2009 12:40:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-20T12:40:30Z</dc:date>
    <item>
      <title>Problem in Inserting records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-inserting-records/m-p/6027323#M1348737</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;&lt;/P&gt;&lt;P&gt;In my program i need to save some records. But when i click on submit, records are not getting saved&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Richa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2009 12:10:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-inserting-records/m-p/6027323#M1348737</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-20T12:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Inserting records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-inserting-records/m-p/6027324#M1348738</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;check if the screen element name is same what you are checking with okcode or sy-ucomm.&lt;/P&gt;&lt;P&gt;Hope it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nidhi Kothiyal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2009 12:13:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-inserting-records/m-p/6027324#M1348738</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-20T12:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Inserting records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-inserting-records/m-p/6027325#M1348739</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;What do you mean by save records in program ?&lt;/P&gt;&lt;P&gt;Do you want your records to be saved in Ztable through dialog program using some screen.&lt;/P&gt;&lt;P&gt;Then you can do like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CASE sy-ucomm.
 WHEN 'F_SUBMIT'.
  MOVE Ztable-field1 TO wa_table-field1.
  MOVE Ztable-field2 TO wa_table-field2.
  MOVE Ztable-field3 TO wa_table-field3.

  INSERT Ztable FROM wa_table.
  IF sy-subrc = 0.
    MESSAGE 'Successfully saved' TYPE 'I'.
  ENDIF.
ENDCASE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Sri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2009 12:17:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-inserting-records/m-p/6027325#M1348739</guid>
      <dc:creator>sridhar_meesala</dc:creator>
      <dc:date>2009-08-20T12:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Inserting records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-inserting-records/m-p/6027326#M1348740</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;Write this in the PAI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
module save_data.
if sy-ucomm eq 'SUBMIT'.
  screen-field1 = wa_table-field1.
  screen-field2 = wa_table-field2.
  insert dbtable from wa_table.
endif.
endmodule.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2009 12:27:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-inserting-records/m-p/6027326#M1348740</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-20T12:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Inserting records</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-inserting-records/m-p/6027327#M1348741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Richa ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create an work area of the type Z table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then use the following code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF ( SY-UCOMM = 'F_SUBMIT').
wa-field=screenname .
Modify ztable from wa .
if sy-subrc = 4 .
mesasge "successful " type i .
else .
message "unsuccesful" type w.
endif.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have written the same code and still facing the problem then :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check whether screen names are correct .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Debug the program and  see whether the values are coming in the internal table or not .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will surely help .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aditi  Wason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2009 12:40:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-inserting-records/m-p/6027327#M1348741</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-20T12:40:30Z</dc:date>
    </item>
  </channel>
</rss>

