简体   繁体   English

TYPEKIND和TYPECATEGORY之间的区别

[英]Difference between TYPEKIND and TYPECATEGORY

Can anyone tell me the difference between CL_ABAP_TYPEDESCR=>kind and CL_ABAP_TYPEDESCR=>type_kind . 谁能告诉我CL_ABAP_TYPEDESCR=>kindCL_ABAP_TYPEDESCR=>type_kind Just want to know whether it is a structure or not. 只想知道它是否是一个结构。 But which one do I have to use? 但是我必须使用哪一个?

The constants KIND_xxx and TYPEKIND_xxx pretty much answer your question. 常量KIND_xxx和TYPEKIND_xxx几乎可以回答您的问题。

To see if something is a structure check if KIND equals CL_ABAP_TYPEDESCR=>KIND_STRUCT . 要查看某物是否为结构,请检查KIND等于CL_ABAP_TYPEDESCR=>KIND_STRUCT You can then further use TYPE_KIND to see if it is a flat or deep structure. 然后,您可以进一步使用TYPE_KIND来查看它是扁平的还是深的结构。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM