<?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: Validation in LSMW in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-in-lsmw/m-p/2964347#M699452</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;that can be done by TABLE CONTROL in LSMW &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go through this and also check in the forum. there are many threads available to this query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)while recording u enter the data in the table control in the first row , second row etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The thing is ur flat file must be in correct format.&lt;/P&gt;&lt;P&gt;Eg &lt;/P&gt;&lt;P&gt;Consider ur table control is having fields like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fields1 fileld2 field3 &lt;/P&gt;&lt;P&gt;Mr Suresh Peri&lt;/P&gt;&lt;P&gt;Mrs Peters Marry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ur flat file must be like this.&lt;/P&gt;&lt;P&gt;ANRED_01 ANRED_02 NAMEV_01 NAMEV_02 NAME1_01 NAME1_02&lt;/P&gt;&lt;P&gt;Mr. Mrs. Suresh Peters Peri Marry .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)*************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LSMW will have a Indicator for headr and itam, i do not remember the correct field, but it will have an indicator, check the fields, there will be a single charecter lenght field, that should be the indicator, and using that we can write the logic.&lt;/P&gt;&lt;P&gt;check that single charecter field, it that is X that means the header record is processed, and do the items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and, this is another way, try this out also&lt;/P&gt;&lt;P&gt;YOu can do this in "Define Source Structures" step, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the HEADER is defined first, &lt;/P&gt;&lt;P&gt;then the DETAIL below the HEADER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;add the fields to the structures. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both should have some common key field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please take care that the name of the common field is the same. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you do this it is linked. The you have a header and item corresponding to that header. then run the LSMW as you would. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward if usefull&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Oct 2007 08:58:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-12T08:58:45Z</dc:date>
    <item>
      <title>Validation in LSMW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-in-lsmw/m-p/2964346#M699451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    I am uploading Vendor Master data through LSMW. I want a validation that if the Vendor number is blank then that record will not be uploaded and that record will be send to the error file. How to do this validation. Plz help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 08:25:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-in-lsmw/m-p/2964346#M699451</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T08:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Validation in LSMW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-in-lsmw/m-p/2964347#M699452</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;that can be done by TABLE CONTROL in LSMW &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go through this and also check in the forum. there are many threads available to this query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)while recording u enter the data in the table control in the first row , second row etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The thing is ur flat file must be in correct format.&lt;/P&gt;&lt;P&gt;Eg &lt;/P&gt;&lt;P&gt;Consider ur table control is having fields like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fields1 fileld2 field3 &lt;/P&gt;&lt;P&gt;Mr Suresh Peri&lt;/P&gt;&lt;P&gt;Mrs Peters Marry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ur flat file must be like this.&lt;/P&gt;&lt;P&gt;ANRED_01 ANRED_02 NAMEV_01 NAMEV_02 NAME1_01 NAME1_02&lt;/P&gt;&lt;P&gt;Mr. Mrs. Suresh Peters Peri Marry .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)*************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LSMW will have a Indicator for headr and itam, i do not remember the correct field, but it will have an indicator, check the fields, there will be a single charecter lenght field, that should be the indicator, and using that we can write the logic.&lt;/P&gt;&lt;P&gt;check that single charecter field, it that is X that means the header record is processed, and do the items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and, this is another way, try this out also&lt;/P&gt;&lt;P&gt;YOu can do this in "Define Source Structures" step, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the HEADER is defined first, &lt;/P&gt;&lt;P&gt;then the DETAIL below the HEADER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;add the fields to the structures. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both should have some common key field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please take care that the name of the common field is the same. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you do this it is linked. The you have a header and item corresponding to that header. then run the LSMW as you would. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward if usefull&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 08:58:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-in-lsmw/m-p/2964347#M699452</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T08:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Validation in LSMW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-in-lsmw/m-p/2964348#M699453</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;     For example if the source structure name is zsource. It has vendor number, lets say venno. So in begin of transaction u can check like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If zsource-venno is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append error message to the string of the structure...&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use&lt;/P&gt;&lt;P&gt;skip_transaction&lt;/P&gt;&lt;P&gt;transfer_transaction in end of transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Karthick.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        K@rthick&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        K@rthick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 16:42:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-in-lsmw/m-p/2964348#M699453</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T16:42:05Z</dc:date>
    </item>
  </channel>
</rss>

