<?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: plz help in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/plz-help/m-p/2499481#M564648</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sanjana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can not use same table in join.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Solution:&lt;/P&gt;&lt;P&gt;1.&lt;/P&gt;&lt;P&gt;Create a the info set by direct database selection&lt;/P&gt;&lt;P&gt;Give the table name VBRP.&lt;/P&gt;&lt;P&gt;2.&lt;/P&gt;&lt;P&gt;Go to the 'Code' tab.&lt;/P&gt;&lt;P&gt;Create extra fields those you wan to display in the list.&lt;/P&gt;&lt;P&gt;3.&lt;/P&gt;&lt;P&gt;In the code section select the 'Data'&lt;/P&gt;&lt;P&gt;declare a work area&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: wa_vbrp LIKE vbrp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Now select the list processing.&lt;/P&gt;&lt;P&gt;Please enter this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR wa_vbrp&lt;/P&gt;&lt;P&gt;Select single * from VBRP &lt;/P&gt;&lt;P&gt;where vbeln   =  vbrp-vbeln   "&amp;lt;---this is already selected by query &lt;/P&gt;&lt;P&gt;   and posnr =   vbrp-posnr   &lt;/P&gt;&lt;P&gt;   and kzwi2 &amp;lt;&amp;gt; vbrp-kzwi4. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Important step.&lt;/P&gt;&lt;P&gt;5. For each extra fields declared please populate the code like this:&lt;/P&gt;&lt;P&gt;Example you have declared a extra field EXTRA_VBELN for VBELN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR EXTRA_VBELN.&lt;/P&gt;&lt;P&gt;IF NOT wa_vbrp is initial.&lt;/P&gt;&lt;P&gt;EXTRA_VBELN = wa_vbrp-vbeln.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Likewise you populate each extra fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the query Q01, in the list output select those extra fields only.&lt;/P&gt;&lt;P&gt;Your list will display all the desired list plus few blank lines.&lt;/P&gt;&lt;P&gt;Ignor the blank lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;A.Singh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Jul 2007 14:46:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-17T14:46:13Z</dc:date>
    <item>
      <title>plz help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/plz-help/m-p/2499473#M564640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello friends,&lt;/P&gt;&lt;P&gt;i was try to get all the line items in vbrp table where two fields donnot match&lt;/P&gt;&lt;P&gt;ie.&lt;/P&gt;&lt;P&gt;display all the document numbers where fields kzwi2 not equal to kzwi4.&lt;/P&gt;&lt;P&gt;in order to do this i thougt of creating 2 aliases a and b for the table vbrp in sq02.&lt;/P&gt;&lt;P&gt;and then thought of joining them,&lt;/P&gt;&lt;P&gt;but i created alis but its not appearing there are the screen, i dont know how to handle this.&lt;/P&gt;&lt;P&gt;does any body have correct idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you are thinking of coding for this , where and how do we put  this  code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2007 13:53:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/plz-help/m-p/2499473#M564640</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-17T13:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: plz help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/plz-help/m-p/2499474#M564641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sanjana,&lt;/P&gt;&lt;P&gt;     YOu cannot have a simple query for this. You need a bit of ABAP here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First get the VBRP data into an internal table for the selection criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_VBRP.&lt;/P&gt;&lt;P&gt;if it_vbrp-kzwi2 &amp;lt;&amp;gt; it_vbrp-kzwi4.&lt;/P&gt;&lt;P&gt;delete it_vbrp index sy-tabix.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2007 13:55:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/plz-help/m-p/2499474#M564641</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-17T13:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: plz help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/plz-help/m-p/2499475#M564642</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;get the VBRP data into itab for the selection criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_VBRP.&lt;/P&gt;&lt;P&gt;if itab_vbrp-kzwi2 NE itab_vbrp-kzwi4.&lt;/P&gt;&lt;P&gt;delete itab_vbrp index sy-tabix.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where itab_vbrp should contain kzwi2 kzwi4 of type or like any......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Divya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2007 13:59:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/plz-help/m-p/2499475#M564642</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-17T13:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: plz help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/plz-help/m-p/2499476#M564643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think it is possible using SQ02 Transaction,make it is as ABAP report,then use loop endloop,within loop keep the condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you do not know how to write the code,then get the ABAP Developer Help..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2007 14:04:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/plz-help/m-p/2499476#M564643</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-17T14:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: plz help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/plz-help/m-p/2499477#M564644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you friends for the precious replies,&lt;/P&gt;&lt;P&gt;i  can do this work with report in no time,&lt;/P&gt;&lt;P&gt;but my lead is insisting to do it  with abap query,&lt;/P&gt;&lt;P&gt;can any one plz  help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2007 14:15:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/plz-help/m-p/2499477#M564644</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-17T14:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: plz help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/plz-help/m-p/2499478#M564645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sanjana!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you send mo the specs for your project so that i can help...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Mackoy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2007 14:19:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/plz-help/m-p/2499478#M564645</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-17T14:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: plz help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/plz-help/m-p/2499479#M564646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no specs only words.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2007 14:20:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/plz-help/m-p/2499479#M564646</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-17T14:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: plz help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/plz-help/m-p/2499480#M564647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;any one plz help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2007 14:33:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/plz-help/m-p/2499480#M564647</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-17T14:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: plz help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/plz-help/m-p/2499481#M564648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sanjana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can not use same table in join.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Solution:&lt;/P&gt;&lt;P&gt;1.&lt;/P&gt;&lt;P&gt;Create a the info set by direct database selection&lt;/P&gt;&lt;P&gt;Give the table name VBRP.&lt;/P&gt;&lt;P&gt;2.&lt;/P&gt;&lt;P&gt;Go to the 'Code' tab.&lt;/P&gt;&lt;P&gt;Create extra fields those you wan to display in the list.&lt;/P&gt;&lt;P&gt;3.&lt;/P&gt;&lt;P&gt;In the code section select the 'Data'&lt;/P&gt;&lt;P&gt;declare a work area&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: wa_vbrp LIKE vbrp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Now select the list processing.&lt;/P&gt;&lt;P&gt;Please enter this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR wa_vbrp&lt;/P&gt;&lt;P&gt;Select single * from VBRP &lt;/P&gt;&lt;P&gt;where vbeln   =  vbrp-vbeln   "&amp;lt;---this is already selected by query &lt;/P&gt;&lt;P&gt;   and posnr =   vbrp-posnr   &lt;/P&gt;&lt;P&gt;   and kzwi2 &amp;lt;&amp;gt; vbrp-kzwi4. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Important step.&lt;/P&gt;&lt;P&gt;5. For each extra fields declared please populate the code like this:&lt;/P&gt;&lt;P&gt;Example you have declared a extra field EXTRA_VBELN for VBELN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR EXTRA_VBELN.&lt;/P&gt;&lt;P&gt;IF NOT wa_vbrp is initial.&lt;/P&gt;&lt;P&gt;EXTRA_VBELN = wa_vbrp-vbeln.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Likewise you populate each extra fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the query Q01, in the list output select those extra fields only.&lt;/P&gt;&lt;P&gt;Your list will display all the desired list plus few blank lines.&lt;/P&gt;&lt;P&gt;Ignor the blank lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;A.Singh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2007 14:46:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/plz-help/m-p/2499481#M564648</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-17T14:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: plz help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/plz-help/m-p/2499482#M564649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the Join at the query level,we cannot compare two fields i guess. I think you can only get the similar data using query here,not the data which doesnot match.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;vamshi p&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        vamshi p&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2007 15:51:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/plz-help/m-p/2499482#M564649</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-17T15:51:01Z</dc:date>
    </item>
  </channel>
</rss>

