Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何对 ABAP 表中的字段值设置约束,以便它可以包含任何“n”个可能值?例如,如果我输入一个工作日,它只能有 7 个可能值中的任何一个。在创建表期间是否有对此的一致性检查设置?
您可以为此目的使用域。表字段 => 数据元素 => 域。在域中,您可以为该字段定义可能的值。如果您的工作日示例确实是您所需要的,那么请查看 SE11 中的域 WEEKDAY。