要在不使用功能模块的情况下执行此操作,可以使用“ cl_rebf_ddic_tabl”类。请注意,类方法几乎与功能模块相似。它们被定义为执行特定功能的代码块。
尝试使用以下代码:
CALL METHOD cl_rebf_ddic_tabl=>exists EXPORTING id_name = [table name] id_tabclass = 'TRANSP' " For table * if_noview = ABAP_FALSE receiving rf_exists = yes
。
如果事务SE11中存在该表,则将返回“ X”。
CALL METHOD CL_REBF_DDIC_TABL=>methodname EXPORTING/IMPORTING GET_TEXTTAB - Supplies the Corresponding Text Table GET_COMPLETE - Supplies All Technical Information GET_DETAIL_X - Supplies Extended Header Data GET_FIELD_LIST - Supplies the Field List GET_FIELD_LIST_X - Supplies the Field List with Additional Data GET_RUSER - Supplies Author/Date/Time of Last Change COMPARE_WITH_DATA - Detail Comparison PUT_COMPLETE - Creates a New Table/Structure SPLIT_FIELDNAMES - Generates Field List According to List EXISTS - Table/Structure Available? EXISTS_FIELD - Field Available in Table/Structure? EXISTS_INDEX_FOR_FIELDS - Field Available in Table Index?
下表为您提供了有关使用此方法来获取信息的更多信息: