‎2009 Jul 23 7:16 AM
Hi all,
I have developed one ALV report using ABAP OOPS. i have used Custom Container to display my all values.
below are the methods i am calling to dispaly and all values is coming in T_DATASET[] ans fcat, But after Executing my report it is not displaying any value.
my container is blank in output only fcat-coltext is coming and fieldname value is not coming.
wa_fcat-fieldname = 'T_DATASET-KAVS'.
wa_fcat-coltext = ' xyz'.
CALL METHOD grid1->set_table_for_first_display
CHANGING
it_outtab = T_DATASET[]
it_fieldcatalog = fcat.
please guide me.
Thanks in Advance.
‎2009 Jul 23 7:20 AM
HI,
The fieldname should contain only the fieldname and not the tablename-fieldname.
Check the example report
BCALV_TEST_GRID
Regards,
Ankur Parab
‎2009 Jul 23 7:48 AM
‎2009 Jul 23 7:20 AM
hi,
have you uncomment the MODULE given in the PBO and PAI of the
SCREEN.
hope this helps
Regards
RItesh J
‎2009 Jul 23 7:21 AM
Posting only this part of the code, which seems to be just fine, won't be of any hepl. You might want to consider to post the whole code (if possible due to restrictions in number of characters). Reading your post lets us believe that just about everything is ok, but it obviously is not.
BTW: Set your coding in between two .
‎2009 Jul 23 7:26 AM
Hi,
Check this
w_fc-tabname = 'T_MATERIALDETAILS'.
w_fc-fieldname = 'ERNAM'.
w_fc-seltext_l = 'Created By'.
The fieldname contains only the name of the field (in CAPS) not tablename-fieldname.
‎2009 Jul 23 7:27 AM
Hi,
just go through code...
wa_fcat-tabname = 'XYZ.
wa_fcat-fieldname = 'DDTEXT'.
wa_fcat-inttype = 'C'.
wa_fcat-coltext = 'Short Text'.
wa_fcat-outputlen = 10.
wa_fcat-col_pos = 8.
append wa_fcat to fcat.
clear wa_fcat.
form alv_display.
call method ref_grid->set_table_for_first_display
exporting
is_variant = st_var
i_save = save
is_layout = loyo
changing
it_outtab = XYZ[]
it_fieldcatalog = fcat.
call screen 100.
endform. "alv_display
Thanks
Ashu