<?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: Data was not getting saved to data base ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-was-not-getting-saved-to-data-base/m-p/541760#M20192</link>
    <description>&lt;P&gt;Hello Shiva,&lt;/P&gt;
  &lt;P&gt;Yes i used it in domain, but still not working.&lt;/P&gt;
  &lt;P&gt;And in another method i,e. create_employee i placed a statement &lt;/P&gt;
  &lt;P&gt;SHIFT lv_data-employee_pcode LEFT DELETING LEADING '0'.&lt;/P&gt;
  &lt;P&gt;because in web crm ui no zeros should be displayed initially wlile click on create button.&lt;/P&gt;
  &lt;P&gt;Even if I delete the above statement, the data was not storing to data base.&lt;/P&gt;</description>
    <pubDate>Tue, 12 Sep 2017 08:40:31 GMT</pubDate>
    <dc:creator>former_member456271</dc:creator>
    <dc:date>2017-09-12T08:40:31Z</dc:date>
    <item>
      <title>Data was not getting saved to data base ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-was-not-getting-saved-to-data-base/m-p/541756#M20188</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;METHOD save_employee.
  DATA : gs_empl TYPE yempl_details.
   DATA : lv_success TYPE abap_bool.
 FIELD-SYMBOLS: &amp;lt;empl_attr_n&amp;gt; LIKE LINE OF gt_employee.
   lv_success = 'X'.
READ TABLE gt_employee ASSIGNING &amp;lt;empl_attr_n&amp;gt; WITH
  KEY guid = cs_key-guid
 employee_id = cs_key-employee_id.
   CHECK sy-subrc = 0.
   CASE&amp;lt;empl_attr_n&amp;gt;-new.
     WHEN 'C' OR 'M'.
     MOVE-CORRESPONDING &amp;lt;empl_attr_n&amp;gt; TO gs_empl.
       MODIFY yempl_details FROM gs_empl.
     WHEN OTHERS.
   ENDCASE.
CALL FUNCTION 'DEQUEUE_EYEMPL_DETAILS'
 EXPORTING
   mode_yempl_details       = 'E'
   client                   = sy-mandt
   guid                     =  cs_key-guid
   employee_id              = cs_key-employee_id.
   CLEAR cs_key.
ENDMETHOD.


&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Hello Experts,&lt;/P&gt;
  &lt;P&gt;I have requirement that in sap crm web ui, when user click on 'new' button it was navigating to create view. The mobile no field was showing initially zeros. This should not be shown so for that particular field in domain level i kept conversion exit as ALPHA and also in create method i written a statement of 'delete leading zeros'. In web ui after giving all values and clicking on save the Mobile No. field which has conversion exit and leading zero that was not getting saved into data base custom table. Insted it was saving all zeros to data base. &lt;/P&gt;
  &lt;P&gt; When i debugged the API Custom class i got to know that there was problem in save_method.&lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt;Above is method for save employee details into data base.&lt;/P&gt;
  &lt;P&gt;Here data was successfully passing to &amp;lt;empl_attr_n&amp;gt;,but only one field i,e. mobile number field which was char format is not passing not to gs_empl.&lt;BR /&gt;So it was not saving to data base.&lt;/P&gt;
  &lt;P&gt;Please any suggestions.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 07:32:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-was-not-getting-saved-to-data-base/m-p/541756#M20188</guid>
      <dc:creator>former_member456271</dc:creator>
      <dc:date>2017-09-12T07:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Data was not getting saved to data base ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-was-not-getting-saved-to-data-base/m-p/541757#M20189</link>
      <description>&lt;P&gt;Hi Harish,&lt;/P&gt;
  &lt;P&gt;Are you creating a new record or updating a row which already exist in table. &lt;/P&gt;
  &lt;P&gt;~Vky Veera&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 08:11:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-was-not-getting-saved-to-data-base/m-p/541757#M20189</guid>
      <dc:creator>former_member302016</dc:creator>
      <dc:date>2017-09-12T08:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: Data was not getting saved to data base ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-was-not-getting-saved-to-data-base/m-p/541758#M20190</link>
      <description>&lt;P&gt;Hello Vignesh&lt;/P&gt;
  &lt;P&gt;I am Creating new record and Even it's not working for update also.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 08:17:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-was-not-getting-saved-to-data-base/m-p/541758#M20190</guid>
      <dc:creator>former_member456271</dc:creator>
      <dc:date>2017-09-12T08:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: Data was not getting saved to data base ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-was-not-getting-saved-to-data-base/m-p/541759#M20191</link>
      <description>&lt;P&gt;Hi Harish,&lt;/P&gt;
  &lt;P&gt;You need to convert into internal formats for particular field using FM,&lt;/P&gt;
  &lt;P&gt;CONVERSION_EXIT_ALPHA_INPUT&lt;/P&gt;
  &lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 08:36:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-was-not-getting-saved-to-data-base/m-p/541759#M20191</guid>
      <dc:creator>sivakumar_mobility</dc:creator>
      <dc:date>2017-09-12T08:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: Data was not getting saved to data base ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-was-not-getting-saved-to-data-base/m-p/541760#M20192</link>
      <description>&lt;P&gt;Hello Shiva,&lt;/P&gt;
  &lt;P&gt;Yes i used it in domain, but still not working.&lt;/P&gt;
  &lt;P&gt;And in another method i,e. create_employee i placed a statement &lt;/P&gt;
  &lt;P&gt;SHIFT lv_data-employee_pcode LEFT DELETING LEADING '0'.&lt;/P&gt;
  &lt;P&gt;because in web crm ui no zeros should be displayed initially wlile click on create button.&lt;/P&gt;
  &lt;P&gt;Even if I delete the above statement, the data was not storing to data base.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 08:40:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-was-not-getting-saved-to-data-base/m-p/541760#M20192</guid>
      <dc:creator>former_member456271</dc:creator>
      <dc:date>2017-09-12T08:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: Data was not getting saved to data base ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-was-not-getting-saved-to-data-base/m-p/541761#M20193</link>
      <description>&lt;P&gt;Please reformat your question (take your comments and question out of the ABAP code)&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 08:44:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-was-not-getting-saved-to-data-base/m-p/541761#M20193</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2017-09-12T08:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: Data was not getting saved to data base ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-was-not-getting-saved-to-data-base/m-p/541762#M20194</link>
      <description>&lt;P&gt;Hello &lt;A href="https://answers.sap.com/users/1091/sandrarossi.html"&gt;Sandra Ross,&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;Thanks for suggestion and i done what you said.&lt;BR /&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 08:53:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-was-not-getting-saved-to-data-base/m-p/541762#M20194</guid>
      <dc:creator>former_member456271</dc:creator>
      <dc:date>2017-09-12T08:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Data was not getting saved to data base ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-was-not-getting-saved-to-data-base/m-p/541763#M20195</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;MODIFY yempl_details FROM gs_empl.
if sy-subrc = 0.
commit work.
endif.

Try above. Note: By using Modify you can not insert Duplicate records. If same data exist with key ,it will not insert any new data. Check that also.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Sep 2017 10:28:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-was-not-getting-saved-to-data-base/m-p/541763#M20195</guid>
      <dc:creator>sivakumar_mobility</dc:creator>
      <dc:date>2017-09-12T10:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: Data was not getting saved to data base ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-was-not-getting-saved-to-data-base/m-p/541764#M20196</link>
      <description>&lt;P&gt;Hello Shiva,&lt;/P&gt;
  &lt;P&gt;No i didn't gave it as key.&lt;/P&gt;
  &lt;P&gt;I used two fields in web ui, one is for pin code with data type NUMC and another one is mobile no. with data type NUMC.&lt;/P&gt;
  &lt;P&gt;Here data given in pin code field is getting saved but not the mobile no.&lt;/P&gt;
  &lt;P&gt;&lt;IMG alt="" /&gt;&lt;BR /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/68701-rt2kb.jpeg" /&gt;&lt;BR /&gt;&lt;/P&gt;
  &lt;P&gt;Data base table.&lt;BR /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG alt="" /&gt;&lt;BR /&gt;&lt;/P&gt;
  &lt;P&gt;Because of using NUMC in web ui we will get initially zeros.&lt;/P&gt;
  &lt;P&gt;So i used a statements in create employee as shown below.&lt;/P&gt;
  &lt;P&gt;SHIFT lv_data-employee_moblie LEFT DELETING LEADING '0'.&lt;BR /&gt; SHIFT lv_data-employee_pcode LEFT DELETING LEADING '0'.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 11:37:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-was-not-getting-saved-to-data-base/m-p/541764#M20196</guid>
      <dc:creator>former_member456271</dc:creator>
      <dc:date>2017-09-12T11:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: Data was not getting saved to data base ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-was-not-getting-saved-to-data-base/m-p/541765#M20197</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;I think you are passing data from some external source.&lt;/P&gt;
  &lt;P&gt;So, Please use keyword &lt;STRONG&gt;condense&lt;/STRONG&gt; &amp;lt;fieldname&amp;gt;&lt;STRONG&gt; no-gaps&lt;/STRONG&gt; inside the abap program.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 11:48:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-was-not-getting-saved-to-data-base/m-p/541765#M20197</guid>
      <dc:creator>sivakumar_mobility</dc:creator>
      <dc:date>2017-09-12T11:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Data was not getting saved to data base ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-was-not-getting-saved-to-data-base/m-p/541766#M20198</link>
      <description>&lt;P&gt;Hello Siva,&lt;/P&gt;
  &lt;P&gt;Thanks for reply can you explain still clearly where to add above keyword.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 13:26:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-was-not-getting-saved-to-data-base/m-p/541766#M20198</guid>
      <dc:creator>former_member456271</dc:creator>
      <dc:date>2017-09-12T13:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: Data was not getting saved to data base ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-was-not-getting-saved-to-data-base/m-p/541767#M20199</link>
      <description>&lt;P&gt;Hi Harish,&lt;/P&gt;
  &lt;P&gt;SHIFT lv_data-employee_moblie LEFT DELETING LEADING '0'.&lt;/P&gt;
  &lt;P&gt;condense lv_data-employee_moblie.&lt;/P&gt;
  &lt;P&gt;SHIFT lv_data-employee_pcode LEFT DELETING LEADING '0'.&lt;/P&gt;
  &lt;P&gt;condense lv_data-employee_moblie.&lt;/P&gt;
  &lt;P&gt;or &lt;/P&gt;
  &lt;P&gt;You can do in final work area field .&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2017 11:01:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-was-not-getting-saved-to-data-base/m-p/541767#M20199</guid>
      <dc:creator>sivakumar_mobility</dc:creator>
      <dc:date>2017-09-13T11:01:18Z</dc:date>
    </item>
  </channel>
</rss>

