‎2009 Jul 25 12:40 PM
Hi,
In my ALV report I've used currency and quantity fields. So I've provided 'CFIELDNAME' AND 'CTABNAME' while populating the fielcat.
But it's going to dump in the output.when I've removed the those statements.it's working fine.
So, Could you anyone let me know what is the solution for this and also provide the purpose of populating those fields in the fieldcat.
thanks
G sandeep Kumar.
‎2009 Jul 25 12:44 PM
HI,
What are the values which you are passing to these fields?
These fields will basically contain the fieldname in your internal table where you are passing the currency and weight unit.
Regards,
Ankur Parab
‎2009 Jul 25 12:44 PM
HI,
What are the values which you are passing to these fields?
These fields will basically contain the fieldname in your internal table where you are passing the currency and weight unit.
Regards,
Ankur Parab
‎2009 Jul 25 12:59 PM
Hi,
I've declared a field in the internal table like this.
data : value like mseg-dmbtr.
I've populated the fieldcatalog like this.
fcat-fieldname = value.
fcat-cfieldname = waers "currency field for dmbtr.
fcat-ctabname = gdt_final "final internal table
so, could u let me know the reason for the dump ASAP.
Thanks
Natasha
‎2009 Jul 25 12:59 PM
Hi,
I've declared a field in the internal table like this.
data : value like mseg-dmbtr.
I've populated the fieldcatalog like this.
fcat-fieldname = value.
fcat-cfieldname = waers "currency field for dmbtr.
fcat-ctabname = gdt_final "final internal table
so, could u let me know the reason for the dump ASAP.
Thanks
Natasha
‎2009 Jul 25 1:07 PM
Hi,
Does GDT_FINAL contain a field named WAERS?
Also are you passing the name in CAPITAL?
Regards,
Ankur Parab
‎2009 Jul 25 1:45 PM
Hi,
You need to pass in this way..
fcat-fieldname = <Field Name in Captials>
fcat-cfieldname = <Field name of CUKY field in capital> .
fcat-ctabname = <Table name in the CUKY field exists in capital Letters>.
‎2009 Jul 27 11:23 AM
Hi Natasha,
<li>Define your final internal table with currency unit field that is WAERS.
<li> While building fieldcatalog pass like below.
<li>Do not pass the below . This is related to hierarchical related.
wa_fieldcat-fieldname = 'DMBTR'.
wa_fieldcat-tabname = 'ITAB'.
wa_fieldcat-seltext_l = 'Amount'.
wa_fieldcat-do_sum = 'X'.
wa_fieldcat-cfieldname = 'WAERS'.
* wa_fieldcat-ctabname = 'ITAB'. " Comment this. It works
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
I hope that it solves your problem,
Thanks
Venkat.Owa_fieldcat-ctabname = 'ITAB'.
‎2009 Jul 27 11:04 AM
in cat-cfieldname field name give in CAPITAL LATTER
Edited by: krupa jani on Jul 27, 2009 12:05 PM