<?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: Validations in LSMW in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/validations-in-lsmw/m-p/6413447#M1408276</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello raghav ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the step number 5 in LSMW you can keep checks for all the fields in the Source fields.&lt;/P&gt;&lt;P&gt;that is write code line in Mapping and conversion rule that if the field is empty in the file uploaded then raise an error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for suppose ur file structure as ,x,y,z fileds then check if filename-x is initial. raise message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vachana.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Dec 2009 12:09:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-12-03T12:09:41Z</dc:date>
    <item>
      <title>Validations in LSMW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validations-in-lsmw/m-p/6413446#M1408275</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 have to validate two fields which will be coming from Data upload file.To acheive this i have maintained the translations and in control data I have uploaed all the possible values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Now my requirement is that in step no 5 if I have to check values only against the uploaded values else throw an error msg.I am not able to find how to write the logic for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls let me know if require more details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnx,&lt;/P&gt;&lt;P&gt;Rag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2009 11:59:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validations-in-lsmw/m-p/6413446#M1408275</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-03T11:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Validations in LSMW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validations-in-lsmw/m-p/6413447#M1408276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello raghav ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the step number 5 in LSMW you can keep checks for all the fields in the Source fields.&lt;/P&gt;&lt;P&gt;that is write code line in Mapping and conversion rule that if the field is empty in the file uploaded then raise an error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for suppose ur file structure as ,x,y,z fileds then check if filename-x is initial. raise message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vachana.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2009 12:09:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validations-in-lsmw/m-p/6413447#M1408276</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-03T12:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: Validations in LSMW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validations-in-lsmw/m-p/6413448#M1408277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It will be ok if I want to chk if coming values are empty or not.But in case of wrong values,How can we check ? I hope U got my pt?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnx &lt;/P&gt;&lt;P&gt;Rag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2009 12:18:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validations-in-lsmw/m-p/6413448#M1408277</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-03T12:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: Validations in LSMW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validations-in-lsmw/m-p/6413449#M1408278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can do this with a bit ABAP coding in step 5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;double click the coding line and the ABAP editor is opening, here you can add any ABAP code you want to check whatever you need.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2009 14:10:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validations-in-lsmw/m-p/6413449#M1408278</guid>
      <dc:creator>JL23</dc:creator>
      <dc:date>2009-12-03T14:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: Validations in LSMW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validations-in-lsmw/m-p/6413450#M1408279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For this you need to write below example logic in Step 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;these two are wa_errortab and g_error_tab free defined from SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; IF NOT ymain_data-kunnr IS INITIAL.&lt;/P&gt;&lt;P&gt;   SELECT SINGLE kunnr FROM kna1 INTO gv_kunnr&lt;/P&gt;&lt;P&gt;   WHERE kunnr = ymain_data-kunnr.&lt;/P&gt;&lt;P&gt;   IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;     wa_errortab-msgty = gc_error.&lt;/P&gt;&lt;P&gt;     wa_errortab-id    = gc_msgclass.&lt;/P&gt;&lt;P&gt;     wa_errortab-msgno = gc_msgno.&lt;/P&gt;&lt;P&gt;     wa_errortab-par1  = ymain_data-kunnr.&lt;/P&gt;&lt;P&gt;     wa_errortab-par3  = ymain_data-vtweg.&lt;/P&gt;&lt;P&gt;     wa_errortab-par4  = ymain_data-spart.&lt;/P&gt;&lt;P&gt;     INSERT wa_errortab INTO TABLE g_error_tab.&lt;/P&gt;&lt;P&gt;     CLEAR wa_errortab.&lt;/P&gt;&lt;P&gt;     skip_record. " Skips only structure but not entire record&lt;/P&gt;&lt;P&gt;     skip_transaction. " Skips entire record&lt;/P&gt;&lt;P&gt;   ELSE.&lt;/P&gt;&lt;P&gt;     bkn00-kunnr = ymain_data-kunnr.&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2009 14:20:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validations-in-lsmw/m-p/6413450#M1408279</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-03T14:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: Validations in LSMW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validations-in-lsmw/m-p/6413451#M1408280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the check fails, you can use a simple WRITE statement to issue the error message, and also make sure you skip the record or transaction using "skip_record" or "skip_transaction", whatever applies.&lt;/P&gt;&lt;P&gt;You can get fancy by collecting messages into internal tables and issue as ALV in the end, or use standard application log functions in group SBAL.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2009 14:21:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validations-in-lsmw/m-p/6413451#M1408280</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2009-12-03T14:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Validations in LSMW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validations-in-lsmw/m-p/6413452#M1408281</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;A href="http://www.saptechnical/Tutorials/LSMW/Validations/page1.htm" target="test_blank"&gt;http://www.saptechnical/Tutorials/LSMW/Validations/page1.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2009 17:58:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validations-in-lsmw/m-p/6413452#M1408281</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-09T17:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: Validations in LSMW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validations-in-lsmw/m-p/6413453#M1408282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;k&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Apr 2010 07:31:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validations-in-lsmw/m-p/6413453#M1408282</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-15T07:31:04Z</dc:date>
    </item>
  </channel>
</rss>

