<?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 on company Code (BUKRS) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-company-code-bukrs/m-p/4090688#M978195</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear krishnan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it is not possible in the  field selection. you can do this through select query only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field selection validates the required condition only. It will not give the message to one by one record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;R.Rajendran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 06 Jul 2008 03:25:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-06T03:25:05Z</dc:date>
    <item>
      <title>Validation on company Code (BUKRS)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-company-code-bukrs/m-p/4090687#M978194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement in which I am giving a select option for the company code field,which is from t001-bukrs.Based on the validation result , i have to proceed in the program flow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Select option will always be a range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two coditions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;condtion                             expected result&lt;/P&gt;&lt;P&gt;1 Input improper company   Error to be prompted as &lt;/P&gt;&lt;P&gt;code                                 Invalid Company code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 Input one improper company Error to be prompted for one &lt;/P&gt;&lt;P&gt;                                           code in the range company     &lt;/P&gt;&lt;P&gt;                                              code only.The rest&lt;/P&gt;&lt;P&gt;                                           to be processed successfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have to write a code to validate the entered company code.If say user enter company code say 1 amd if it's not valid&lt;/P&gt;&lt;P&gt;show message : Invalid Company Code&lt;/P&gt;&lt;P&gt;But if user enters a range..and some company code are invalid ..then show error fro them.&lt;/P&gt;&lt;P&gt;say from 1 to 50 and out of this,say only 1,2,3 and 49 are valid,so i have to process only these and rest all(3-48 and 50) should be shown as invaild company code with the no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please give me the logic as soon as possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Helpful answers will be highly rewarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Krishan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Jul 2008 01:52:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-company-code-bukrs/m-p/4090687#M978194</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-06T01:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: Validation on company Code (BUKRS)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-company-code-bukrs/m-p/4090688#M978195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear krishnan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it is not possible in the  field selection. you can do this through select query only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field selection validates the required condition only. It will not give the message to one by one record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;R.Rajendran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Jul 2008 03:25:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-company-code-bukrs/m-p/4090688#M978195</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-06T03:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: Validation on company Code (BUKRS)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-company-code-bukrs/m-p/4090689#M978196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi rajendran ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please explain this using some select statement.ie, writing code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnaks a  lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Krishan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Jul 2008 04:45:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-company-code-bukrs/m-p/4090689#M978196</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-06T04:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: Validation on company Code (BUKRS)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-company-code-bukrs/m-p/4090690#M978197</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;Proceed like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since user can enter multiple company codes in the select-options you will have to find out which is correct which is wrong. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all you will have to make your selectp-option work on single values only. Because with ranges it is not possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select *&lt;/P&gt;&lt;P&gt;from T001&lt;/P&gt;&lt;P&gt;into it_t001&lt;/P&gt;&lt;P&gt;where bukrs in sel_bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here sel_bukrs is the select-options for your company code and it_t001 is the internal table for company code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at sel_bukrs.&lt;/P&gt;&lt;P&gt;  read table it_t001 with key bukrs = sel_bukrs-low.&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;  write: 'Company code', it_t001-bukrs, 'doesnot exist'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the only solution i think.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if use full.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Jul 2008 06:17:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-company-code-bukrs/m-p/4090690#M978197</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-06T06:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: Validation on company Code (BUKRS)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-company-code-bukrs/m-p/4090691#M978198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Khusro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the probelm is that there will be  a rangle for company code only. I cant avoid it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there any other way by which we can loop from low value to high&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like u gave&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at sel_bukrs.&lt;/P&gt;&lt;P&gt;read table it_t001 with key bukrs = sel_bukrs-low.&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;write: 'Company code', it_t001-bukrs, 'doesnot exist'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can we read table with bukrs between low and high and sore all invalid values or any invalid valid in bettween into some internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help if it's possibe...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;krishan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Jul 2008 07:06:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-company-code-bukrs/m-p/4090691#M978198</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-06T07:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Validation on company Code (BUKRS)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-company-code-bukrs/m-p/4090692#M978199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;try like this:&lt;/P&gt;&lt;P&gt;loop at s_bukrs.&lt;/P&gt;&lt;P&gt;if s_bukrs-low is not intial,&lt;/P&gt;&lt;P&gt;read table it_t001 with key bukrs = sel_bukrs-low.&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt; message e000(zf) with 'Company code'  it_t001-bukrs  'doesnot exist'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;elseif s_bukrs-high is not initial.&lt;/P&gt;&lt;P&gt;read table it_t001 with key bukrs = sel_bukrs-high.&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt; message e000(zf) with 'Company code'  it_t001-bukrs  'doesnot exist'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: assuming you have a message class with msg no. 000 and description &amp;amp; &amp;amp; &amp;amp;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SUbramanian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Jul 2008 07:19:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-on-company-code-bukrs/m-p/4090692#M978199</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-06T07:19:40Z</dc:date>
    </item>
  </channel>
</rss>

