<?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: Field becomes blank when update statement is executed in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-becomes-blank-when-update-statement-is-executed/m-p/9038314#M1700868</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;The field curr_date should be a key of the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;swanand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Oct 2012 15:28:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-10-26T15:28:36Z</dc:date>
    <item>
      <title>Field becomes blank when update statement is executed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-becomes-blank-when-update-statement-is-executed/m-p/9038312#M1700866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;I am working in SAP Netweaver PI (Process Integration). I am facing an issue while writing a function module in ECC.&lt;/P&gt;&lt;P&gt;The function module updates a database table in ECC system (not PI system).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline; color: #0000ff;"&gt;&lt;STRONG&gt;TABLE:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/150712" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline; color: #0000ff;"&gt;&lt;STRONG&gt;FUNCTION MODULE:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Import parameters of function module:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;IF_NAME&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TYPE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CHAR_02 (Character of length 2)&lt;/P&gt;&lt;P&gt;SENDER_DATE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TYPE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CHAR_08&amp;nbsp;&amp;nbsp; (Character of length &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Export parameter:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;V_OUTPUT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TYPE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;CODE:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;FUNCTION ZFILE_COUNTER.&lt;BR /&gt; &lt;SPAN class="L0S31"&gt;*"----------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="L0S31"&gt;*"*"Local Interface:&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="L0S31"&gt;*"&amp;nbsp; IMPORTING&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="L0S31"&gt;*"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VALUE(IF_NAME) TYPE&amp;nbsp; CHAR_02&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="L0S31"&gt;*"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VALUE(SENDER_DATE) TYPE&amp;nbsp; CHAR0008&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="L0S31"&gt;*"&amp;nbsp; EXPORTING&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="L0S31"&gt;*"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VALUE(V_OUTPUT) TYPE&amp;nbsp; INT1&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="L0S31"&gt;*"----------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;TABLES &lt;/SPAN&gt;zfile_counter.&lt;BR /&gt; &lt;SPAN class="L0S52"&gt;TYPES:&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;BEGIN &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;ty_zfile_counter,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mandt &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;zfile_counter&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;mandt,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if_name &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;zfile_counter&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;if_name,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cntr_value &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;zfile_counter&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;cntr_value,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; curr_date &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;zfile_counter&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;curr_date,&lt;BR /&gt; &lt;SPAN class="L0S52"&gt;END &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF&amp;nbsp; &lt;/SPAN&gt;ty_zfile_counter.&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN class="L0S52"&gt;DATA: &lt;/SPAN&gt;wa_zfile_counter&amp;nbsp; &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;ty_zfile_counter.&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN class="L0S52"&gt;CLEAR: &lt;/SPAN&gt;wa_zfile_counter.&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN class="L0S52"&gt;SELECT &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;SINGLE &lt;/SPAN&gt;mandt if_name cntr_value curr_date&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;zfile_counter&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;wa_zfile_counter&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WHERE &lt;/SPAN&gt;if_name &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;if_name.&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN class="L0S52"&gt;IF &lt;/SPAN&gt;sy&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;subrc &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;0.&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;IF &lt;/SPAN&gt;sender_date &amp;lt;&amp;gt; wa_zfile_counter&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;curr_date.&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_zfile_counter&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;cntr_value &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'0'.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_zfile_counter&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;curr_date &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;sender_date.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;UPDATE &lt;/SPAN&gt;ZFILE_COUNTER &lt;SPAN class="L0S52"&gt;from &lt;/SPAN&gt;wa_zfile_counter.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;COMMIT &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;WORK.&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;ELSE.&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; v_output &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;wa_zfile_counter&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;cntr_value + &lt;SPAN class="L0S32"&gt;1.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S32"&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;UPDATE &lt;/SPAN&gt;zfile_counter &lt;SPAN class="L0S52"&gt;SET &lt;/SPAN&gt;cntr_value &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;v_output&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WHERE &lt;/SPAN&gt;if_name &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;if_name.&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;IF &lt;/SPAN&gt;sy&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;subrc &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;0.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;commit &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;WORK.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;endif.&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN class="L0S52"&gt;ENDIF.&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="L0S52"&gt;ENDIF.&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="L0S52"&gt;ENDFUNCTION.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;*********************************************************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PI will call the above function module whenever it receives a message from system, say system-A.&lt;/P&gt;&lt;P&gt;The import parameters of FM, will be sent from PI, when the function module is called in PI using RFC lookup feature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF_NAME is always a constant = "PI" (There is only going to be one record in the DB)&lt;/P&gt;&lt;P&gt;SENDER_DATE is the current date (i.e) date when PI calls the function module. This is sent as an 8 char number (eg: "20121026" for 26-Oct-2012)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, the SENDER_DATE is just considered as a character string here and not as data-type: date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline; color: #0000ff;"&gt;&lt;STRONG&gt;AIM OF FN.MODULE:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The aim of the function module is to return a counter value, incremented by 1 each time the fn. module is called, which will be used in PI to maintain count of files coming in, during a single day. BUT, when a message comes on the next day, the counter value should be reset to 0 and start again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline; color: #0000ff;"&gt;&lt;STRONG&gt;LOGIC:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;PI sends the current date when the first file comes into PI. This will be updated in field "CURR_DATE" of table in the ECC system by the function module. When next message comes into PI, again the fn. module is called and PI sends current date. This is checked with the value already there in CURR_DATE. If, there is a match, (it means the second file was also received on same date), the counter value is increased by 1 and returned. Like this the process continues.&amp;nbsp; So, during any given time of the day, the total number of files received by PI will be stored in the table. &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;HOWEVER&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;When a message comes to PI on the next day, the date sent by PI for the function call (SENDER_DATE) will not be equal to CURR_DATE of the DB table. (Because, CURR_DATE will have previous day's date) So, the counter value will be reset to "0" and the field CURR_DATE of the table will be updated with the value of SENDER_DATE.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG style="color: #0000ff;"&gt;ISSUE:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I filled the table like this &lt;STRONG&gt;before first execution&lt;/STRONG&gt; of function module: (random values to prevent the first SELECT query from failing)&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/150733" /&gt; (CURR_DATE = 25-Oct-2012)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I called the function module from PI, the first time, the table got updated as below:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/150797" /&gt; (SENDER_DATE = 20121026) &lt;EM&gt;**refer to PI trace below**&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The counter value was correctly reset to "0" (since CURR_DATE does not match with SENDER_DATE), &lt;STRONG style="color: #ff0000;"&gt;but the date string did not get updated in CURR_DATE. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the second file came in to PI and function module was called second time, the table was updated like this:&lt;/P&gt;&lt;P&gt;&lt;IMG class="jiveImage" src="https://community.sap.com/" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, obviously, there is some issue with CURR_DATE field but I cant find it. The data types are all the same. &lt;/P&gt;&lt;P&gt;The value passed by PI is STRING, the type of the import parameter, SENDER_DATE is CHAR and the type of the field CURR_DATE of DB table is also CHAR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline; color: #0000ff;"&gt;&lt;STRONG&gt;EXTRACT FROM PI TRACE:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/150799" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PI also seems to be sending the correct value while calling the RFC. Any suggestions to remedy this are most welcome !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;Manoj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2012 13:13:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-becomes-blank-when-update-statement-is-executed/m-p/9038312#M1700866</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-26T13:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: Field becomes blank when update statement is executed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-becomes-blank-when-update-statement-is-executed/m-p/9038313#M1700867</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 MODIFY statement instead of &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;UPDATE ZFILE_COUNTER &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;from &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;wa_zfile_counter.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The statement MODIFY updates an existing database entry and inserts a new one if there is no existing such entry. No need to manually maintain data in the table as you are doing in case of UPDATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Anubhav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2012 14:09:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-becomes-blank-when-update-statement-is-executed/m-p/9038313#M1700867</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-26T14:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: Field becomes blank when update statement is executed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-becomes-blank-when-update-statement-is-executed/m-p/9038314#M1700868</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;The field curr_date should be a key of the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;swanand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2012 15:28:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-becomes-blank-when-update-statement-is-executed/m-p/9038314#M1700868</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-26T15:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Field becomes blank when update statement is executed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-becomes-blank-when-update-statement-is-executed/m-p/9038315#M1700869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Anubhav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The requirement is to have only one record in the table. The same record should be overwritten each time the FM is called. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the field CURR_DATE alone becomes blank instead of getting updated with the value of SENDER_DATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reg,&lt;/P&gt;&lt;P&gt;Manoj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2012 11:00:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-becomes-blank-when-update-statement-is-executed/m-p/9038315#M1700869</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-29T11:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: Field becomes blank when update statement is executed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-becomes-blank-when-update-statement-is-executed/m-p/9038316#M1700870</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;First of all, thanks for having descibed your issue so clearly!! It is not so often that issues are so well presented in here &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1050/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You code is ok to me... nothing to change here! If you test the function from ECC directly, this will work like a charm...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I guess the problem relies in the PI declaration type... Have you tried changing it to a char type instead of string? or the other way around use a type string in your table and function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Manu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2012 18:11:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-becomes-blank-when-update-statement-is-executed/m-p/9038316#M1700870</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-29T18:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: Field becomes blank when update statement is executed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-becomes-blank-when-update-statement-is-executed/m-p/9038317#M1700871</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;You can refer to SAP Note 730870 - FAQ XI 3.0/7.0/7.1/7.11/7.2/7.3 RFC Adapter see Question 24 below:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;STRONG&gt;Q 24:&lt;/STRONG&gt;&amp;nbsp; It seems that the RFC-Adapter does not convert every parameter of the function module between native RFC and RFC-XML. It looks like some parameter is lost or empty. Why does this happen? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A: The conversion between native RFC and RFC-XML is done by using the metadata provided by the metadata repository, which is an SAP-system. Before the first call to one function module it's metadata is retrived from the SAP-system and stored in a local RFC-Adapter cache memory. Each successive call to the same function module uses this cache which is much faster. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If the signature of the function module is changed in the SAP-system&amp;nbsp; this change also has to be done in the RFC-Adapter's cache memory. The possible solutions do accomplish this are described in Q5. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; In case of an RFC receiver channel, the called function module in the&amp;nbsp; SAP system can be debuged with the ABAP debugger. This way the actual&amp;nbsp; used parameter values of the request and the response can be viewed in&amp;nbsp; the ABAP debugger. Note 668256 describes the procedures for ABAP remote debugging. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; See also Q 18 which is related to this one.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2012 07:16:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-becomes-blank-when-update-statement-is-executed/m-p/9038317#M1700871</guid>
      <dc:creator>markangelo_dihiansan</dc:creator>
      <dc:date>2012-10-30T07:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: Field becomes blank when update statement is executed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-becomes-blank-when-update-statement-is-executed/m-p/9038318#M1700872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After checking with the help of external debugger, I found that though in PI log (pasted in my post) it shows that the date value (SENDER_DATE) is being sent by PI with some value, when the RFC is actually called, this value goes missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am checking why this data loss occurs. Will update soon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manoj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 08:22:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-becomes-blank-when-update-statement-is-executed/m-p/9038318#M1700872</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-31T08:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Field becomes blank when update statement is executed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-becomes-blank-when-update-statement-is-executed/m-p/9038319#M1700873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much! I referred to the above note. The solution was quite simple:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/152000" /&gt;&lt;IMG class="jiveImage" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Earlier, I had changed the data-type of SENDER_DATE several times while debugging. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also had re-imported&amp;nbsp; the function module into PI's Integration Repository, every time I changed it in ECC. However, this would have updated only the RFC definition in the metadata repository and the cache would have still been containing the old definition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As suggested in the note, I changed the &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;communication channel&lt;/STRONG&gt;&lt;/SPAN&gt; involved as well and re-activated it. This cleared the metadata cache. After this, when the FM was called from PI, the value of SENDER_DATE was propagated to ECC correctly, since the newer definition of the FM would have been loaded into the cache !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again Mark!&lt;/P&gt;&lt;P&gt;Manoj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 10:17:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-becomes-blank-when-update-statement-is-executed/m-p/9038319#M1700873</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-31T10:17:37Z</dc:date>
    </item>
  </channel>
</rss>

