Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ALV dump

Former Member
0 Likes
860

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
817

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

7 REPLIES 7
Read only

Former Member
0 Likes
818

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

Read only

0 Likes
817

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

Read only

0 Likes
817

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

Read only

0 Likes
817

Hi,

Does GDT_FINAL contain a field named WAERS?

Also are you passing the name in CAPITAL?

Regards,

Ankur Parab

Read only

0 Likes
817

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>.

Read only

0 Likes
817

Hi Natasha, <li>Define your final internal table with currency unit field that is WAERS. <li> While building fieldcatalog pass like below.

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.
<li>Do not pass the below . This is related to hierarchical related.
wa_fieldcat-ctabname   = 'ITAB'.
I hope that it solves your problem, Thanks Venkat.O

Read only

Former Member
0 Likes
817

in cat-cfieldname field name give in CAPITAL LATTER

Edited by: krupa jani on Jul 27, 2009 12:05 PM