<?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: Re:long text upload in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-long-text-upload/m-p/8913722#M1690858</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe that you have internal numbering so the material number is not yet known when you call the BAPI. I'm not sure if you can somehow bypass this but you could try the following :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call the bapi without longtext in order to create the material and get the newly created material number.&lt;/P&gt;&lt;P&gt;Call the bapi again passing only the longtexts for the material number just created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another way is to use 'SAVE_TEXT' FM again when you know the material number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Aug 2012 06:44:31 GMT</pubDate>
    <dc:creator>laurent_fournier2</dc:creator>
    <dc:date>2012-08-01T06:44:31Z</dc:date>
    <item>
      <title>Re:long text upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-long-text-upload/m-p/8913719#M1690855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am trying to use BAPI to create material master (MM01) where i need to read the data from the application server and upload.I need to schedule a background job for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the problem is with long text.how can i upload the long text from that flat file.I tried with the table parameter MATERIALLONGTEXT but it is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help...&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;Vamshi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2012 13:10:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-long-text-upload/m-p/8913719#M1690855</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-07-31T13:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: Re:long text upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-long-text-upload/m-p/8913720#M1690856</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;The BAPI works well as far as I know. Can you please paste your code ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2012 13:40:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-long-text-upload/m-p/8913720#M1690856</guid>
      <dc:creator>laurent_fournier2</dc:creator>
      <dc:date>2012-07-31T13:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: Re:long text upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-long-text-upload/m-p/8913721#M1690857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In BAPI structure MATERIALLONGTEXT am passing the following&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;APPLOBJECT-- MATERIAL&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TEXT_NAME -- mat. no.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TEXT--BEST&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LAN--EN&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Text_line-- long text&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff6600;"&gt;but it is throwing an error material number in initial.&lt;/SPAN&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2012 05:41:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-long-text-upload/m-p/8913721#M1690857</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-08-01T05:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: Re:long text upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-long-text-upload/m-p/8913722#M1690858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe that you have internal numbering so the material number is not yet known when you call the BAPI. I'm not sure if you can somehow bypass this but you could try the following :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call the bapi without longtext in order to create the material and get the newly created material number.&lt;/P&gt;&lt;P&gt;Call the bapi again passing only the longtexts for the material number just created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another way is to use 'SAVE_TEXT' FM again when you know the material number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2012 06:44:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-long-text-upload/m-p/8913722#M1690858</guid>
      <dc:creator>laurent_fournier2</dc:creator>
      <dc:date>2012-08-01T06:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: Re:long text upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/re-long-text-upload/m-p/8913723#M1690859</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;Also, the reason of the error might be that you passing some parameters in BAPI which is not allowed in creating a material, but only allowed in updating alredy an existing material. Such parameters might be VALUATIONDATA, for instance. If so, then you should call bapi twice - first to create material, second to update it passing VALUATIONDATA. Thereby, if you get data from file to creat materials, you shoul have two record for each material. One to create an initial material another to bring it additional data including&amp;nbsp; VALUATIONDATA, MATERIALLONGTEXT , etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps,&lt;/P&gt;&lt;P&gt;Zhumabek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2012 09:02:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/re-long-text-upload/m-p/8913723#M1690859</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-08-01T09:02:35Z</dc:date>
    </item>
  </channel>
</rss>

