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: 

How to change the fieldcat in dynamically

Former Member
0 Kudos

Hi,

I have a requirement. I am uploading report output to Application server depends on the layout variant. In report output it is showing all the fields correctly. But in UNIX truncate some data. For that i need to change that fieldcat. How to do that. Could any one help me.

Thanks,

2 REPLIES 2

Former Member
0 Kudos

Hi,

How are you viewing the contents of the UNIX file? If you are viewing it in AL11 transaction, then maybe the data is there in the file but you cannot view it. Please confirm that.

Also, do you want to reduce a field catalog only during download or even during display??

Please explain your scenario much in detail..

Regards,

Prakash.K

former_member585060
Active Contributor
0 Kudos

Hi,

Use FIELD-SYMBOS in declaring field catalog.

Ex:-

DATA : itab TYPE STANDARD TABLE OF zmara, "Output table

i_fieldcat TYPE STANDARD TABLE OF lvc_s_fcat, "Field catalog

FIELD-SYMBOLS : <fs_fieldcat> TYPE lvc_s_fcat.

LOOP AT i_fieldcat ASSIGNING <fs_fieldcat>.

CASE <fs_fieldcat>-fieldname.

WHEN 'ERSDA'.

  • Making a column as Editable

<fs_fieldcat>-edit = 'X'.

WHEN 'ERNAM'.

  • Making a column as Editable

<fs_fieldcat>-edit = 'X'.

ENDCASE.

ENDLOOP.

Regards

Bala Krishna