<?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: issue with bdc in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bdc/m-p/2145545#M452542</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 do not know what the exact reason is, but it has something to do with the "internal length" of data type and "display length" of data type. This issue is prevalent for currency field, amount fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thats is the reason that when you do BDC it is always recommended  to use the field of type C ( Character) to pass the values of all of your field.. So, pass your field value to field of type character and then pass it to BDC table.  This problem does not happen for field type DEC, CHAR, NUMC because here, "field length" and "display length" is same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this clarifies your doubt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your issue has been resolved, please award the points accordingly and close the thread. So in future if someone has same issue it is easy for someone to find the solution with "answered" thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you have any question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Apr 2007 18:59:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-02T18:59:40Z</dc:date>
    <item>
      <title>issue with bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bdc/m-p/2145540#M452537</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;Iam writing a bdc program and passing the values from the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have declared  the field using standard table,&lt;/P&gt;&lt;P&gt;mabst like marc-mabst,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iam reading the value from marc , then iam reducing it to half&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of mat_int_table occurs 0,&lt;/P&gt;&lt;P&gt;   matnr like mara-matnr,&lt;/P&gt;&lt;P&gt;   werks like marc-werks ,&lt;/P&gt;&lt;P&gt;   bstrf like marc-bstrf,&lt;/P&gt;&lt;P&gt;   mabst like marc-mabst, &lt;/P&gt;&lt;P&gt;   minbe like marc-minbe,&lt;/P&gt;&lt;P&gt;end of mat_int_table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from  marc where matnr in smatnr and&lt;/P&gt;&lt;P&gt;                            werks in swerks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     clear mat_int_table.&lt;/P&gt;&lt;P&gt;     move marc-werks to mat_int_table-werks.&lt;/P&gt;&lt;P&gt;     move marc-matnr to mat_int_table-matnr .&lt;/P&gt;&lt;P&gt;     move marc-bstrf to mat_int_table-bstrf.&lt;/P&gt;&lt;P&gt;      mat_int_table-mabst = ( marc-mabst / 2 ).&lt;/P&gt;&lt;P&gt;     move marc-minbe to mat_int_table-minbe .&lt;/P&gt;&lt;P&gt;     append mat_int_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; loop at mat_int_table.&lt;/P&gt;&lt;P&gt;   refresh bdcdata.&lt;/P&gt;&lt;P&gt;  perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'MARC-MABST'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'MARC-DISLS'&lt;/P&gt;&lt;P&gt;                              'HB'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'MARC-MABST'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                                  '200'.---- this thing works.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;           MAT_INT_TABLE-MABST. -&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt; this is where iam having problem&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the error iam getting is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field MARC-MABST. input value is longer than screen field&lt;/P&gt;&lt;P&gt;Can anyone tell whats the issurein here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2007 18:04:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bdc/m-p/2145540#M452537</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-02T18:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: issue with bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bdc/m-p/2145541#M452538</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 had a similar problem once in BDC with a amount field. What i did is create a field of type character and pass it to BDC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In you case MARC-MABST is quantity field. You defined a field as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;DATA: l_MABST(13) type c.&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assing the value of MARC-MABST to l_MABST and use l_MABST in your BDC. It will solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, your code would be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*************************************************
l_MABST = MAT_INT_TABLE-MABST.

perform bdc_field using 'MARC-MABST' l_MABST.

*************************************************&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Let me know if you have any question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RS&lt;/P&gt;&lt;P&gt;&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;RS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2007 18:11:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bdc/m-p/2145541#M452538</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-02T18:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: issue with bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bdc/m-p/2145542#M452539</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 had a similar problem once in BDC with a amount field. What i did is create a field of type character and pass it to BDC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In you case MARC-MABST is quantity field. You defined a field as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;DATA: l_MABST(13) type c.&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assing the value of MARC-MABST to l_MABST and use l_MABST in your BDC. It will solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, your code would be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*************************************************
l_MABST = MAT_INT_TABLE-MABST.
 
perform bdc_field using 'MARC-MABST' l_MABST.
 
*************************************************&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Let me know if you have any question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Sorry, double posting due to network problem.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2007 18:11:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bdc/m-p/2145542#M452539</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-02T18:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: issue with bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bdc/m-p/2145543#M452540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When coming to Batch Input with quantity or amount, use WRITE to BDCDATA instead of MOVE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2007 18:14:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bdc/m-p/2145543#M452540</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2007-04-02T18:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: issue with bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bdc/m-p/2145544#M452541</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;RS - I got it resolved by your suggestion &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is athere any particular reason for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raymond,  we cannot use write marc-mabst to xyz because it s quantity field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so you mean to move into char field and then write to xyz.&lt;/P&gt;&lt;P&gt;is that what you are saying let me know&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;venki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2007 18:24:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bdc/m-p/2145544#M452541</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-02T18:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: issue with bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bdc/m-p/2145545#M452542</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 do not know what the exact reason is, but it has something to do with the "internal length" of data type and "display length" of data type. This issue is prevalent for currency field, amount fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thats is the reason that when you do BDC it is always recommended  to use the field of type C ( Character) to pass the values of all of your field.. So, pass your field value to field of type character and then pass it to BDC table.  This problem does not happen for field type DEC, CHAR, NUMC because here, "field length" and "display length" is same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this clarifies your doubt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your issue has been resolved, please award the points accordingly and close the thread. So in future if someone has same issue it is easy for someone to find the solution with "answered" thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you have any question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2007 18:59:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bdc/m-p/2145545#M452542</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-02T18:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: issue with bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bdc/m-p/2145546#M452543</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;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have answered points to all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2007 19:11:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-bdc/m-p/2145546#M452543</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-02T19:11:56Z</dc:date>
    </item>
  </channel>
</rss>

