<?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: I need help in my code.. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-help-in-my-code/m-p/3337149#M799877</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TABLES: vbpa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ranges: r_parvw for vbpa-parvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of i_vbpa occurs 0,&lt;/P&gt;&lt;P&gt;      vbeln like vbpa-vbeln,&lt;/P&gt;&lt;P&gt;      posnr like vbpa-posnr,&lt;/P&gt;&lt;P&gt;      kunnr  like vbpa-kunnr,&lt;/P&gt;&lt;P&gt;      parvw  like vbpa-parvw,&lt;/P&gt;&lt;P&gt;      end of i_vbpa.&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF i_final OCCURS 0,&lt;/P&gt;&lt;P&gt;      vbeln LIKE  vbpa-vbeln,&lt;/P&gt;&lt;P&gt;      posnr LIKE vbpa-posnr,&lt;/P&gt;&lt;P&gt;      kunnr  LIKE vbpa-kunnr,&lt;/P&gt;&lt;P&gt;      parvw  LIKE vbpa-parvw,&lt;/P&gt;&lt;P&gt;      END OF i_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;r_parvw-low = 'AG'.&lt;/P&gt;&lt;P&gt;r_parvw-sign = 'I'.&lt;/P&gt;&lt;P&gt;r_parvw-option = 'EQ'.&lt;/P&gt;&lt;P&gt;APPEND r_parvw.&lt;/P&gt;&lt;P&gt;r_parvw-low = 'RE'.&lt;/P&gt;&lt;P&gt;APPEND r_parvw.&lt;/P&gt;&lt;P&gt;r_parvw-low = 'RG'.&lt;/P&gt;&lt;P&gt;APPEND r_parvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT vbeln&lt;/P&gt;&lt;P&gt;       posnr&lt;/P&gt;&lt;P&gt;       kunnr&lt;/P&gt;&lt;P&gt;       parvw&lt;/P&gt;&lt;P&gt;  FROM vbpa&lt;/P&gt;&lt;P&gt;  INTO TABLE i_vbpa&lt;/P&gt;&lt;P&gt; UP TO 50 ROWS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_vbpa where parvw in r_parvw.&lt;/P&gt;&lt;P&gt; i_final = i_vbpa.&lt;/P&gt;&lt;P&gt; append i_final.&lt;/P&gt;&lt;P&gt; clear i_final.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*OR&lt;/P&gt;&lt;P&gt;loop at i_vbpa where parvw eq 'AG' or parvw EQ 'RE' or parvw EQ 'RG'.&lt;/P&gt;&lt;P&gt; i_final = i_vbpa.&lt;/P&gt;&lt;P&gt; append i_final.&lt;/P&gt;&lt;P&gt; clear i_final.&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;loop at i_final.&lt;/P&gt;&lt;P&gt; write:/ i_final-vbeln,i_final-posnr,i_final-kunnr,i_final-parvw.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Feb 2008 06:39:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-07T06:39:16Z</dc:date>
    <item>
      <title>I need help in my code..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-help-in-my-code/m-p/3337144#M799872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am  the fields populating my internal tables and i am printing data from there. but i dont want to populate tables for some&lt;/P&gt;&lt;P&gt;value of a particular column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How will be the WHere condition ....?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose one of the column in internal table is 'partner type'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to only populate for 'SP', 'BP','PH' .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2008 06:11:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-help-in-my-code/m-p/3337144#M799872</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-07T06:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: I need help in my code..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-help-in-my-code/m-p/3337145#M799873</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;loop at itab where partner type = 'SP' or partner type = 'BP' partner type = 'PH' .&lt;/P&gt;&lt;P&gt;write : /partner type.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;jose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2008 06:15:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-help-in-my-code/m-p/3337145#M799873</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-07T06:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: I need help in my code..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-help-in-my-code/m-p/3337146#M799874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;wHERE IS THE PROBLEM ?? HERE  REGARDING MY ABOVE QUESTION &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT &lt;/P&gt;&lt;P&gt;       VBPA~VBELN&lt;/P&gt;&lt;P&gt;        vbpa~adrnr&lt;/P&gt;&lt;P&gt;        VBPA~PARVW&lt;/P&gt;&lt;P&gt;        VBPA~KUNNR&lt;/P&gt;&lt;P&gt;        VBPA~ADRNP&lt;/P&gt;&lt;P&gt;        TPART~VTEXT&lt;/P&gt;&lt;P&gt;FROM VBPA AS VBPA&lt;/P&gt;&lt;P&gt;INNER JOIN TPART AS TPART&lt;/P&gt;&lt;P&gt;ON VBPA&lt;SUB&gt;PARVW EQ TPART&lt;/SUB&gt;PARVW&lt;/P&gt;&lt;P&gt;AND SPRAS = SY-LANGU&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE I_PARTNER&lt;/P&gt;&lt;P&gt;WHERE VBPA~VBELN EQ S_VBELN&lt;/P&gt;&lt;P&gt;and  VBPA~PARVW EQ  "SP"&lt;/P&gt;&lt;P&gt;OR   VBPA~PARVW EQ  "BP" &lt;/P&gt;&lt;P&gt;OR   VBPA~PARVW  EQ  "SH".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2008 06:22:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-help-in-my-code/m-p/3337146#M799874</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-07T06:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: I need help in my code..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-help-in-my-code/m-p/3337147#M799875</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;PRE&gt;&lt;CODE&gt;SELECT 
VBPA~VBELN
vbpa~adrnr
VBPA~PARVW
VBPA~KUNNR
VBPA~ADRNP
TPART~VTEXT
FROM VBPA AS VBPA
INNER JOIN TPART AS TPART
ON VBPA~PARVW EQ TPART~PARVW
AND SPRAS = SY-LANGU
INTO CORRESPONDING FIELDS OF TABLE I_PARTNER
WHERE VBPA~VBELN EQ S_VBELN "if s_vbeln is select-option change it like this VBPA~VBELN IN S_VBELN
and ( VBPA~PARVW EQ 'SP'  "brackets , single quotes
OR VBPA~PARVW EQ 'BP' 
OR VBPA~PARVW EQ 'SH' ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;jose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2008 06:24:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-help-in-my-code/m-p/3337147#M799875</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-07T06:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: I need help in my code..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-help-in-my-code/m-p/3337148#M799876</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;In the above scenario, the internal table i_partner will have values only if the partner type is SP, BP or SH. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you can just write the values from the internal table i_partner just as it is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2008 06:27:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-help-in-my-code/m-p/3337148#M799876</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-07T06:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: I need help in my code..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-help-in-my-code/m-p/3337149#M799877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TABLES: vbpa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ranges: r_parvw for vbpa-parvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of i_vbpa occurs 0,&lt;/P&gt;&lt;P&gt;      vbeln like vbpa-vbeln,&lt;/P&gt;&lt;P&gt;      posnr like vbpa-posnr,&lt;/P&gt;&lt;P&gt;      kunnr  like vbpa-kunnr,&lt;/P&gt;&lt;P&gt;      parvw  like vbpa-parvw,&lt;/P&gt;&lt;P&gt;      end of i_vbpa.&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF i_final OCCURS 0,&lt;/P&gt;&lt;P&gt;      vbeln LIKE  vbpa-vbeln,&lt;/P&gt;&lt;P&gt;      posnr LIKE vbpa-posnr,&lt;/P&gt;&lt;P&gt;      kunnr  LIKE vbpa-kunnr,&lt;/P&gt;&lt;P&gt;      parvw  LIKE vbpa-parvw,&lt;/P&gt;&lt;P&gt;      END OF i_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;r_parvw-low = 'AG'.&lt;/P&gt;&lt;P&gt;r_parvw-sign = 'I'.&lt;/P&gt;&lt;P&gt;r_parvw-option = 'EQ'.&lt;/P&gt;&lt;P&gt;APPEND r_parvw.&lt;/P&gt;&lt;P&gt;r_parvw-low = 'RE'.&lt;/P&gt;&lt;P&gt;APPEND r_parvw.&lt;/P&gt;&lt;P&gt;r_parvw-low = 'RG'.&lt;/P&gt;&lt;P&gt;APPEND r_parvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT vbeln&lt;/P&gt;&lt;P&gt;       posnr&lt;/P&gt;&lt;P&gt;       kunnr&lt;/P&gt;&lt;P&gt;       parvw&lt;/P&gt;&lt;P&gt;  FROM vbpa&lt;/P&gt;&lt;P&gt;  INTO TABLE i_vbpa&lt;/P&gt;&lt;P&gt; UP TO 50 ROWS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_vbpa where parvw in r_parvw.&lt;/P&gt;&lt;P&gt; i_final = i_vbpa.&lt;/P&gt;&lt;P&gt; append i_final.&lt;/P&gt;&lt;P&gt; clear i_final.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*OR&lt;/P&gt;&lt;P&gt;loop at i_vbpa where parvw eq 'AG' or parvw EQ 'RE' or parvw EQ 'RG'.&lt;/P&gt;&lt;P&gt; i_final = i_vbpa.&lt;/P&gt;&lt;P&gt; append i_final.&lt;/P&gt;&lt;P&gt; clear i_final.&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;loop at i_final.&lt;/P&gt;&lt;P&gt; write:/ i_final-vbeln,i_final-posnr,i_final-kunnr,i_final-parvw.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2008 06:39:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-help-in-my-code/m-p/3337149#M799877</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-07T06:39:16Z</dc:date>
    </item>
  </channel>
</rss>

