Application Development 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: 

ALV : Exception condition "NO_FIELDCATALOG_AVAILABLE" raised .

Former Member
0 Kudos


Hi All ,

I am getting shot dump with description  "Exception condition "NO_FIELDCATALOG_AVAILABLE" raised. "

Strange thing is that same report is working fine for English language but getting run time error when I am using same for Norwegian language .

CALL METHOD go_alvgd->set_table_for_first_display

          EXPORTING

            is_layout                     = gwa_layout

            i_structure_name              = text-040  "'ZPM_TB_MEASURES'

            i_save                        = gc_a  "'A'

            is_variant                    = gwa_variant

          CHANGING

            it_outtab                     = gt_zpm_tb_measures 

            it_fieldcatalog               = gt_fieldcatalog

          EXCEPTIONS

            invalid_parameter_combination = 1

            program_error                 = 2

            too_many_lines                = 3

            OTHERS                        = 4.

Please help .

Thanks ,

Ashish Gaur

1 ACCEPTED SOLUTION

former_member188724
Contributor
0 Kudos

Hi,

You are using text-040 for the structure Name.Translation maintained for Norwegian language?

K.S.

7 REPLIES 7

Former Member
0 Kudos

Hi

Which method raises that exception?

Max

0 Kudos

Hi Ashish,

Have you populated the internal table gt_fieldcatalog before using it?

Regards,

Salil Bagchi

former_member188724
Contributor
0 Kudos

Hi,

You are using text-040 for the structure Name.Translation maintained for Norwegian language?

K.S.

0 Kudos

Yes

K.S. is right you're using a text element, why?

The name of structure is alwyas the same, it doesn't depend on the language: you should harcode it

Max

0 Kudos

To be even more specific - you should hard code using a constant.

Only use text symbols for texts that must be (might be) translated.

0 Kudos


Hi K.S. ,

Thanks for the help .

I should have used structure name here or hard coding .

One more thing I need to ask as I am new to object oriented ALV , Can you please let me know that if I have already used Structure name and I do not want to modify any field catalog , so in that case can we skip passing the field catalog .

like this : ( commenting the field catalog table )

CALL METHOD go_alvgd->set_table_for_first_display

         

            i_structure_name      =    "'ZPM_TB_MEASURES'

          CHANGING

            it_outtab                     =    gt_zpm_tb_measures 

   *         it_fieldcatalog             = gt_fieldcatalog

        

Means I am only passing the SE11 structure name and the internal table containing values .

Thanks and Regards ,

Ashish Gaur

0 Kudos

Hi Ashish,

Yes,correct.You can do as you mentioned to generate the fieldcatalog automatically.

Regards,

K.S