<?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>Question Re: Parameters for upload_delete event in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/parameters-for-upload-delete-event/qaa-p/13843607#M4874450</link>
    <description>&lt;P&gt;The table lists the required parameters (all PK columns) and some of the optional named parameters. Other &lt;A href="http://dcx.sybase.com/index.html#sa160/en/mlserver/script-parameters-writing-synch.html"&gt;named parameters&lt;/A&gt;, including non-PK columns, can also be used.&lt;/P&gt;
&lt;P&gt;FYI, the {ml o.} syntax is only applicable to the upload_update event.&lt;/P&gt;</description>
    <pubDate>Tue, 19 Aug 2014 12:36:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-08-19T12:36:42Z</dc:date>
    <item>
      <title>Parameters for upload_delete event</title>
      <link>https://community.sap.com/t5/technology-q-a/parameters-for-upload-delete-event/qaq-p/13843606</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I wonder what the exact parameters for the upload-delete table event are? By accident I coded (generated) an upload-delete event like follows:
&lt;/P&gt;&lt;LI-CODE lang="sql"&gt;
DECLARE 
    lv_new lfv_del_pos%ROWTYPE; 
BEGIN
    lv_new.avisnr   :={ml r.avisnr};     -- PK
    lv_new.aviscode :={ml r.aviscode};   -- PK
    lv_new.itemnr   :={ml r.itemnr};     -- PK
    lv_new.amount   :={ml r.amount};     -- NOT PK
    ...
END; 
&lt;/LI-CODE&gt;
That runs without any problem (what makes me glad). The column &lt;STRONG&gt;amount&lt;/STRONG&gt; isn't part of the primary key of the table neither in the consolidated nor in the remote database. 
But the documentation seems to say only primary key columns are allowed as parameters for this event:
&lt;A href="http://dcx.sybase.com/index.html#sa160/en/mlserver/upload-delete-ml-scriptsref.html*d5e19662" target="_blank"&gt;upload_delete table event&lt;/A&gt; 
Of course I don't need the non-pk parameter but I wonder if the doc is wrong or that behaviour may be changed in future releases?&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Mayby someone can clarify because that would have impact on the code generation tool.&lt;/P&gt;
&lt;P&gt;TIA&lt;/P&gt;
&lt;P&gt;Chris Werner&lt;/P&gt;</description>
      <pubDate>Tue, 12 Aug 2014 12:18:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/parameters-for-upload-delete-event/qaq-p/13843606</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-08-12T12:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters for upload_delete event</title>
      <link>https://community.sap.com/t5/technology-q-a/parameters-for-upload-delete-event/qaa-p/13843608#M4874451</link>
      <description>&lt;P&gt;What's the schema for the table that was generated?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Aug 2014 12:44:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/parameters-for-upload-delete-event/qaa-p/13843608#M4874451</guid>
      <dc:creator>jeff_albion</dc:creator>
      <dc:date>2014-08-12T12:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters for upload_delete event</title>
      <link>https://community.sap.com/t5/technology-q-a/parameters-for-upload-delete-event/qaa-p/13843609#M4874452</link>
      <description>&lt;P&gt;Consolidated (Oracle): 
&lt;/P&gt;&lt;LI-CODE lang="sql"&gt;
create table lfv_del_pos 
(
   avisnr    varchar2(10)  not null,
   aviscode  varchar2(1)   not null,
   itemnr    varchar2(18)  not null,
   amount    number(4)     null,
   ml_stat   varchar2(2)   not null,
   ml_lstmod varchar2(14)  not null, 
   constraint pk_lfv_del_pos primary key (avisnr, aviscode, itemnr)
);
&lt;/LI-CODE&gt;
Remote (Ultralite):
&lt;LI-CODE lang="sql"&gt;
create table lfv_del_pos 
(
   avisnr    varchar(10)  not null,
   aviscode  varchar(1)   not null,
   itemnr    varchar(18)  not null,
   amount    numeric(4)   null,
   constraint pk_lfv_del_pos primary key (avisnr, aviscode, itemnr)
);
&lt;/LI-CODE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Aug 2014 13:00:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/parameters-for-upload-delete-event/qaa-p/13843609#M4874452</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-08-12T13:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters for upload_delete event</title>
      <link>https://community.sap.com/t5/technology-q-a/parameters-for-upload-delete-event/qaa-p/13843610#M4874453</link>
      <description>&lt;P&gt;It is possible that Mobilink wants to compare old and new values before deleting the record. E.g. imagine if someone already modified the field "amount". If you want to delete it, because you have old values, you probably will not want to do this. And in theory, you have to fetch the changes again and delete the record.&lt;/P&gt;
&lt;P&gt;E.g. the upload part is described here: &lt;A href="http://dcx.sybase.com/index.html#1200/en/mlstart/foursteps-ml-basics.html"&gt;http://dcx.sybase.com/index.html#1200/en/mlstart/foursteps-ml-basics.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Aug 2014 02:40:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/parameters-for-upload-delete-event/qaa-p/13843610#M4874453</guid>
      <dc:creator>Vlad</dc:creator>
      <dc:date>2014-08-13T02:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters for upload_delete event</title>
      <link>https://community.sap.com/t5/technology-q-a/parameters-for-upload-delete-event/qaa-p/13843611#M4874454</link>
      <description>&lt;P&gt;Thanks Vlad, you are right, the text explains the behaviour: "The upload consists of a set of new and old row values for rows modified in the remote database. (Updates have new and old row values; deletes have old values; and inserts have new values.)" and that makes sense too. 
Then the documentation for the upload-delete table event explains the parameters wrong:
&lt;A href="http://dcx.sybase.com/index.html#sa160/en/mlserver/upload-delete-ml-scriptsref.html*d5e19662"&gt;http://dcx.sybase.com/index.html#sa160/en/mlserver/upload-delete-ml-scriptsref.html*d5e19662&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Aug 2014 03:34:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/parameters-for-upload-delete-event/qaa-p/13843611#M4874454</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-08-13T03:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters for upload_delete event</title>
      <link>https://community.sap.com/t5/technology-q-a/parameters-for-upload-delete-event/qaa-p/13843612#M4874455</link>
      <description>&lt;P&gt;I will not be surprised if these parameters go through all synchronization scripts. Because the request from the device has already reached the server, and it is up to MobiLink to filter or not, parameters that came from the client &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Aug 2014 02:38:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/parameters-for-upload-delete-event/qaa-p/13843612#M4874455</guid>
      <dc:creator>Vlad</dc:creator>
      <dc:date>2014-08-14T02:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters for upload_delete event</title>
      <link>https://community.sap.com/t5/technology-q-a/parameters-for-upload-delete-event/qaa-p/13843607#M4874450</link>
      <description>&lt;P&gt;The table lists the required parameters (all PK columns) and some of the optional named parameters. Other &lt;A href="http://dcx.sybase.com/index.html#sa160/en/mlserver/script-parameters-writing-synch.html"&gt;named parameters&lt;/A&gt;, including non-PK columns, can also be used.&lt;/P&gt;
&lt;P&gt;FYI, the {ml o.} syntax is only applicable to the upload_update event.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Aug 2014 12:36:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/parameters-for-upload-delete-event/qaa-p/13843607#M4874450</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-08-19T12:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters for upload_delete event</title>
      <link>https://community.sap.com/t5/technology-q-a/parameters-for-upload-delete-event/qaa-p/13843613#M4874456</link>
      <description>&lt;P&gt;Blob column values are not uploaded for delete operations, and so should not be used.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Aug 2014 13:58:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/parameters-for-upload-delete-event/qaa-p/13843613#M4874456</guid>
      <dc:creator>former_SQLA_member1694884</dc:creator>
      <dc:date>2014-08-19T13:58:37Z</dc:date>
    </item>
  </channel>
</rss>

