10-13-2008 10:04 AM
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,
10-13-2008 12:15 PM
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
10-13-2008 12:20 PM
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