<?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: va02 bapi upload data from excelsheet into sap in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/va02-bapi-upload-data-from-excelsheet-into-sap/m-p/4833016#M1130690</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; hi,&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; iam working on va02 bapi upload data from excelsheet  into sap.&lt;/P&gt;&lt;P&gt;&amp;gt; but when iam executing it iam getting an error:&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Error :	&lt;/P&gt;&lt;P&gt;&amp;gt; SD document 4970 is not in the database or has been archived&lt;/P&gt;&lt;P&gt;&amp;gt; for VBELN: 4970&lt;/P&gt;&lt;P&gt;&amp;gt; for any sales orderno its giving the same error.&lt;/P&gt;&lt;P&gt;&amp;gt; thanks&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is because of the leading zeroes, If you see in the database table..the value 4970 will be stored like this:000004970. So, as there is mismatch between your excel value and the one in database..it is giving that error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, Use Conversion FM like this before passing the number to BAPI:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
  EXPORTING
    INPUT         = vbeln    "variable or internal table field which holds the excel values.
 IMPORTING
   OUTPUT        = vbeln
.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vishwa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Dec 2008 10:44:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-12-05T10:44:35Z</dc:date>
    <item>
      <title>va02 bapi upload data from excelsheet into sap</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va02-bapi-upload-data-from-excelsheet-into-sap/m-p/4833014#M1130688</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;iam working on va02 bapi upload data from excelsheet  into sap.&lt;/P&gt;&lt;P&gt;but when iam executing it iam getting an error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error :	&lt;/P&gt;&lt;P&gt;SD document 4970 is not in the database or has been archived&lt;/P&gt;&lt;P&gt;for VBELN: 4970&lt;/P&gt;&lt;P&gt;for any sales orderno its giving the same error.&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Julius Bussche on Dec 5, 2008 12:23 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2008 10:33:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va02-bapi-upload-data-from-excelsheet-into-sap/m-p/4833014#M1130688</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-05T10:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: va02 bapi upload data from excelsheet into sap</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va02-bapi-upload-data-from-excelsheet-into-sap/m-p/4833015#M1130689</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;First check the existing orders in your system from va03 or vbak,vbap tables and then &lt;/P&gt;&lt;P&gt;try to use the bapi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2008 10:40:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va02-bapi-upload-data-from-excelsheet-into-sap/m-p/4833015#M1130689</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2008-12-05T10:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: va02 bapi upload data from excelsheet into sap</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va02-bapi-upload-data-from-excelsheet-into-sap/m-p/4833016#M1130690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; hi,&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; iam working on va02 bapi upload data from excelsheet  into sap.&lt;/P&gt;&lt;P&gt;&amp;gt; but when iam executing it iam getting an error:&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Error :	&lt;/P&gt;&lt;P&gt;&amp;gt; SD document 4970 is not in the database or has been archived&lt;/P&gt;&lt;P&gt;&amp;gt; for VBELN: 4970&lt;/P&gt;&lt;P&gt;&amp;gt; for any sales orderno its giving the same error.&lt;/P&gt;&lt;P&gt;&amp;gt; thanks&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is because of the leading zeroes, If you see in the database table..the value 4970 will be stored like this:000004970. So, as there is mismatch between your excel value and the one in database..it is giving that error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, Use Conversion FM like this before passing the number to BAPI:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
  EXPORTING
    INPUT         = vbeln    "variable or internal table field which holds the excel values.
 IMPORTING
   OUTPUT        = vbeln
.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vishwa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2008 10:44:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va02-bapi-upload-data-from-excelsheet-into-sap/m-p/4833016#M1130690</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-05T10:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: va02 bapi upload data from excelsheet into sap</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va02-bapi-upload-data-from-excelsheet-into-sap/m-p/4833017#M1130691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hii&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this error comes because value you are entering is wrong.here you have two optios to remove this error.first you need to enter same length value like '0000004970' like this in excel sheet.second solution is to use following FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data:

 w_vbeln        LIKE vbak-vbeln.

    w_vbeln    = ls_data-vbeln.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
          EXPORTING
            input  = w_vbeln
          IMPORTING
            output = w_vbeln.

        ls_data-vbeln  = w_vbeln.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;twinkal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2008 10:51:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va02-bapi-upload-data-from-excelsheet-into-sap/m-p/4833017#M1130691</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-05T10:51:58Z</dc:date>
    </item>
  </channel>
</rss>

