<?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: Test Logical System Field in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/test-logical-system-field/m-p/5474128#M1253488</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why you do your select from CSKSP and not CSKS?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Apr 2009 10:23:10 GMT</pubDate>
    <dc:creator>mrahhaoui</dc:creator>
    <dc:date>2009-04-20T10:23:10Z</dc:date>
    <item>
      <title>Test Logical System Field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/test-logical-system-field/m-p/5474121#M1253481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guru's,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a small question. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changing the logical system on Stairs (transaction KS02) should be prevented. This is implemented by an enhancement (project XXXX) where exit COOMKS02 is made active.&lt;/P&gt;&lt;P&gt;Within this exit an error message is generated (message class XXX; message XXX) whenever the value of the logical system (ICSKSP-LOGSYSTEM) is different from the one on the database (checked with a select against table CSKS). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've written this code below but it doesn't work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Data :wa_CSKS  like CSKS,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;      &lt;EM&gt;wa_CSKSP like CSKSP.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt; &lt;EM&gt;Select LOGSYSTEM KOSTL KOKRS from CSKS INTO wa_CSKS&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;                                         &lt;EM&gt;WHERE LOGSYSTEM = wa_CSKSP-LOGSYSTEM,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;                                         &lt;EM&gt;AND   KOSTL     = wa_CSKSP-KOSTL,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;                                         &lt;EM&gt;AND   KOKRS     = wa_CSKSP-KOKRS.                                     .&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if sy-subrc NE 0.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;    &lt;EM&gt;MESSAGE E101(ZST1).&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;  &lt;EM&gt;endif.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;  &lt;EM&gt;Endselect.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Moh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2009 09:48:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/test-logical-system-field/m-p/5474121#M1253481</guid>
      <dc:creator>mrahhaoui</dc:creator>
      <dc:date>2009-04-20T09:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Test Logical System Field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/test-logical-system-field/m-p/5474122#M1253482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So what doesn't work?&lt;/P&gt;&lt;P&gt;1. Is enhancement called?&lt;/P&gt;&lt;P&gt;2. Is there no display of the error message.&lt;/P&gt;&lt;P&gt;3. Error message displayed, but user can change it anyway?&lt;/P&gt;&lt;P&gt;4.....?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2009 09:52:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/test-logical-system-field/m-p/5474122#M1253482</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2009-04-20T09:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Test Logical System Field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/test-logical-system-field/m-p/5474123#M1253483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the enhancement is called but each fields. I want it test only the LOGSYSTEM field not all of my screen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2009 10:00:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/test-logical-system-field/m-p/5474123#M1253483</guid>
      <dc:creator>mrahhaoui</dc:creator>
      <dc:date>2009-04-20T10:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Test Logical System Field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/test-logical-system-field/m-p/5474124#M1253484</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;&lt;/P&gt;&lt;P&gt;Try with this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Select LOGSYSTEM KOSTL KOKRS from CSKS INTO wa_CSKS
WHERE LOGSYSTEM = ICSKSP-LOGSYSTEM.

"                                OR

Select LOGSYSTEM KOSTL KOKRS from CSKS INTO wa_CSKS
WHERE LOGSYSTEM = wa_CSKSP-LOGSYSTEM.

" Check if any of these select query works.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2009 10:08:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/test-logical-system-field/m-p/5474124#M1253484</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-20T10:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Test Logical System Field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/test-logical-system-field/m-p/5474125#M1253485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do I need also to loop in my internal table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2009 10:11:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/test-logical-system-field/m-p/5474125#M1253485</guid>
      <dc:creator>mrahhaoui</dc:creator>
      <dc:date>2009-04-20T10:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: Test Logical System Field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/test-logical-system-field/m-p/5474126#M1253486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Enhancement may be called evrytime but your check fails(error msg) only if the Logical system is changed right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so no need to bother if the enhancement is called everytime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you able to check the change?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also check that wa_CSKSP  contains values .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Import param of that exit is a table type you should loop it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rhea.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2009 10:11:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/test-logical-system-field/m-p/5474126#M1253486</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-20T10:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: Test Logical System Field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/test-logical-system-field/m-p/5474127#M1253487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why exactly you require to loop in your internal table......&lt;/P&gt;&lt;P&gt;if u just want to check for logsystem....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if there is a requirement of checking the logsystem of all the rows in the internal table then probably you can loop into an internal table or you can also use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select logsystem from CSKSP
for all entries in internal_table
where logsystem = internal_table-logsystem.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2009 10:15:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/test-logical-system-field/m-p/5474127#M1253487</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-20T10:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: Test Logical System Field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/test-logical-system-field/m-p/5474128#M1253488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why you do your select from CSKSP and not CSKS?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2009 10:23:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/test-logical-system-field/m-p/5474128#M1253488</guid>
      <dc:creator>mrahhaoui</dc:creator>
      <dc:date>2009-04-20T10:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Test Logical System Field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/test-logical-system-field/m-p/5474129#M1253489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;oh sorry that was a typing mistake....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2009 10:24:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/test-logical-system-field/m-p/5474129#M1253489</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-20T10:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: Test Logical System Field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/test-logical-system-field/m-p/5474130#M1253490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when I write this code and I activate it I have the following error message &lt;/P&gt;&lt;P&gt;Field list without INTO clause is not allowed.. allowed ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2009 10:41:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/test-logical-system-field/m-p/5474130#M1253490</guid>
      <dc:creator>mrahhaoui</dc:creator>
      <dc:date>2009-04-20T10:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Test Logical System Field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/test-logical-system-field/m-p/5474131#M1253491</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;use this one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data t_itab like table of wa_csks.

select logsystem from CSKSP
into table t_itab
for all entries in internal_table
where logsystem = internal_table-logsystem.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2009 10:43:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/test-logical-system-field/m-p/5474131#M1253491</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-20T10:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: Test Logical System Field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/test-logical-system-field/m-p/5474132#M1253492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your code should be something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select &lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;single&lt;/SPAN&gt; LOGSYSTEM KOSTL KOKRS from CSKS INTO wa_CSKS&lt;/P&gt;&lt;P&gt;WHERE LOGSYSTEM = wa_CSKSP-LOGSYSTEM,&lt;/P&gt;&lt;P&gt;AND KOSTL = wa_CSKSP-KOSTL,&lt;/P&gt;&lt;P&gt;AND KOKRS = wa_CSKSP-KOKRS. .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;MESSAGE E101(ZST1).&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;Endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rhea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: rhea on Apr 20, 2009 12:48 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2009 10:47:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/test-logical-system-field/m-p/5474132#M1253492</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-20T10:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: Test Logical System Field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/test-logical-system-field/m-p/5474133#M1253493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you know why I receive also this message when I want to create a cost number. I should normally receive my error message only on the modification screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone have an idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Moh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2009 11:46:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/test-logical-system-field/m-p/5474133#M1253493</guid>
      <dc:creator>mrahhaoui</dc:creator>
      <dc:date>2009-04-20T11:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: Test Logical System Field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/test-logical-system-field/m-p/5474134#M1253494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;usually exits are triggered for both  creatio  and changing;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u want to trigger only for change then put this check&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if sy-tcode EQ 'KS02'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rhea.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2009 11:50:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/test-logical-system-field/m-p/5474134#M1253494</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-20T11:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Test Logical System Field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/test-logical-system-field/m-p/5474135#M1253495</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 the cost number you will not receive your message it will give the message which is generated by the program when it is validating.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just try to debug your program and just check which code and in which sequence gets executed you enter cost center and also check if your select query also gets executed at that point of time....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2009 11:51:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/test-logical-system-field/m-p/5474135#M1253495</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-20T11:51:12Z</dc:date>
    </item>
  </channel>
</rss>

