Yes, the column (d) amount should be entered into TT Calif if it is different from the federal amount. Don't bother entering the same number as federal - that's a waste of your time.
Charitable contributions come from your federal 1120S K-1 charitable entry(ies) and don't need to be entered into TT Calif.
Calif K-1 Column (e) is to report how much of the Calif income is from Calif sources. This is useful information for Calif nonresidents.