<?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: error when running customized batch input in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-running-customized-batch-input/m-p/3974215#M949243</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why don't u move ur numerical data into a char field before doing the further processing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: l_char type c length ....&lt;/P&gt;&lt;P&gt;        l_num type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_char = l_num.&lt;/P&gt;&lt;P&gt;perform BDC_FIELD XXXX l_char.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM BDC_FIELD USING FNAM FVAL.&lt;/P&gt;&lt;P&gt;IF FVAL NODATA.&lt;/P&gt;&lt;P&gt;CLEAR BDCDATA.&lt;/P&gt;&lt;P&gt;BDCDATA-FNAM = FNAM.&lt;/P&gt;&lt;P&gt;BDCDATA-FVAL = FVAL.&lt;/P&gt;&lt;P&gt;APPEND BDCDATA.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Joy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Jun 2008 08:43:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-17T08:43:15Z</dc:date>
    <item>
      <title>error when running customized batch input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-running-customized-batch-input/m-p/3974214#M949242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i recorded a batch input for transaction SM30 - just simply entering data,pressing 'save' and thats all...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;afterwards i created a program using this record. it runs fine with the values i entered originally. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i modified the program so that it  runs in a loop, replacing my original values with the data structures corresponding fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for fields with type character it works fine. But when i run the program with numerical data fields in my table (and of course the table-field i want to enter it is also numerical) i receive a CONVT_NO_NUMBER error which comes from the 2nd line of this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM BDC_FIELD USING FNAM FVAL.&lt;/P&gt;&lt;P&gt;  IF FVAL &amp;lt;&amp;gt; NODATA.&lt;/P&gt;&lt;P&gt;    CLEAR BDCDATA.&lt;/P&gt;&lt;P&gt;    BDCDATA-FNAM = FNAM.&lt;/P&gt;&lt;P&gt;    BDCDATA-FVAL = FVAL.&lt;/P&gt;&lt;P&gt;    APPEND BDCDATA.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this method was created by my record,i didnt change it... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so my question finally is: is there any -smart- other way to replace it other than:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM &lt;U&gt;BDC&lt;/U&gt;FIELD USING FNAM FVAL.&lt;/P&gt;&lt;P&gt;data _fval(255) type c.&lt;/P&gt;&lt;P&gt;  _fval = fval.&lt;/P&gt;&lt;P&gt;  IF _FVAL &amp;lt;&amp;gt; NODATA.&lt;/P&gt;&lt;P&gt;    CLEAR BDCDATA.&lt;/P&gt;&lt;P&gt;    BDCDATA-FNAM = FNAM.&lt;/P&gt;&lt;P&gt;    BDCDATA-FVAL = FVAL.&lt;/P&gt;&lt;P&gt;    APPEND BDCDATA.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2008 08:33:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-running-customized-batch-input/m-p/3974214#M949242</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-17T08:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: error when running customized batch input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-running-customized-batch-input/m-p/3974215#M949243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why don't u move ur numerical data into a char field before doing the further processing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: l_char type c length ....&lt;/P&gt;&lt;P&gt;        l_num type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_char = l_num.&lt;/P&gt;&lt;P&gt;perform BDC_FIELD XXXX l_char.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM BDC_FIELD USING FNAM FVAL.&lt;/P&gt;&lt;P&gt;IF FVAL NODATA.&lt;/P&gt;&lt;P&gt;CLEAR BDCDATA.&lt;/P&gt;&lt;P&gt;BDCDATA-FNAM = FNAM.&lt;/P&gt;&lt;P&gt;BDCDATA-FVAL = FVAL.&lt;/P&gt;&lt;P&gt;APPEND BDCDATA.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Joy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2008 08:43:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-running-customized-batch-input/m-p/3974215#M949243</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-17T08:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: error when running customized batch input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-running-customized-batch-input/m-p/3974216#M949244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Joyjit Ghosh:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thats exactly what my workaround is doing, just you do it outside the method and i do it inside for just defining it once (but needing to change the method's name everywhere).&lt;/P&gt;&lt;P&gt;i wouldnt prefer one of those two 'workarounds' to the other  but i thought there was some mistake in my program or things i didnt consider or maybe a smarter solution....&lt;/P&gt;&lt;P&gt;(if i, btw when running the program choose a nodata-sign 0 instead of / it doesnt give the error,of course)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2008 08:58:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-when-running-customized-batch-input/m-p/3974216#M949244</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-17T08:58:37Z</dc:date>
    </item>
  </channel>
</rss>

