First, after we execute the program, find the table of contents are all there in the background
Second, this is because we set the primary key in the code
Third, we removed the processing other than the primary key of the first
Fourth, run the program, all the fields are found or background color
V. This is because after each ls_fieldcat assignment, he needs to be cleared, otherwise the content will be brought under one assignment, use clear in your code as follows
Sixth, the effect is as follows