<?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: Problem with IF statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-if-statement/m-p/4020616#M960752</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

if ls_cacs_ctrtstt-appl = lv_appl
and ls_cacs_ctrtstt-ctrtst_id = ls_cacs_ctrtbu-ctrtst_id
and ls_cacs_ctrtstt-spras =  'EN'  .

ls_zrl_salescode_details-std_contract_desc = lt_cacs_ctrtstt-descr_short.

endif.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also check data typs of variables ls_cacs_ctrtstt-appl is same as  lv_appl &amp;amp; ls_cacs_ctrtstt-ctrtst_id is same as ls_cacs_ctrtbu-ctrtst_id.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Jun 2008 07:45:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-23T07:45:40Z</dc:date>
    <item>
      <title>Problem with IF statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-if-statement/m-p/4020613#M960749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings Abaper's&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ive got a small problem. Ive got an IF statement and the code inside it wont execute. I debugged through it and all the parameters are met but it does not assign the short description i want to my local structure. Please help. The code snippet is included below. Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ls_cacs_ctrtstt-appl         = lv_appl&lt;/P&gt;&lt;P&gt;            and ls_cacs_ctrtstt-ctrtst_id = ls_cacs_ctrtbu-ctrtst_id&lt;/P&gt;&lt;P&gt;            and ls_cacs_ctrtstt-spras     = 'E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;             ls_zrl_salescode_details-std_contract_desc = lt_cacs_ctrtstt-descr_short.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 07:38:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-if-statement/m-p/4020613#M960749</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T07:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with IF statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-if-statement/m-p/4020614#M960750</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; Check out whether the data type of both the variables are same or not ..  for example one of numc and the other of character will not sometime satisfy the condition ... so make it of same data type ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 07:41:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-if-statement/m-p/4020614#M960750</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T07:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with IF statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-if-statement/m-p/4020615#M960751</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;Please check the following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ls_cacs_ctrtstt-appl &lt;STRONG&gt;EQ&lt;/STRONG&gt; lv_appl&lt;/P&gt;&lt;P&gt;and ls_cacs_ctrtstt-ctrtst_id &lt;STRONG&gt;EQ&lt;/STRONG&gt; ls_cacs_ctrtbu-ctrtst_id&lt;/P&gt;&lt;P&gt;and ls_cacs_ctrtstt-spras &lt;STRONG&gt;EQ&lt;/STRONG&gt;  'E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_zrl_salescode_details-std_contract_desc = lt_cacs_ctrtstt-descr_short.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jaya Vani.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 07:43:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-if-statement/m-p/4020615#M960751</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T07:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with IF statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-if-statement/m-p/4020616#M960752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

if ls_cacs_ctrtstt-appl = lv_appl
and ls_cacs_ctrtstt-ctrtst_id = ls_cacs_ctrtbu-ctrtst_id
and ls_cacs_ctrtstt-spras =  'EN'  .

ls_zrl_salescode_details-std_contract_desc = lt_cacs_ctrtstt-descr_short.

endif.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also check data typs of variables ls_cacs_ctrtstt-appl is same as  lv_appl &amp;amp; ls_cacs_ctrtstt-ctrtst_id is same as ls_cacs_ctrtbu-ctrtst_id.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 07:45:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-if-statement/m-p/4020616#M960752</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T07:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with IF statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-if-statement/m-p/4020617#M960753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All data types are the same. Everything is syntactically correct and i even debugged it to see what varilables are assigned and everything looks fine except it just is not assigning anything to my local structure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 07:48:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-if-statement/m-p/4020617#M960753</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T07:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with IF statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-if-statement/m-p/4020618#M960754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Language key should be EN it might be 2 characters..just check it out and laso past the values what u r passing and data type u defined for that..&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;sas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 07:54:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-if-statement/m-p/4020618#M960754</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T07:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with IF statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-if-statement/m-p/4020619#M960755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check whether the condition is getting satsfied.&lt;/P&gt;&lt;P&gt;Check whether any leading zeros problem is there&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 08:07:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-if-statement/m-p/4020619#M960755</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2008-06-23T08:07:18Z</dc:date>
    </item>
  </channel>
</rss>

