<?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: whats wrong with this code logic ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/whats-wrong-with-this-code-logic/m-p/1472027#M221767</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please paste ur complete code here not like &lt;/P&gt;&lt;P&gt;// is this following also correct or wrong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which is causing problem..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Abdul Hakim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Jul 2006 21:37:52 GMT</pubDate>
    <dc:creator>abdul_hakim</dc:creator>
    <dc:date>2006-07-28T21:37:52Z</dc:date>
    <item>
      <title>whats wrong with this code logic ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/whats-wrong-with-this-code-logic/m-p/1472021#M221761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hellom&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check out this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at t_bseg into wa_bseg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at new belnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// is this following also correct or wrong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if KOART EQ 'K'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// pick up vendor's WRBTR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// pick up other line item's WRBTR ( how ?? )&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;endat.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;basically what i wanna do is, iterate thru bseg  and select vendor line item and other line items separately(cuz i have to show them in different columns).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when i do,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT NEW BELNR.&lt;/P&gt;&lt;P&gt;   IF bseg-KOART EQ 'K'.&lt;/P&gt;&lt;P&gt;   //&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt;ENDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am getting no value, whereas i get value when i remove the 'AT NEW BELNR' condition.&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;Shehryar Dahar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2006 21:08:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/whats-wrong-with-this-code-logic/m-p/1472021#M221761</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-28T21:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: whats wrong with this code logic ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/whats-wrong-with-this-code-logic/m-p/1472022#M221762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Within the at new end at stmnts, other than belnr, all the fields have *. That is why you are not seeing anything.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2006 21:10:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/whats-wrong-with-this-code-logic/m-p/1472022#M221762</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-28T21:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: whats wrong with this code logic ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/whats-wrong-with-this-code-logic/m-p/1472023#M221763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Between AT and ENDAT the content of workarea will not contain any value.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Abdul Hakim&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark all useful answers.Plz close the thread if your question has been answered.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2006 21:11:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/whats-wrong-with-this-code-logic/m-p/1472023#M221763</guid>
      <dc:creator>abdul_hakim</dc:creator>
      <dc:date>2006-07-28T21:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: whats wrong with this code logic ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/whats-wrong-with-this-code-logic/m-p/1472024#M221764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use &amp;lt;b&amp;gt;wa_bseg&amp;lt;/b&amp;gt; values for codition checks in &amp;lt;b&amp;gt;at new&amp;lt;/b&amp;gt; and &amp;lt;b&amp;gt;end at&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds&lt;/P&gt;&lt;P&gt;Manohar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2006 21:22:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/whats-wrong-with-this-code-logic/m-p/1472024#M221764</guid>
      <dc:creator>Manohar2u</dc:creator>
      <dc:date>2006-07-28T21:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: whats wrong with this code logic ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/whats-wrong-with-this-code-logic/m-p/1472025#M221765</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;then maybe u can help me out. Suppose i have made a payment ( document type 'KZ')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
                debit         credit
bank            9,500                
Tax              500
vendor                        10,000

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I am making a report for cleared items (document type 'KZ') in which i have 3 columns in which i have to show sumthing like this(against each vendor in the bseg),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;col1      col2      col 3&lt;/P&gt;&lt;P&gt;10,000    9,500     500&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;each line item in my report will be of a vendor so i have to give a consition like (KOART = 'K') but i also have to show WRBTR of other line items(of the same document) in the respective columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you demostrate with an example or sumthing..&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;Shehryar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: shehryar dahar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2006 21:31:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/whats-wrong-with-this-code-logic/m-p/1472025#M221765</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-28T21:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: whats wrong with this code logic ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/whats-wrong-with-this-code-logic/m-p/1472026#M221766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi manohar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i didnt get it. Can u plz demonstrate with an example?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2006 21:36:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/whats-wrong-with-this-code-logic/m-p/1472026#M221766</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-28T21:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: whats wrong with this code logic ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/whats-wrong-with-this-code-logic/m-p/1472027#M221767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please paste ur complete code here not like &lt;/P&gt;&lt;P&gt;// is this following also correct or wrong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which is causing problem..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Abdul Hakim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2006 21:37:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/whats-wrong-with-this-code-logic/m-p/1472027#M221767</guid>
      <dc:creator>abdul_hakim</dc:creator>
      <dc:date>2006-07-28T21:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: whats wrong with this code logic ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/whats-wrong-with-this-code-logic/m-p/1472028#M221768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AT NEW BELNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*IF bseg-KOART EQ 'K'.&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;if wa_bseg-koart eq 'K'.  ---&amp;gt; Use wa_bseg &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;ENDAT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2006 21:38:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/whats-wrong-with-this-code-logic/m-p/1472028#M221768</guid>
      <dc:creator>Manohar2u</dc:creator>
      <dc:date>2006-07-28T21:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: whats wrong with this code logic ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/whats-wrong-with-this-code-logic/m-p/1472029#M221769</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;Manohar...yes i am using wa_bseg .. but its same problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2006 21:42:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/whats-wrong-with-this-code-logic/m-p/1472029#M221769</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-28T21:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: whats wrong with this code logic ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/whats-wrong-with-this-code-logic/m-p/1472030#M221770</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;Abdul.. can u see my post in this thread 'Jul 28, 2006 5:31 PM'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;basically i am looping thru bseg(all item of document type 'KZ'). When i come across a document number(suppose it has three line items, 2 debit line items(bank and tax) and 1 credit line item(vendor). i want to show sumthing like this in my report,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

col1              col2          col3           col4

vendor name    credit(WRBTR)  debit(WRBTR)   debit(WRBTR)
....            ....             .....          .....
....            ....             .....          .....
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to go on doing this ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2006 21:51:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/whats-wrong-with-this-code-logic/m-p/1472030#M221770</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-28T21:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: whats wrong with this code logic ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/whats-wrong-with-this-code-logic/m-p/1472031#M221771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at t_bseg.&lt;/P&gt;&lt;P&gt; move t_bseg into wa_bseg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at new belnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// is this following also correct or wrong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if WA_BSEG-KOART EQ 'K'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// pick up vendor's WRBTR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// pick up other line item's WRBTR ( how ?? )&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;endat.&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, 28 Jul 2006 21:52:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/whats-wrong-with-this-code-logic/m-p/1472031#M221771</guid>
      <dc:creator>former_member195698</dc:creator>
      <dc:date>2006-07-28T21:52:25Z</dc:date>
    </item>
  </channel>
</rss>

