<?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: lsmw in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw/m-p/2085673#M433071</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;u can handle only the validations in lsmw but not the transaction errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Global data- Just like global declarations in ABAP&lt;/P&gt;&lt;P&gt;begin of processing - Initialization in abap&lt;/P&gt;&lt;P&gt;begin of transaction - this block gets triggered for every transaction.if there are  &lt;/P&gt;&lt;P&gt;                               header and item level structures (hierarchical), then this  &lt;/P&gt;&lt;P&gt;                               block will trigger only for Header records&lt;/P&gt;&lt;P&gt;begin of record.       - This block gets triggered for every record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;skip_record            - will skip the particular record from the processing. means &lt;/P&gt;&lt;P&gt;                               that particular record will not be converted.&lt;/P&gt;&lt;P&gt;skip_transaction     - It will skip the single record or multiple records basd on the &lt;/P&gt;&lt;P&gt;                              source structu   res.(if there is no header and item, it will skip &lt;/P&gt;&lt;P&gt;                              only one record, else it will skip all the records of a particular &lt;/P&gt;&lt;P&gt;                              header) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to handle the Validations&lt;/P&gt;&lt;P&gt; - need to declare the internal table with the required fields to capture the errors&lt;/P&gt;&lt;P&gt; - write the validation code in the required block (begin of transaction, begin of &lt;/P&gt;&lt;P&gt;   record, or at any particular field level)&lt;/P&gt;&lt;P&gt; - if correspondig validation fails capture the record into internal table...&lt;/P&gt;&lt;P&gt;   and insert the global function skip_record or skip_transaction to skip the record.&lt;/P&gt;&lt;P&gt;   by this the record will not be processed further &lt;/P&gt;&lt;P&gt;   capture all such error records into an internal tabel&lt;/P&gt;&lt;P&gt;-  in the end of processing block u can down load these exceptions into a file (Excel or text) using the function module GUI_DOWNLOAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me know if u require any other information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Apr 2007 08:32:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-13T08:32:03Z</dc:date>
    <item>
      <title>lsmw</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw/m-p/2085672#M433070</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;can anybody tell mein lsmw how to trap errors and how to downlod the errors into our local pc?&lt;/P&gt;&lt;P&gt;can anybody give some explanation what is begin_of_record,end_of_record,begin_of_transaction,end_of_transaction,transfer_record and skip_record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sambasiva Rao&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2007 13:06:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw/m-p/2085672#M433070</guid>
      <dc:creator>former_member557020</dc:creator>
      <dc:date>2007-04-12T13:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: lsmw</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw/m-p/2085673#M433071</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;u can handle only the validations in lsmw but not the transaction errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Global data- Just like global declarations in ABAP&lt;/P&gt;&lt;P&gt;begin of processing - Initialization in abap&lt;/P&gt;&lt;P&gt;begin of transaction - this block gets triggered for every transaction.if there are  &lt;/P&gt;&lt;P&gt;                               header and item level structures (hierarchical), then this  &lt;/P&gt;&lt;P&gt;                               block will trigger only for Header records&lt;/P&gt;&lt;P&gt;begin of record.       - This block gets triggered for every record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;skip_record            - will skip the particular record from the processing. means &lt;/P&gt;&lt;P&gt;                               that particular record will not be converted.&lt;/P&gt;&lt;P&gt;skip_transaction     - It will skip the single record or multiple records basd on the &lt;/P&gt;&lt;P&gt;                              source structu   res.(if there is no header and item, it will skip &lt;/P&gt;&lt;P&gt;                              only one record, else it will skip all the records of a particular &lt;/P&gt;&lt;P&gt;                              header) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to handle the Validations&lt;/P&gt;&lt;P&gt; - need to declare the internal table with the required fields to capture the errors&lt;/P&gt;&lt;P&gt; - write the validation code in the required block (begin of transaction, begin of &lt;/P&gt;&lt;P&gt;   record, or at any particular field level)&lt;/P&gt;&lt;P&gt; - if correspondig validation fails capture the record into internal table...&lt;/P&gt;&lt;P&gt;   and insert the global function skip_record or skip_transaction to skip the record.&lt;/P&gt;&lt;P&gt;   by this the record will not be processed further &lt;/P&gt;&lt;P&gt;   capture all such error records into an internal tabel&lt;/P&gt;&lt;P&gt;-  in the end of processing block u can down load these exceptions into a file (Excel or text) using the function module GUI_DOWNLOAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me know if u require any other information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2007 08:32:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw/m-p/2085673#M433071</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-13T08:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: lsmw</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw/m-p/2085674#M433072</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;In lsmw we can trap the errors and pass on to the pc using GUI_download.we can write this in the end of processing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;begin_of_record,&lt;/P&gt;&lt;P&gt;Start of the record currently being processed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End_of_record,&lt;/P&gt;&lt;P&gt;end of the above&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;begin_of_transaction,&lt;/P&gt;&lt;P&gt;suppose u are processing more than 1 transaction we need this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end_of_transaction,&lt;/P&gt;&lt;P&gt;end of the above&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;skip_record.&lt;/P&gt;&lt;P&gt;if you want to skip a particular record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        sharma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2007 10:20:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw/m-p/2085674#M433072</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-13T10:20:50Z</dc:date>
    </item>
  </channel>
</rss>

