<?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: Fetching data from vbak, vbap, vbrp giving error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-data-from-vbak-vbap-vbrp-giving-error/m-p/8550080#M1658118</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;Can you provide detail description of error in which piece of code the error is getting populated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Goutam Kolluru.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Feb 2012 10:12:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-02-08T10:12:48Z</dc:date>
    <item>
      <title>Fetching data from vbak, vbap, vbrp giving error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-data-from-vbak-vbap-vbrp-giving-error/m-p/8550079#M1658117</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;I am new to ABAP and geeting error for the following code.....please guide....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;lt;Removed code&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator Message: Post the relevant portions of the code only &amp;amp; give more specific details of the error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Suhas Saha on Feb 8, 2012 3:42 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 10:02:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-data-from-vbak-vbap-vbrp-giving-error/m-p/8550079#M1658117</guid>
      <dc:creator>anuja_s</dc:creator>
      <dc:date>2012-02-08T10:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching data from vbak, vbap, vbrp giving error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-data-from-vbak-vbap-vbrp-giving-error/m-p/8550080#M1658118</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;Can you provide detail description of error in which piece of code the error is getting populated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Goutam Kolluru.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 10:12:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-data-from-vbak-vbap-vbrp-giving-error/m-p/8550080#M1658118</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-08T10:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching data from vbak, vbap, vbrp giving error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-data-from-vbak-vbap-vbrp-giving-error/m-p/8550081#M1658119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT  vbap~vbeln vbap~POSNR vbap~MATNR vbap~MATWA vbap~PMATN
  FROM VBAP INNER JOIN VBAK
  ON VBAK~VBELN = VBAP~VBELN
  INTO CORRESPONDING FIELDS OF TABLE IT_VBAP
FOR ALL ENTRIES IN IT_VBAK
WHERE VBAP~vbeln = IT_VBAK-vbeln.

SELECT    VBELN ERDAT ERZET
   FROM  VBAK  INTO CORRESPONDING FIELDS OF TABLE IT_VBAK
   WHERE      ERDAT        IN  s_ERDAT.

DATA : BEGIN OF IT_FINAL OCCURS 0,

              MANDT TYPE MANDT,
              VBELN TYPE VBELN_VA,
              ERDAT TYPE ERDAT,
              ERZET TYPE ERZET,
              TMSTMP TYPE TSTAMP,
              POSNR TYPE POSNR_VA,
              MATNR TYPE MATNR,
              MATWA TYPE MATWA,
              PMATN TYPE PMATN,
              STDAT TYPE STDAT,
              GSBER TYPE GSBER,
              VBELV TYPE VBELV,
              AUREF TYPE AUREF,
              PRSDT TYPE PRSDT,

       END OF IT_FINAL.

       data: wa_final like line of it_final.
loop at it_vbak.


it_final-MANDT = IT_VBAK-MANDT.
it_final-VBELN = IT_VBAK-VBELN.
it_final-ERDAT = IT_VBAK-ERDAT.
it_final-ERZET = IT_VBAK-ERZET.
it_final-TMSTMP = TIMESTAMP.

 loop at it_vbap.

 it_final-POSNR = IT_VBAP-POSNR.
it_final-MATNR = IT_VBAP-MATNR.
it_final-MATWA = IT_VBAP-MATWA.
it_final-PMATN = IT_VBAP-PMATN.
it_final-STDAT = IT_VBAP-STDAT.
append it_final.

endloop.
endloop.

MODIFY ZTABLE_16 FROM TABLE IT_VBAK.
MODIFY ZTABLE_16 FROM TABLE IT_VBAP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;lt;Modified the code format&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error Message :The work area "IT_VBAK" is not long enough ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Suhas Saha on Feb 8, 2012 3:58 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 10:27:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-data-from-vbak-vbap-vbrp-giving-error/m-p/8550081#M1658119</guid>
      <dc:creator>anuja_s</dc:creator>
      <dc:date>2012-02-08T10:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching data from vbak, vbap, vbrp giving error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-data-from-vbak-vbap-vbrp-giving-error/m-p/8550082#M1658120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this is not the way to code &lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;DEL&gt;yar&lt;/DEL&gt;&lt;/SPAN&gt;, Try to learn Basic thing in browsing the way you code itself wrong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;lt;Removed irrelevant coding&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Suhas Saha on Feb 8, 2012 4:15 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 10:36:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-data-from-vbak-vbap-vbrp-giving-error/m-p/8550082#M1658120</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-08T10:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching data from vbak, vbap, vbrp giving error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-data-from-vbak-vbap-vbrp-giving-error/m-p/8550083#M1658121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey i changed the code....Now im getting data from vbrp but not getting from vbak.....The code is as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT VBELN
       ERDAT
       ERZET
       MAHZA
       STWAE
       FROM VBAK
       INTO TABLE IT_VBAK.

SELECT VBELN
       ERDAT
       ERZET
       POSNR
       STADAT
       ZMENG
       ZIEME
       FROM VBAP
       INTO TABLE IT_VBAP
       FOR ALL ENTRIES IN IT_VBAK
       WHERE VBELN = IT_VBAK-VBELN.

 loop at it_vbap.
       concatenate it_vbap-erdat it_vbap-erzet into TIMEstamp.
       it_final-vbeln = it_vbap-vbeln.
       it_final-ERDAT = it_vbap-ERDAT.
       it_final-ERZET = it_vbap-ERZET.
       it_final-MAHZA = it_vbak-MAHZA.
       it_final-STWAE = it_vbak-STWAE.
       it_final-POSNR = it_vbap-POSNR.
       it_final-STADAT = it_vbap-STADAT.
       it_final-ZMENG = it_vbap-ZMENG.
       it_final-ZIEME = it_vbap-ZIEME.
       it_final-TMSTMP = TIMEstamp.

       append it_final.
        insert into ztable_20 values it_final.
       endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anuja&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: anujas on Feb 9, 2012 6:17 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: anujas on Feb 9, 2012 6:19 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2012 05:16:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-data-from-vbak-vbap-vbrp-giving-error/m-p/8550083#M1658121</guid>
      <dc:creator>anuja_s</dc:creator>
      <dc:date>2012-02-09T05:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching data from vbak, vbap, vbrp giving error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-data-from-vbak-vbap-vbrp-giving-error/m-p/8550084#M1658122</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;you have to read the internal table IT_VBAK with key VBELN before moving your fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2012 05:31:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-data-from-vbak-vbap-vbrp-giving-error/m-p/8550084#M1658122</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-09T05:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching data from vbak, vbap, vbrp giving error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-data-from-vbak-vbap-vbrp-giving-error/m-p/8550085#M1658123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i donno how to...&lt;/P&gt;&lt;P&gt;can u please show me where and how to write code for that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2012 05:32:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-data-from-vbak-vbap-vbrp-giving-error/m-p/8550085#M1658123</guid>
      <dc:creator>anuja_s</dc:creator>
      <dc:date>2012-02-09T05:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching data from vbak, vbap, vbrp giving error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-data-from-vbak-vbap-vbrp-giving-error/m-p/8550086#M1658124</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;u can do by this following example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use this inside the loop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE IT_vbak  INTO WA_vbak WITH  KEY  vbeln = WA_FINAL-vbeln.&lt;/P&gt;&lt;P&gt;&amp;amp; give the final records as follows&lt;/P&gt;&lt;P&gt;       WA_FINAL-FKLMG       = WA_vbrp-FKLMG.&lt;/P&gt;&lt;P&gt;       WA_FINAL-MATNR       = WA_vbrp-MATNR.&lt;/P&gt;&lt;P&gt;       WA_FINAL-ARKTX       = WA_vbrp-ARKTX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u have to read all the records into final internal table&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;chaitanya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Chaitanya.M on Feb 9, 2012 7:13 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Chaitanya.M on Feb 9, 2012 7:13 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2012 06:12:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-data-from-vbak-vbap-vbrp-giving-error/m-p/8550086#M1658124</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-09T06:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching data from vbak, vbap, vbrp giving error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-data-from-vbak-vbap-vbrp-giving-error/m-p/8550087#M1658125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Thanks Klaus and chaitanya....The error is resolved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2012 06:46:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-data-from-vbak-vbap-vbrp-giving-error/m-p/8550087#M1658125</guid>
      <dc:creator>anuja_s</dc:creator>
      <dc:date>2012-02-10T06:46:19Z</dc:date>
    </item>
  </channel>
</rss>

