<?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 LSMW Skip_record issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-skip-record-issue/m-p/8552691#M1658330</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;I am using direct input method, program name : RM06IBI0 for Info records. My question is If I need to skip record based on the first value in my flat file, do I need to write the SKIP_RECORD statement in all the structures used, or writing it in the first structure of "Maintain Field Mapping and Conversion Rules" step will be sufficient.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And also, does it matter if I upload flat file from Local file or is it better to upload it from Application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have searched many threads, but couldn't get the appropriate solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Lahari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jan 2012 02:59:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-01-20T02:59:27Z</dc:date>
    <item>
      <title>LSMW Skip_record issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-skip-record-issue/m-p/8552691#M1658330</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;I am using direct input method, program name : RM06IBI0 for Info records. My question is If I need to skip record based on the first value in my flat file, do I need to write the SKIP_RECORD statement in all the structures used, or writing it in the first structure of "Maintain Field Mapping and Conversion Rules" step will be sufficient.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And also, does it matter if I upload flat file from Local file or is it better to upload it from Application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have searched many threads, but couldn't get the appropriate solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Lahari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 02:59:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-skip-record-issue/m-p/8552691#M1658330</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-20T02:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: LSMW Skip_record issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-skip-record-issue/m-p/8552692#M1658331</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;you can use SKIP_TRASACTION or SKIP_RECORD(which is useful when you have header+items ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;better option is : - first you load file from PC .anyhow system write files into app serverbased on the logical path/file u have given at that step.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 03:37:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-skip-record-issue/m-p/8552692#M1658331</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-20T03:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: LSMW Skip_record issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-skip-record-issue/m-p/8552693#M1658332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use SKIP_TRANSACTION in event . __BEGIN_OF_TRANSACTION__&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SKIP_TRANSACTION.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 03:40:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-skip-record-issue/m-p/8552693#M1658332</guid>
      <dc:creator>mithun_shetty4</dc:creator>
      <dc:date>2012-01-20T03:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: LSMW Skip_record issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-skip-record-issue/m-p/8552694#M1658333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prabhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply, but my question here is If I use SKIP_RECORD, do i need to write the statement in all the structures __BEGIN_OF_RECORD__ event or just writing it in first structure is sufficient to skip the entire record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Example : &lt;/P&gt;&lt;P&gt;I have to check if the first field from flat file in header is some value take 'ABC', so now I have to skip this record.Now i want to know if I write SKIP RECORD In header structure BBKPF is sufficient or I need to write in individual like below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have structures BBKPF Header __BEGIN_OF_RECORD__   SKIP RECORD&lt;/P&gt;&lt;P&gt;                                 BBSEG  -__BEGIN_OF_RECORD__ :  SKIP RECORD&lt;/P&gt;&lt;P&gt;                                 BBTAX  - __BEGIN_OF_RECORD__ :  SKIP_RECORD&lt;/P&gt;&lt;P&gt;                                 BSELK  - __BEGIN_OF_RECORD__ :  SKIP_RECORD&lt;/P&gt;&lt;P&gt;                                 BSELP  - __BEGIN_OF_RECORD__ :   SKIP_RECORD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or                             BBKPF Header __BEGIN_OF_RECORD__   SKIP RECORD&lt;/P&gt;&lt;P&gt;                                BBSEG  &lt;/P&gt;&lt;P&gt;                                BBTAX &lt;/P&gt;&lt;P&gt;                                BSELK&lt;/P&gt;&lt;P&gt;                                BSELP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you got my point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Lahari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 03:49:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-skip-record-issue/m-p/8552694#M1658333</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-20T03:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: LSMW Skip_record issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-skip-record-issue/m-p/8552695#M1658334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just Skipping in BKPF is enough ! if u check the code in LSMW. There is a loop on structures BBSEG ,BBTAX etc inside loop BBKPF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So Skipping BKPF is enough&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 04:41:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-skip-record-issue/m-p/8552695#M1658334</guid>
      <dc:creator>mithun_shetty4</dc:creator>
      <dc:date>2012-01-20T04:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: LSMW Skip_record issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-skip-record-issue/m-p/8552696#M1658335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in general you have to differentiate between skip_record and skip_transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a skip_transaction will leave the loop and you dont need to care about a skip in the other structures behind this skip.&lt;/P&gt;&lt;P&gt;but with a skip_record it can happen that you just skip the header record, but still create content in the other structures.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 08:13:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-skip-record-issue/m-p/8552696#M1658335</guid>
      <dc:creator>JL23</dc:creator>
      <dc:date>2012-01-20T08:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: LSMW Skip_record issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-skip-record-issue/m-p/8552697#M1658336</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;if validation is failed at header level ..then you need to skip whole transaction by using skip_transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if validation is failed at item level and if you wanna skip only that item the  use skip_record or if you dont want to  create docment at all the use skip_transaction...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can call skip commands anywhere in the structures....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


select single infnr
         into lv_infnr
         from eine
        where infnr = bein0-infnr
          and ekorg = pir1-ekorg
          and werks = bein0-werks.
if sy-subrc ne 0.
  write: / pir1-matnr, pir1-lifnr, 'PIR not found in POrg/Plant',
           pir1-ekorg, pir1-werks.
  g_skip_transaction = yes.=&amp;gt;or skip_transaction......
endif.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 08:45:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lsmw-skip-record-issue/m-p/8552697#M1658336</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-20T08:45:18Z</dc:date>
    </item>
  </channel>
</rss>

