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

changing fieldcatalog itab during runtime

Former Member
0 Likes
478

hi,

ppl iam changing fieldcatalog during runtime.but its showing error message that 'fieldcatalog not found'.i have degugged the prorgam but the records are not getting populated in gt_fcat.

CALL METHOD gr_alvgrid->get_frontend_fieldcatalog

IMPORTING

et_fieldcatalog = gt_fcat.--> here no records .

LOOP At gt_fcat INTO wa_fcat.

IF wa_fcat-fieldname = 'CARRID'.

wa_fcat-no_out = space.

MODIFY gt_fcat FROM wa_fcat.

ENDIF.

ENDLOOP.

CALL METHOD gr_alvgrid->set_frontend_fieldcatalog

EXPORTING

it_fieldcatalog = gt_fcat.

2 REPLIES 2
Read only

uwe_schieferstein
Active Contributor
0 Likes
411

Hello Priyank

I am not sure about where the problem might be in your case yet sample report BCALV_FIELDCAT_TEST does exactly what you want to do so please have a look there.

Regards

Uwe

Read only

Former Member
0 Likes
411

hi ,

I am having the same requirement adding 4 fields in the transaction code COOIS(Production order information system).

I am using workorder_infosystem Badi ..

For adding the 4 fields in ALV Grid and where to write the code..

Please suggest me how u handled ur object and i m trying but i dont have very much OOPS knowldege.

Thanks in Advance...

Regards

Steve