<?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: Runtime error in Dynamic internal table with AMOUNT and Quantity Fields.. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-in-dynamic-internal-table-with-amount-and-quantity-fields/m-p/7095679#M1507752</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jeevan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It has to be a field type mistake in your code,&lt;/P&gt;&lt;P&gt;most likely the length of target fields in your dynamic internal table &lt;/P&gt;&lt;P&gt;are not enough for source fields coming from database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Than i recommend you to use a bigger quantitiy fields like QUAN 17 etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just create a data element in se11 which uses domain QUAN17 and put it in a Z  structure and than&lt;/P&gt;&lt;P&gt;set REFTABLE and REFFIELD fields of your fieldcatalog to this structure and field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seperately,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VBAK-NETWR is a currency field and MSEG-MENGE is a quantitiy field. They are not the same&lt;/P&gt;&lt;P&gt;you should create a data element for VBAK-NETWR with length CURR 17 too&lt;/P&gt;&lt;P&gt;and use them seperately in your dynamic tables accoding to your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bulent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Jul 2010 10:25:32 GMT</pubDate>
    <dc:creator>bbalci</dc:creator>
    <dc:date>2010-07-20T10:25:32Z</dc:date>
    <item>
      <title>Runtime error in Dynamic internal table with AMOUNT and Quantity Fields..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-in-dynamic-internal-table-with-amount-and-quantity-fields/m-p/7095675#M1507748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear friends,&lt;/P&gt;&lt;P&gt;I am attempting write a dymanic Select Statement (with joins).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the sleect query looks like this..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  SELECT (LT_SEL_LIST)
  INTO CORRESPONDING FIELDS OF
  TABLE &amp;lt;DYN_TABLE&amp;gt;
  FROM (LT_FROM_LIST)
  WHERE (LT_WHERE3).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Here the into table is a dynamically created internal table..&lt;/P&gt;&lt;P&gt;which is created by ...this&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL METHOD CL_ALV_TABLE_CREATE=&amp;gt;CREATE_DYNAMIC_TABLE
    EXPORTING
      IT_FIELDCATALOG = IT_OUTPUT2[]
    IMPORTING
      EP_TABLE        = DY_TABLE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;the it_output2 contains the the fieldcatlog information of dynamically given fields :-&lt;/P&gt;&lt;P&gt;like:-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
       TABNAME
       FIELDNAME
       DATATYPE
       LENG
       INTTYPE
       ROLLNAME
       DECIMALS
       REFTABLE
       REFFIELD
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;i mean the internal table is constructed with reference to all the bove metadata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem:- This query run fine with all the fields Except AMOUNT AND QUANTITY fields....&lt;/P&gt;&lt;P&gt;When the selection list contain VBAK-NETWR or MSEG-MENGE..It throws a runtime error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; "The data read during a SLECT access couldnt be inserted into the target field,either conversion is not supported for &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the target field's type or the target field is too short."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after this I even tried to construct the dynamic table with CFILEDNAME and QFIELDNAME in the Fieldcatalog.&lt;/P&gt;&lt;P&gt;so now my fieldcatlog looks like this:---&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP AT IT_DD03L..
  IF IT_DD03L-DATATYPE = 'CURR'.
       TABLEFIELD-CFIELDNAME = IT_DD03L-FIELDNAME .
       ENDIF.

   IF IT_FIELDCAT3-DATATYPE = 'QUAN'.
       TABLEFIELD-QFIELDNAME = IT_DD03L-FIELDNAME .
  ENDIF.
       TABLEFIELD-TABNAME     = IT_DD03L-TABNAME.
       TABLEFIELD-FIELDNAME   = IT_DD03L-FIELDNAME.
       TABLEFIELD-DATATYPE    = IT_DD03L-DATATYPE.
       TABLEFIELD-INTLEN      = IT_DD03L-LENG.
       TABLEFIELD-INTTYPE     = IT_DD03L-INTTYPE .
       TABLEFIELD-ROLLNAME    = IT_DD03L-ROLLNAME.
       TABLEFIELD-DECIMALS    = IT_DD03L-DECIMALS.
       TABLEFIELD-REF_TABLE   = IT_DD03L-REFTABLE.
       TABLEFIELD-REF_FIELD   = IT_DD03L-REFFIELD.

APPEND TABLEFIELD.
CLEAR TABLEFIELD.
ENDLOOP.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Note:- this is a test code so ignore performance issues...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me with some code ...to avoid the Runtime erorr. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;jeevan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jul 2010 06:24:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-in-dynamic-internal-table-with-amount-and-quantity-fields/m-p/7095675#M1507748</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-20T06:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime error in Dynamic internal table with AMOUNT and Quantity Fields..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-in-dynamic-internal-table-with-amount-and-quantity-fields/m-p/7095676#M1507749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi jeevan,&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT IT_DD03L..
  IF IT_DD03L-DATATYPE = 'CURR'.
       TABLEFIELD-CFIELDNAME = IT_DD03L-FIELDNAME .
       ENDIF.
 
   IF IT_FIELDCAT3-DATATYPE = 'QUAN'.
       TABLEFIELD-QFIELDNAME = IT_DD03L-FIELDNAME .
  ENDIF.
       TABLEFIELD-TABNAME     = IT_DD03L-TABNAME.
       TABLEFIELD-FIELDNAME   = IT_DD03L-FIELDNAME.
       TABLEFIELD-DATATYPE    = IT_DD03L-DATATYPE.
       TABLEFIELD-INTLEN      = IT_DD03L-LENG.
       TABLEFIELD-INTTYPE     = IT_DD03L-INTTYPE .
       TABLEFIELD-ROLLNAME    = IT_DD03L-ROLLNAME.
       TABLEFIELD-DECIMALS    = IT_DD03L-DECIMALS.
       TABLEFIELD-REF_TABLE   = IT_DD03L-REFTABLE.
       TABLEFIELD-REF_FIELD   = IT_DD03L-REFFIELD.
 
APPEND TABLEFIELD.
CLEAR TABLEFIELD.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I know for INTLEN we need to give the LENG value from DD03L, but for currency and quantity fields, did you tried with INTLENG values.  I am not sure, it will work but try with that one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Guna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jul 2010 07:03:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-in-dynamic-internal-table-with-amount-and-quantity-fields/m-p/7095676#M1507749</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-20T07:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime error in Dynamic internal table with AMOUNT and Quantity Fields..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-in-dynamic-internal-table-with-amount-and-quantity-fields/m-p/7095677#M1507750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai Guna,&lt;/P&gt;&lt;P&gt;Thanks for the reply, I tried with that but no results......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;jeevan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jul 2010 09:23:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-in-dynamic-internal-table-with-amount-and-quantity-fields/m-p/7095677#M1507750</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-20T09:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime error in Dynamic internal table with AMOUNT and Quantity Fields..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-in-dynamic-internal-table-with-amount-and-quantity-fields/m-p/7095678#M1507751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello jeevan kumar  ,&lt;/P&gt;&lt;P&gt;In your field Catlogue table Please try passing the below two fields&lt;/P&gt;&lt;P&gt;CFIELDNAME	LVC_CFNAME	CHAR	30	0	ALV control: Field name for currency unit referenced &lt;/P&gt;&lt;P&gt;QFIELDNAME	LVC_QFNAME	CHAR	30	0	ALV control: Field name for unit of measure referenced pass eg. MEINS for menge&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is necessery for the quantity and the amount filed ...!&lt;/P&gt;&lt;P&gt;you can also check the table MSEG for field MENGE ( IN TAB CURRENCY QUANTITY FIELDS ...) SAME IS FOR AMOUNT &lt;/P&gt;&lt;P&gt;This will surely work , &lt;/P&gt;&lt;P&gt;Hope it helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Anup Deshmukh on Jul 20, 2010 11:33 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Anup Deshmukh on Jul 20, 2010 11:36 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jul 2010 09:32:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-in-dynamic-internal-table-with-amount-and-quantity-fields/m-p/7095678#M1507751</guid>
      <dc:creator>anup_deshmukh4</dc:creator>
      <dc:date>2010-07-20T09:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime error in Dynamic internal table with AMOUNT and Quantity Fields..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-in-dynamic-internal-table-with-amount-and-quantity-fields/m-p/7095679#M1507752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jeevan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It has to be a field type mistake in your code,&lt;/P&gt;&lt;P&gt;most likely the length of target fields in your dynamic internal table &lt;/P&gt;&lt;P&gt;are not enough for source fields coming from database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Than i recommend you to use a bigger quantitiy fields like QUAN 17 etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just create a data element in se11 which uses domain QUAN17 and put it in a Z  structure and than&lt;/P&gt;&lt;P&gt;set REFTABLE and REFFIELD fields of your fieldcatalog to this structure and field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seperately,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VBAK-NETWR is a currency field and MSEG-MENGE is a quantitiy field. They are not the same&lt;/P&gt;&lt;P&gt;you should create a data element for VBAK-NETWR with length CURR 17 too&lt;/P&gt;&lt;P&gt;and use them seperately in your dynamic tables accoding to your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bulent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jul 2010 10:25:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-in-dynamic-internal-table-with-amount-and-quantity-fields/m-p/7095679#M1507752</guid>
      <dc:creator>bbalci</dc:creator>
      <dc:date>2010-07-20T10:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime error in Dynamic internal table with AMOUNT and Quantity Fields..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-in-dynamic-internal-table-with-amount-and-quantity-fields/m-p/7095680#M1507753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai Anup,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried passing the CFIELDNAME AND QFIELDNAME as REFFIELD from DD03L values...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But still it goes to short Dump with the same error..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jeevan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jul 2010 12:17:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-in-dynamic-internal-table-with-amount-and-quantity-fields/m-p/7095680#M1507753</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-20T12:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime error in Dynamic internal table with AMOUNT and Quantity Fields..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-in-dynamic-internal-table-with-amount-and-quantity-fields/m-p/7095681#M1507754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi jeevan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I verify the bülent. Your problem is referance fields , if you are dont give the referance fields information the itab fields, field symbol is dont understand assignment, field size default assign char1 size.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; You must try give to referance field to your dynamic itab fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it help you &lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;İrfan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jul 2010 12:33:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-in-dynamic-internal-table-with-amount-and-quantity-fields/m-p/7095681#M1507754</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-20T12:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime error in Dynamic internal table with AMOUNT and Quantity Fields..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-in-dynamic-internal-table-with-amount-and-quantity-fields/m-p/7095682#M1507755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi jeevan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I verify the bülent. Your problem is referance fields , if you are dont give the referance fields information the itab fields, field symbol is dont understand assignment, field size default assign char1 size.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; You must try give to referance field to your dynamic itab fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it help you &lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;İrfan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jul 2010 12:34:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-in-dynamic-internal-table-with-amount-and-quantity-fields/m-p/7095682#M1507755</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-20T12:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime error in Dynamic internal table with AMOUNT and Quantity Fields..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-in-dynamic-internal-table-with-amount-and-quantity-fields/m-p/7095683#M1507756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai, Irfan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes , I understand.....Pls see in the code I have assigned the &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ref_field = it_dd03l-Reffield&lt;/P&gt;&lt;P&gt;Ref_Table = it_dd03l-reftable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that is the worry even after that it is not executing....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And now even u started giveing the DOMAIN name .&lt;/P&gt;&lt;P&gt;Still its throwing the same error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jeevan...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jul 2010 12:38:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-in-dynamic-internal-table-with-amount-and-quantity-fields/m-p/7095683#M1507756</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-20T12:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime error in Dynamic internal table with AMOUNT and Quantity Fields..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-in-dynamic-internal-table-with-amount-and-quantity-fields/m-p/7095684#M1507757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thats interesting ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I think you must try nearly alternatives, so you can try give the static values to code,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample for (QUAN) fields &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ref_field = 'MEINS'&lt;/P&gt;&lt;P&gt;Ref_Table = 'MARA'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe referance is DBTAB required. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jul 2010 12:55:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-in-dynamic-internal-table-with-amount-and-quantity-fields/m-p/7095684#M1507757</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-20T12:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime error in Dynamic internal table with AMOUNT and Quantity Fields..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-in-dynamic-internal-table-with-amount-and-quantity-fields/m-p/7095685#M1507758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok Irfan.....I will try that .....Pls be here tomarrow......I may get late today..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;jeevan..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jul 2010 13:19:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-in-dynamic-internal-table-with-amount-and-quantity-fields/m-p/7095685#M1507758</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-20T13:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime error in Dynamic internal table with AMOUNT and Quantity Fields..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-in-dynamic-internal-table-with-amount-and-quantity-fields/m-p/7095686#M1507759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I even tried with a static code like........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       it_output2-CFIELDNAME = 'WAERK' .&lt;/P&gt;&lt;P&gt;       it_output2-CURRENCY   = 'CUKY'.&lt;/P&gt;&lt;P&gt;       it_output2-TABNAME     = 'VBAP'.&lt;/P&gt;&lt;P&gt;       it_output2-FIELDNAME   = 'NETWR'.&lt;/P&gt;&lt;P&gt;       it_output2-DATATYPE    = 'CURR'.&lt;/P&gt;&lt;P&gt;       it_output2-INTLEN      = '000015'.&lt;/P&gt;&lt;P&gt;       it_output2-INTTYPE     = 'C' .&lt;/P&gt;&lt;P&gt;       it_output2-ROLLNAME    = 'NETWR_AP'.&lt;/P&gt;&lt;P&gt;       it_output2-DECIMALS    = '000002'.&lt;/P&gt;&lt;P&gt;       it_output2-REF_TABLE   = 'VBAP'.&lt;/P&gt;&lt;P&gt;       it_output2-REF_FIELD   = 'WAERK'.&lt;/P&gt;&lt;P&gt;       it_output2-DOMNAME     = 'WERTV8'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       APPEND IT_OUTPUT2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also tried increasing the INTLEN to 20 ....but the error is same...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Ideas............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jeevan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jul 2010 14:12:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-in-dynamic-internal-table-with-amount-and-quantity-fields/m-p/7095686#M1507759</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-20T14:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime error in Dynamic internal table with AMOUNT and Quantity Fields..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-in-dynamic-internal-table-with-amount-and-quantity-fields/m-p/7095687#M1507760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeevan,&lt;/P&gt;&lt;P&gt;Why are moving only few fields from DD03L table to your field catalog? Why don't you use move-corresponding? The following code works for me in ECC6.0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: it_dd03l type table of dd03l initial size 0,&lt;/P&gt;&lt;P&gt;      ls_dd03l type dd03l,&lt;/P&gt;&lt;P&gt;      lt_fldcat TYPE lvc_t_fcat,&lt;/P&gt;&lt;P&gt;      ls_fldcat TYPE lvc_s_fcat,&lt;/P&gt;&lt;P&gt;      ls_where(72) TYPE c,&lt;/P&gt;&lt;P&gt;      lt_where LIKE TABLE OF ls_where,&lt;/P&gt;&lt;P&gt;      lt_fld LIKE TABLE OF ls_where,&lt;/P&gt;&lt;P&gt;      lt_data_dy TYPE REF TO data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field-symbols: &amp;lt;ft_data&amp;gt; TYPE STANDARD TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * into table it_dd03l from dd03l&lt;/P&gt;&lt;P&gt;    where tabname = 'VBAK'&lt;/P&gt;&lt;P&gt;      and ( fieldname = 'VBELN' or fieldname = 'NETWR' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_dd03l into ls_dd03l.&lt;/P&gt;&lt;P&gt;  move-corresponding ls_dd03l to ls_fldcat.&lt;/P&gt;&lt;P&gt;  append ls_fldcat to lt_fldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  move ls_dd03l-fieldname to ls_where.&lt;/P&gt;&lt;P&gt;  append ls_where to lt_fld.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if ls_dd03l-fieldname = 'VBELN'.&lt;/P&gt;&lt;P&gt;    clear ls_where.&lt;/P&gt;&lt;P&gt;    concatenate ls_dd03l-fieldname ' &amp;lt;&amp;gt; ''''' into ls_where.&lt;/P&gt;&lt;P&gt;    append ls_where to lt_where.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check not lt_fldcat is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD cl_alv_table_create=&amp;gt;create_dynamic_table&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        it_fieldcatalog           = lt_fldcat&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        ep_table                  = lt_data_dy&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        generate_subpool_dir_full = 1&lt;/P&gt;&lt;P&gt;        OTHERS                    = 2.&lt;/P&gt;&lt;P&gt;    IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      RAISE no_configuration_data.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ASSIGN lt_data_dy-&amp;gt;*  TO &amp;lt;ft_data&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select (lt_fld) from VBAK into corresponding fields of table&lt;/P&gt;&lt;P&gt;    &amp;lt;ft_data&amp;gt;&lt;/P&gt;&lt;P&gt;    where (lt_where).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Bala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jul 2010 20:12:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-in-dynamic-internal-table-with-amount-and-quantity-fields/m-p/7095687#M1507760</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-20T20:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime error in Dynamic internal table with AMOUNT and Quantity Fields..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-in-dynamic-internal-table-with-amount-and-quantity-fields/m-p/7095688#M1507761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeevan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In fieldcatalog you set, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_output2-TABNAME = 'VBAP'.&lt;/P&gt;&lt;P&gt;it_output2-FIELDNAME = 'NETWR'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_output2-REF_TABLE = 'VBAP'.&lt;/P&gt;&lt;P&gt;it_output2-REF_FIELD = 'WAERK'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have a misunderstanding here &lt;/P&gt;&lt;P&gt;NETWR is amount field and WAERK is currency UNIT field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in fieldcatalog REF_TABLE / REF_FIELD stands for database table and field for only type reference&lt;/P&gt;&lt;P&gt;do not confuse it with the reference table field in the database table fields,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u try with &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_output2-REF_TABLE = 'VBAP'.&lt;/P&gt;&lt;P&gt;it_output2-REF_FIELD = NETWR'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_output2-REF_TABLE = 'SLS_PAD25'.   &amp;lt;-- field SLS_PAD25-KKOST is currency and length 16 field&lt;/P&gt;&lt;P&gt;it_output2-REF_FIELD = 'KKOST'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if your problem can't be solved I 'll ask you for some screenshots from the debugger.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jul 2010 11:00:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-in-dynamic-internal-table-with-amount-and-quantity-fields/m-p/7095688#M1507761</guid>
      <dc:creator>bbalci</dc:creator>
      <dc:date>2010-07-21T11:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime error in Dynamic internal table with AMOUNT and Quantity Fields..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-in-dynamic-internal-table-with-amount-and-quantity-fields/m-p/7095689#M1507762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai, Bulent and Bala,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your efforts.I tried both of your hints and it works fine now.&lt;/P&gt;&lt;P&gt;But now my doubt is...in the Bala's solution the table doesnt set ref_table name and ref_field names.And still it works .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyways...Bulent ur solution too works...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks closing this thread...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;jeevan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jul 2010 12:27:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-in-dynamic-internal-table-with-amount-and-quantity-fields/m-p/7095689#M1507762</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-21T12:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime error in Dynamic internal table with AMOUNT and Quantity Fields..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-in-dynamic-internal-table-with-amount-and-quantity-fields/m-p/7095690#M1507763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Once it works, it always works Jeevan &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jul 2010 13:41:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-error-in-dynamic-internal-table-with-amount-and-quantity-fields/m-p/7095690#M1507763</guid>
      <dc:creator>bbalci</dc:creator>
      <dc:date>2010-07-21T13:41:19Z</dc:date>
    </item>
  </channel>
</rss>

