<?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: Urgent help need with ABAP code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-help-need-with-abap-code/m-p/1624222#M279014</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Narendran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, I couldnt understand the usage of loop in your code. I have to write the code in the upate rules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help me with the problem in the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This update rules is for object of type NUMC of legth 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the Z_VAL is of type Char of lenght 7.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on the value of the last 3 digits in Z_VAL i have to concatenate the value to the result. In this case when i execute, only the else statement is getting executed. i dont know why the if loop fails. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if COMM_STRUCTURE-/BIC/Z_VAL+4(3) = '1' or&lt;/P&gt;&lt;P&gt;   COMM_STRUCTURE-/BIC/Z_VAL+4(3) = '2' or&lt;/P&gt;&lt;P&gt;   COMM_STRUCTURE-/BIC/Z_VAL+4(3) = '3'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   concatenate COMM_STRUCTURE-/BIC/Z_VAL(4) '1' into RESULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;elseif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   COMM_STRUCTURE-/BIC/Z_VAL+4(3) = '4' or&lt;/P&gt;&lt;P&gt;   COMM_STRUCTURE-/BIC/Z_VAL+4(3) = '5' or&lt;/P&gt;&lt;P&gt;   COMM_STRUCTURE-/BIC/Z_VAL+4(3) = '6'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   concatenate COMM_STRUCTURE-/BIC/Z_VAL(4) '2' into RESULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;elseif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   COMM_STRUCTURE-/BIC/Z_VAL+4(3) = '7' or&lt;/P&gt;&lt;P&gt;   COMM_STRUCTURE-/BIC/Z_VAL+4(3) = '8' or&lt;/P&gt;&lt;P&gt;   COMM_STRUCTURE-/BIC/Z_VAL+4(3) = '9'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   concatenate COMM_STRUCTURE-/BIC/Z_VAL(4) '3' into RESULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; else.&lt;/P&gt;&lt;P&gt;   concatenate COMM_STRUCTURE-/BIC/Z_VAL(4) '4' into RESULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me regarding this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;aarthi&lt;/P&gt;&lt;P&gt;aarthi.sap@gmail.com&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Oct 2006 00:47:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-16T00:47:31Z</dc:date>
    <item>
      <title>Urgent help need with ABAP code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-help-need-with-abap-code/m-p/1624220#M279012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an info object OBJ1 of type NUMC length 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBJ2 of type CHAR of length 7 (Contains values like 2003001, 2003002, 2003003,.. 2003012.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to assign the first four chars value in OBJ2 to OBJ1 and the fifth filed in OBJ1 is based on the last three chars value in OBJ2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If last three chars are 001, 002 or 003, the fifth char in OBJ2 is 1.&lt;/P&gt;&lt;P&gt;If last three chars are 004, 005 or 006, the fifth char in OBJ2 is 2.&lt;/P&gt;&lt;P&gt;If last three chars are 007, 008 or 009, the fifth char in OBJ2 is 3.&lt;/P&gt;&lt;P&gt;If last three chars are 010, 011 or 012, the fifth char in OBJ2 is 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So OBJ1 need to have values like 20031, 20032, 20033, 20034.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to write this routine in update rules&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me with code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;aarthi&lt;/P&gt;&lt;P&gt;aarthi.sap@gmail.com&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Oct 2006 23:53:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-help-need-with-abap-code/m-p/1624220#M279012</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-15T23:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent help need with ABAP code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-help-need-with-abap-code/m-p/1624221#M279013</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;Try this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF S_STRUC,&lt;/P&gt;&lt;P&gt;        FOUR(4),&lt;/P&gt;&lt;P&gt;        THREE(3),&lt;/P&gt;&lt;P&gt;      END OF S_STRUC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB_OBJ2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  S_STRUC = ITAB_OBJ2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  OBJ1 = S_STRUC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF S_STRUC-THREE = '001' OR S_STRUC-THREE = '002' &lt;/P&gt;&lt;P&gt;    OR S_STRUC-THREE = '003'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     OBJ1+4(1) = '1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ELSEIF S_STRUC-THREE = '004' OR S_STRUC-THREE = '005' &lt;/P&gt;&lt;P&gt;    OR S_STRUC-THREE = '006'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     OBJ1+4(1) = '2'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ELSEIF S_STRUC-THREE = '007' OR S_STRUC-THREE = '008' &lt;/P&gt;&lt;P&gt;    OR S_STRUC-THREE = '009'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     OBJ1+4(1) = '3'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ELSEIF S_STRUC-THREE = '010' OR S_STRUC-THREE = '011' &lt;/P&gt;&lt;P&gt;    OR S_STRUC-THREE = '012'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     OBJ1+4(1) = '4'.&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;&lt;/P&gt;&lt;P&gt;  APPEND OBJ1.&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;Hope this what you want..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2006 00:18:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-help-need-with-abap-code/m-p/1624221#M279013</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-16T00:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent help need with ABAP code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-help-need-with-abap-code/m-p/1624222#M279014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Narendran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, I couldnt understand the usage of loop in your code. I have to write the code in the upate rules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help me with the problem in the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This update rules is for object of type NUMC of legth 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the Z_VAL is of type Char of lenght 7.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on the value of the last 3 digits in Z_VAL i have to concatenate the value to the result. In this case when i execute, only the else statement is getting executed. i dont know why the if loop fails. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if COMM_STRUCTURE-/BIC/Z_VAL+4(3) = '1' or&lt;/P&gt;&lt;P&gt;   COMM_STRUCTURE-/BIC/Z_VAL+4(3) = '2' or&lt;/P&gt;&lt;P&gt;   COMM_STRUCTURE-/BIC/Z_VAL+4(3) = '3'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   concatenate COMM_STRUCTURE-/BIC/Z_VAL(4) '1' into RESULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;elseif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   COMM_STRUCTURE-/BIC/Z_VAL+4(3) = '4' or&lt;/P&gt;&lt;P&gt;   COMM_STRUCTURE-/BIC/Z_VAL+4(3) = '5' or&lt;/P&gt;&lt;P&gt;   COMM_STRUCTURE-/BIC/Z_VAL+4(3) = '6'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   concatenate COMM_STRUCTURE-/BIC/Z_VAL(4) '2' into RESULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;elseif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   COMM_STRUCTURE-/BIC/Z_VAL+4(3) = '7' or&lt;/P&gt;&lt;P&gt;   COMM_STRUCTURE-/BIC/Z_VAL+4(3) = '8' or&lt;/P&gt;&lt;P&gt;   COMM_STRUCTURE-/BIC/Z_VAL+4(3) = '9'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   concatenate COMM_STRUCTURE-/BIC/Z_VAL(4) '3' into RESULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; else.&lt;/P&gt;&lt;P&gt;   concatenate COMM_STRUCTURE-/BIC/Z_VAL(4) '4' into RESULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me regarding this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;aarthi&lt;/P&gt;&lt;P&gt;aarthi.sap@gmail.com&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2006 00:47:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-help-need-with-abap-code/m-p/1624222#M279014</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-16T00:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent help need with ABAP code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-help-need-with-abap-code/m-p/1624223#M279015</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;  You have check '001' instead of '1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if COMM_STRUCTURE-/BIC/Z_VAL+4(3) = '001' or&lt;/P&gt;&lt;P&gt;COMM_STRUCTURE-/BIC/Z_VAL+4(3) = '002' or&lt;/P&gt;&lt;P&gt;COMM_STRUCTURE-/BIC/Z_VAL+4(3) = '003'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2006 00:59:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-help-need-with-abap-code/m-p/1624223#M279015</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-16T00:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent help need with ABAP code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-help-need-with-abap-code/m-p/1624224#M279016</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;As mentioned,you need to check all the 3 characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if COMM_STRUCTURE-/BIC/Z_VAL+4(3) = '001' or&lt;/P&gt;&lt;P&gt;COMM_STRUCTURE-/BIC/Z_VAL+4(3) = '002' or&lt;/P&gt;&lt;P&gt;COMM_STRUCTURE-/BIC/Z_VAL+4(3) = '003'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate COMM_STRUCTURE-/BIC/Z_VAL(4) '1' into RESULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;elseif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COMM_STRUCTURE-/BIC/Z_VAL+4(3) = '004' or&lt;/P&gt;&lt;P&gt;COMM_STRUCTURE-/BIC/Z_VAL+4(3) = '005' or&lt;/P&gt;&lt;P&gt;COMM_STRUCTURE-/BIC/Z_VAL+4(3) = '006'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate COMM_STRUCTURE-/BIC/Z_VAL(4) '2' into RESULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;elseif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COMM_STRUCTURE-/BIC/Z_VAL+4(3) = '007' or&lt;/P&gt;&lt;P&gt;COMM_STRUCTURE-/BIC/Z_VAL+4(3) = '008' or&lt;/P&gt;&lt;P&gt;COMM_STRUCTURE-/BIC/Z_VAL+4(3) = '009'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate COMM_STRUCTURE-/BIC/Z_VAL(4) '3' into RESULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;concatenate COMM_STRUCTURE-/BIC/Z_VAL(4) '4' into RESULT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2006 04:00:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/urgent-help-need-with-abap-code/m-p/1624224#M279016</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2006-10-16T04:00:34Z</dc:date>
    </item>
  </channel>
</rss>

