<?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: LOGIC URGENT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-urgent/m-p/1443569#M210774</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Loop at itab1 .&lt;/P&gt;&lt;P&gt;IF ( HKONT =  260501 or HONT = ....)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Append Itab1 to Itab2.&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;Endloop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If Itab2[] is not initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select BELNR DMBTR SHKZG from BSIS&lt;/P&gt;&lt;P&gt;into Itab3&lt;/P&gt;&lt;P&gt;for all entries in Itab2&lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;BELNR = INTAB2-BELNR&lt;/P&gt;&lt;P&gt;GJAHR = P_GJAHR&lt;/P&gt;&lt;P&gt;HKONT in (260501, 260502 and, 260503)&lt;/P&gt;&lt;P&gt;SHKZG = &amp;#147;H&amp;#148;.&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;Whether the subtract sd be in Itab3 or what....explain this clearly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Jul 2006 06:52:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-07T06:52:28Z</dc:date>
    <item>
      <title>LOGIC URGENT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-urgent/m-p/1443564#M210769</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;     CAN YOU PLEASE TELL ME THE LOGIC FOR THIS ITS URGENT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the documents contained in the INTAB1 table check whether there are any line items posted to HKONT&amp;#146;s =(260501,260502,260503) and store them in an internal table INTAB2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If yes then get the following fields from BSIS/BSAS table &lt;/P&gt;&lt;P&gt;BSIS/BSAS &amp;#150; BELNR&lt;/P&gt;&lt;P&gt;BSIS/BSAS &amp;#150; DMBTR&lt;/P&gt;&lt;P&gt;BSIS/BSAS &amp;#150; SHKZG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BELNR = INTAB2-BELNR&lt;/P&gt;&lt;P&gt;GJAHR = P_GJAHR&lt;/P&gt;&lt;P&gt;HKONT = (260501, 260502 and, 260503)&lt;/P&gt;&lt;P&gt;SHKZG = &amp;#147;H&amp;#148;.&lt;/P&gt;&lt;P&gt;Summate the BSIS/BSAS &amp;#150; DMBTR and depict against second line item and fourth line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) Subtract line1 and line2 and depict against the 3 line.&lt;/P&gt;&lt;P&gt;5) Subtract the DMBTR of 4th line from the 2nd line DMBTR and depict against the 5th line item&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jul 2006 06:00:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-urgent/m-p/1443564#M210769</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-07T06:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: LOGIC URGENT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-urgent/m-p/1443565#M210770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Get the data from first table...&lt;/P&gt;&lt;P&gt;  use the if itab1-belnr = '20654).&lt;/P&gt;&lt;P&gt;   define itab2 same structure has itab1 and&lt;/P&gt;&lt;P&gt;   append the fields to itab2 based on ur if condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop the itab2..and do validate ur other fields..on cretia u have mentioned&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jul 2006 06:13:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-urgent/m-p/1443565#M210770</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-07T06:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: LOGIC URGENT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-urgent/m-p/1443566#M210771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IF U DON'T MINE CAN YOU WRITE CODE AND GIVE ME PLEASE IT'S URGENT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jul 2006 06:19:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-urgent/m-p/1443566#M210771</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-07T06:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: LOGIC URGENT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-urgent/m-p/1443567#M210772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        Try with this code.&lt;/P&gt;&lt;P&gt;DATA ITAB2 LIKE LINE OF ITAB1.&lt;/P&gt;&lt;P&gt;DATA: &lt;/P&gt;&lt;P&gt;BEGIN OF ITAB3 OCCURS 0,&lt;/P&gt;&lt;P&gt;BELNR TYPE BSIS-BELNR,&lt;/P&gt;&lt;P&gt;DMBTR TYPE BSIS-DMBTR,&lt;/P&gt;&lt;P&gt;SHKZG TYPE BSIS-SHKZG,&lt;/P&gt;&lt;P&gt;END OF ITAB3.      &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB1 WHERE HKONT = '260501' OR HKONT = '260502 ' OR HKONT = '260503'.&lt;/P&gt;&lt;P&gt;APPEND ITAB1 TO ITAB2.&lt;/P&gt;&lt;P&gt;CLEAR ITAB2.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF ITAB2[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;SELECT BELNR DMBTR SHKZG&lt;/P&gt;&lt;P&gt;FROM BSIS&lt;/P&gt;&lt;P&gt;INTO TABLE IT_BSIS&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN ITAB2&lt;/P&gt;&lt;P&gt;INTO TABLE ITAB3&lt;/P&gt;&lt;P&gt;WHERE BELNR = ITAB2-BELNR&lt;/P&gt;&lt;P&gt;GJAHR = P_GJAHR&lt;/P&gt;&lt;P&gt;HKONT IN ('260501','260502','260503')&lt;/P&gt;&lt;P&gt;SHKZG = 'H'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF ITAB3[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;*--DO 4th and 5th steps as I didnt get from your qurey&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;Thanks,&lt;/P&gt;&lt;P&gt;Vinay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jul 2006 06:32:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-urgent/m-p/1443567#M210772</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-07T06:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: LOGIC URGENT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-urgent/m-p/1443568#M210773</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;hope it would soleve the purpose &lt;/P&gt;&lt;P&gt;data : intab2 like intab1 occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at intab1 where hkonts = (260501,260502,260503) .&lt;/P&gt;&lt;P&gt;move-corresponding intab1 to intab2.&lt;/P&gt;&lt;P&gt;append intab2.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;data : begin of it_bsis occurs 0.&lt;/P&gt;&lt;P&gt;       include structure bsis.&lt;/P&gt;&lt;P&gt;data : end of it_bsis.&lt;/P&gt;&lt;P&gt;select belnr dmbtr shkzg from bsis&lt;/P&gt;&lt;P&gt;           into corresponding fields of table it_bsis&lt;/P&gt;&lt;P&gt;           for all entries in intab2&lt;/P&gt;&lt;P&gt;         where BELNR = INTAB2-BELNR&lt;/P&gt;&lt;P&gt;         and   GJAHR = P_GJAHR&lt;/P&gt;&lt;P&gt;	 and HKONT = (260501, 260502 and, 260503)&lt;/P&gt;&lt;P&gt;         and SHKZG = &amp;#147;H&amp;#148;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not it_bsis[] is initial.&lt;/P&gt;&lt;P&gt;what type of data u want..&lt;/P&gt;&lt;P&gt; take a another with ur fields&lt;/P&gt;&lt;P&gt; and collect ur internal table.&lt;/P&gt;&lt;P&gt;loop at it_bsis.&lt;/P&gt;&lt;P&gt; it_bsis1-belnr = it_bsis-belnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;collect it_bsis1.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt; loop the it_bsis1.&lt;/P&gt;&lt;P&gt; and do subtraction..&lt;/P&gt;&lt;P&gt; and delete based on condition,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jul 2006 06:40:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-urgent/m-p/1443568#M210773</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-07T06:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: LOGIC URGENT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-urgent/m-p/1443569#M210774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Loop at itab1 .&lt;/P&gt;&lt;P&gt;IF ( HKONT =  260501 or HONT = ....)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Append Itab1 to Itab2.&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;Endloop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If Itab2[] is not initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select BELNR DMBTR SHKZG from BSIS&lt;/P&gt;&lt;P&gt;into Itab3&lt;/P&gt;&lt;P&gt;for all entries in Itab2&lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;BELNR = INTAB2-BELNR&lt;/P&gt;&lt;P&gt;GJAHR = P_GJAHR&lt;/P&gt;&lt;P&gt;HKONT in (260501, 260502 and, 260503)&lt;/P&gt;&lt;P&gt;SHKZG = &amp;#147;H&amp;#148;.&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;Whether the subtract sd be in Itab3 or what....explain this clearly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jul 2006 06:52:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-urgent/m-p/1443569#M210774</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-07T06:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: LOGIC URGENT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-urgent/m-p/1443570#M210775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THSI IS THE TOTAL PROGRAM CAN YOU SEND ME CODE [PLEASE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The retrieval logic is to be used only for displaying the accounting and assessment year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  1) Accounting Year: GJAHR-(GJAHR+1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assessment Year &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt; GJAHR&lt;EM&gt;1) &amp;#150; (GJAHR&lt;/EM&gt;2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Get the following details from BSIS/BSAS &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    BSIS/BSAS &amp;#150; BELNR&lt;/P&gt;&lt;P&gt;   BSIS/BSAS &amp;#150; DMBTR&lt;/P&gt;&lt;P&gt;  BSIS/BSAS &amp;#150; SHKZG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where&lt;/P&gt;&lt;P&gt;BSIS/BSAS &amp;#150; GJAHR = P_GJAHR&lt;/P&gt;&lt;P&gt;BSIS/BSAS &amp;#150; HKONT = (334551, 499001, 402001, 402002, 403000) and store them in an internal table INTAB1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Summate the BSIS/BSAS &amp;#150;DMBTR and depict it in the first line of the table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) For the documents contained in the INTAB1 table check whether there are any line items posted to HKONT&amp;#146;s =(260501,260502,260503) and store them in an internal table INTAB2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    If yes then get the following fields from BSIS/BSAS table &lt;/P&gt;&lt;P&gt;       BSIS/BSAS &amp;#150; BELNR&lt;/P&gt;&lt;P&gt;BSIS/BSAS &amp;#150; DMBTR&lt;/P&gt;&lt;P&gt;       BSIS/BSAS &amp;#150; SHKZG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BELNR = INTAB2-BELNR&lt;/P&gt;&lt;P&gt;GJAHR = P_GJAHR&lt;/P&gt;&lt;P&gt;HKONT = (260501, 260502 and, 260503)&lt;/P&gt;&lt;P&gt;SHKZG = &amp;#147;H&amp;#148;.&lt;/P&gt;&lt;P&gt;  Summate the BSIS/BSAS &amp;#150; DMBTR and depict against second line item and fourth line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) Subtract line1 and line2 and depict against the 3 line.&lt;/P&gt;&lt;P&gt;5) Subtract the DMBTR of 4th line from the 2nd line DMBTR and depict against the 5th line item.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jul 2006 08:24:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-urgent/m-p/1443570#M210775</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-07T08:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: LOGIC URGENT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-urgent/m-p/1443571#M210776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI VINAY,&lt;/P&gt;&lt;P&gt;    &amp;lt;b&amp;gt;I WILL SEND TOATL PROGRAM PLEASE DONT MIND . PLEASE SEND ME THE CODE.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The retrieval logic is to be used only for displaying the accounting and assessment year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  1) Accounting Year: GJAHR-(GJAHR+1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assessment Year &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt; GJAHR&lt;EM&gt;1) &amp;#150; (GJAHR&lt;/EM&gt;2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Get the following details from BSIS/BSAS &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    BSIS/BSAS &amp;#150; BELNR&lt;/P&gt;&lt;P&gt;   BSIS/BSAS &amp;#150; DMBTR&lt;/P&gt;&lt;P&gt;  BSIS/BSAS &amp;#150; SHKZG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where&lt;/P&gt;&lt;P&gt;BSIS/BSAS &amp;#150; GJAHR = P_GJAHR&lt;/P&gt;&lt;P&gt;BSIS/BSAS &amp;#150; HKONT = (334551, 499001, 402001, 402002, 403000) and store them in an internal table INTAB1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Summate the BSIS/BSAS &amp;#150;DMBTR and depict it in the first line of the table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) For the documents contained in the INTAB1 table check whether there are any line items posted to HKONT&amp;#146;s =(260501,260502,260503) and store them in an internal table INTAB2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    If yes then get the following fields from BSIS/BSAS table &lt;/P&gt;&lt;P&gt;       BSIS/BSAS &amp;#150; BELNR&lt;/P&gt;&lt;P&gt;BSIS/BSAS &amp;#150; DMBTR&lt;/P&gt;&lt;P&gt;       BSIS/BSAS &amp;#150; SHKZG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BELNR = INTAB2-BELNR&lt;/P&gt;&lt;P&gt;GJAHR = P_GJAHR&lt;/P&gt;&lt;P&gt;HKONT = (260501, 260502 and, 260503)&lt;/P&gt;&lt;P&gt;SHKZG = &amp;#147;H&amp;#148;.&lt;/P&gt;&lt;P&gt;  Summate the BSIS/BSAS &amp;#150; DMBTR and depict against second line item and fourth line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) Subtract line1 and line2 and depict against the 3 line.&lt;/P&gt;&lt;P&gt;5) Subtract the DMBTR of 4th line from the 2nd line DMBTR and depict against the 5th line item.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jul 2006 08:33:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-urgent/m-p/1443571#M210776</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-07T08:33:03Z</dc:date>
    </item>
  </channel>
</rss>

