<?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: Fetch VBPA data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-vbpa-data/m-p/7710214#M1579031</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nagarjuna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually your code  is perfect I tried in my system its fetching data.&lt;/P&gt;&lt;P&gt;Do one thing directly goto se11--&amp;gt; Vbpa table ---&amp;gt; in Selection Screen Pass the the vales you are getting from it_vbak-vbeln&lt;/P&gt;&lt;P&gt;( you can take it in debug mode in excel from your program) and the Posnr field as '000000' and also the ranges for parvw as it contains only 4 records so no problem you can pass it in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check it once whther the output you are getting from your program and the output you are getting from Se11 are same or not.&lt;/P&gt;&lt;P&gt;You can judge it there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would also request you to find that it_vbak[] consist some data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Arbind&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 27 Feb 2011 16:55:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-02-27T16:55:46Z</dc:date>
    <item>
      <title>Fetch VBPA data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-vbpa-data/m-p/7710202#M1579019</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;I was unable to fetch contract's header partner function where as my select query returning all partner function of that contract.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example if 100 CSEs are there in contract I have to fetch CSE for that entire contract where POSNR is '000000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pl see my code . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT vbeln&lt;/P&gt;&lt;P&gt;        parvw&lt;/P&gt;&lt;P&gt;        pernr&lt;/P&gt;&lt;P&gt;   FROM vbpa&lt;/P&gt;&lt;P&gt;   INTO TABLE it_vbpa&lt;/P&gt;&lt;P&gt;   FOR ALL ENTRIES IN it_vbak&lt;/P&gt;&lt;P&gt;   WHERE vbeln EQ it_vbak-vbeln&lt;/P&gt;&lt;P&gt;     AND posnr EQ '000000'&lt;/P&gt;&lt;P&gt;     AND parvw IN r_parvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2011 13:18:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-vbpa-data/m-p/7710202#M1579019</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-25T13:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch VBPA data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-vbpa-data/m-p/7710203#M1579020</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 to write the code as below..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT vbeln
parvw
pernr
FROM vbpa
INTO TABLE it_vbpa
FOR ALL ENTRIES IN it_vbak
WHERE vbeln EQ it_vbak-vbeln
AND posnr EQ space
AND parvw IN r_parvw.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Arbind&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2011 13:27:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-vbpa-data/m-p/7710203#M1579020</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-25T13:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch VBPA data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-vbpa-data/m-p/7710204#M1579021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arbind,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It doesn't work too..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2011 13:29:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-vbpa-data/m-p/7710204#M1579021</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-25T13:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch VBPA data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-vbpa-data/m-p/7710205#M1579022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check for conversion exit for PARVW&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2011 13:29:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-vbpa-data/m-p/7710205#M1579022</guid>
      <dc:creator>prasoon_sahay</dc:creator>
      <dc:date>2011-02-25T13:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch VBPA data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-vbpa-data/m-p/7710206#M1579023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PARVW condition is perfect..it is failing just becuase of the POSNR..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2011 13:33:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-vbpa-data/m-p/7710206#M1579023</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-25T13:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch VBPA data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-vbpa-data/m-p/7710207#M1579024</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;Please check what values you are passing to Partner Function Range.&lt;/P&gt;&lt;P&gt;I thnik r_parvw may be the problem, since posnr you already passed as space.&lt;/P&gt;&lt;P&gt;So code is ok,check the ranges value in debug mode and pass it to VBPA table to see whether you are &lt;/P&gt;&lt;P&gt;getting the correct data.&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;Arbind&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2011 13:37:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-vbpa-data/m-p/7710207#M1579024</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-25T13:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch VBPA data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-vbpa-data/m-p/7710208#M1579025</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;I have checked PARVW ranges in debug ..the table is populating fine....something we have to do with this POSNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2011 13:40:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-vbpa-data/m-p/7710208#M1579025</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-25T13:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch VBPA data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-vbpa-data/m-p/7710209#M1579026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes just check the ranges, as this might be only problem. Rest everything is looking good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Partner functions are not same as you see in VBPA.&lt;/P&gt;&lt;P&gt;For example if you pass AG in the partner you get SP.&lt;/P&gt;&lt;P&gt;So what ever you are getting in the ranges take same and go to table VBPA and try to fetch with them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2011 13:43:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-vbpa-data/m-p/7710209#M1579026</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-25T13:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch VBPA data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-vbpa-data/m-p/7710210#M1579027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nagajuna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See since Posnr data type is Numc so you can pass '000000' or space.&lt;/P&gt;&lt;P&gt;as you found ranges is also ok.&lt;/P&gt;&lt;P&gt;Check that internal table for VBAK is populating correct data because sometimes it happens that if internal table in For entries is empty than no filter may work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This may be the reason.&lt;/P&gt;&lt;P&gt;Check it once in debug.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Arbind&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2011 13:55:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-vbpa-data/m-p/7710210#M1579027</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-25T13:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch VBPA data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-vbpa-data/m-p/7710211#M1579028</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;I agree with the previous post,  i tried your code and getting data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you should check that really for the given condn data exist in both VBAK and VBPA tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;POSNR and PARVW already have conversion exit and i think you are using range/ select-options, so conversion part is being taken care by these statements.&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;Anmol.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2011 14:11:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-vbpa-data/m-p/7710211#M1579028</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-25T14:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch VBPA data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-vbpa-data/m-p/7710212#M1579029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just for testing purpose comment the line and see if data is coming?&lt;/P&gt;&lt;P&gt;*AND parvw IN r_parvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If data is coming then loop at r_parvw and use conversion exit for each line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly comment the posnr line in where condition and then check the data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2011 14:21:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-vbpa-data/m-p/7710212#M1579029</guid>
      <dc:creator>prasoon_sahay</dc:creator>
      <dc:date>2011-02-25T14:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch VBPA data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-vbpa-data/m-p/7710213#M1579030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for ur suggestions, I need only header data but my internal table is populating with all header plus Item data....Ranges are perfect ..Have checked in debug mode It contains 4 records which I want...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the problem is with posnr ...even if i give SPACE or '000000' then all the records of VBPA are getting fetched...hope u understand it clearly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Nag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Feb 2011 14:36:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-vbpa-data/m-p/7710213#M1579030</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-27T14:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch VBPA data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-vbpa-data/m-p/7710214#M1579031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nagarjuna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually your code  is perfect I tried in my system its fetching data.&lt;/P&gt;&lt;P&gt;Do one thing directly goto se11--&amp;gt; Vbpa table ---&amp;gt; in Selection Screen Pass the the vales you are getting from it_vbak-vbeln&lt;/P&gt;&lt;P&gt;( you can take it in debug mode in excel from your program) and the Posnr field as '000000' and also the ranges for parvw as it contains only 4 records so no problem you can pass it in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check it once whther the output you are getting from your program and the output you are getting from Se11 are same or not.&lt;/P&gt;&lt;P&gt;You can judge it there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would also request you to find that it_vbak[] consist some data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Arbind&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Feb 2011 16:55:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-vbpa-data/m-p/7710214#M1579031</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-27T16:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch VBPA data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-vbpa-data/m-p/7710215#M1579032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nagarjuna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had tried with the below code. It worked. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: begin of ty_vbak,&lt;/P&gt;&lt;P&gt;      vbeln type vbak-vbeln,&lt;/P&gt;&lt;P&gt;      end of ty_vbak.&lt;/P&gt;&lt;P&gt;data: it_vbpa type standard table of vbpa,&lt;/P&gt;&lt;P&gt;      it_vbak type standard table of ty_vbak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: ls_vbak type ty_vbak,&lt;/P&gt;&lt;P&gt;      ls_vbpa type vbpa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ranges: r_parvw          FOR knvp-parvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Constants:c_inclusive(1) TYPE c VALUE 'I',&lt;/P&gt;&lt;P&gt;          c_equal(2)     TYPE c VALUE 'EQ'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR r_parvw.&lt;/P&gt;&lt;P&gt;r_parvw-low    =  'AG'.&lt;/P&gt;&lt;P&gt;r_parvw-option =  c_equal.&lt;/P&gt;&lt;P&gt;r_parvw-sign   =   c_inclusive.&lt;/P&gt;&lt;P&gt;APPEND r_parvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR ls_vbak.&lt;/P&gt;&lt;P&gt;ls_vbak-vbeln    = '0000000013'.&lt;/P&gt;&lt;P&gt;APPEND ls_vbak to it_vbak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;FROM vbpa&lt;/P&gt;&lt;P&gt;INTO TABLE it_vbpa&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN it_vbak&lt;/P&gt;&lt;P&gt;WHERE vbeln EQ it_vbak-vbeln&lt;/P&gt;&lt;P&gt;AND posnr EQ '000000'&lt;/P&gt;&lt;P&gt;AND parvw IN r_parvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please cross check the it_vbak &amp;amp; r_parvw entries at the SELECT quey in debugging. Hope it should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satish Kanteti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Feb 2011 11:59:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-vbpa-data/m-p/7710215#M1579032</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-28T11:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch VBPA data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-vbpa-data/m-p/7710216#M1579033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As POSNR is of type NUMC so in where condition put POSNR EQ 0. it works for me so i am sure will work for you as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Feb 2011 12:23:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-vbpa-data/m-p/7710216#M1579033</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-28T12:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch VBPA data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-vbpa-data/m-p/7710217#M1579034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nagarjuna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try doing this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get all the data without mentioning the POSNR field in the select statement. Once you get the data into your internal table, loop the internal table something like below&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

Loop at itab into workarea where Posnr ne '000000'
append workarea to itab1.
clear workarea.
endloop.

(OR)
Loop at itab into workarea.
if  workarea-Posnr eq '000000'
append workarea to itab1.
clear workarea.
endif.
endloop.


** You can delete the entries inside the loop based on the condition but it tries to regenerate an index everytime u delete an entry.
So, to increase the performance, it is better to append the entries to another internal table which is faster.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if this is working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Guru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Feb 2011 15:02:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-vbpa-data/m-p/7710217#M1579034</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-28T15:02:00Z</dc:date>
    </item>
  </channel>
</rss>

