09-25-2014 1:46 PM
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
09-25-2014 2:47 PM
Hi,
You are using text-040 for the structure Name.Translation maintained for Norwegian language?
K.S.
09-25-2014 1:52 PM
09-25-2014 1:55 PM
Hi Ashish,
Have you populated the internal table gt_fieldcatalog before using it?
Regards,
Salil Bagchi
09-25-2014 2:47 PM
Hi,
You are using text-040 for the structure Name.Translation maintained for Norwegian language?
K.S.
09-25-2014 2:51 PM
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
09-25-2014 3:25 PM
To be even more specific - you should hard code using a constant.
Only use text symbols for texts that must be (might be) translated.
09-25-2014 4:50 PM
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
09-25-2014 8:15 PM
Hi Ashish,
Yes,correct.You can do as you mentioned to generate the fieldcatalog automatically.
Regards,
K.S