CREATE_TABLEDESC_4_STRUCT SAP Method Table Desc: Sorted Data table, Sorted Key table types









Below is documentation, parameters and attributes of ABAP Method CREATE_TABLEDESC_4_STRUCT within SAP class /BOFU/CL_VIM_SERVICES. There is also a number of example ABAP code snipts to help you use the functionality of this method.

This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name /BOFU/CL_VIM_SERVICES into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.


Method Type - Instance

This is an Instance Method so needs to be instantiated first before you can access any of the methods. I.e. you need to create a local variable of TYPE ref to the class.

The following technical details of method CREATE_TABLEDESC_4_STRUCT can also be found below:

  • Importing parameters
  • Exporting parameters
  • Changing parameters
  • Returning parameters
  • Exceptions
  • Coding Examples


Parameters of Method CREATE_TABLEDESC_4_STRUCT

.

NameTypeData TypeDescriptionDefault Value
IV_STRUCT_NAMEImportingTYPE
CLIKE
EO_STRUCT_DESCExportingTYPE REF TO
CL_ABAP_STRUCTDESCR
Structure Descr for IV_STRUCT_NAME
EO_STRUCT_DESC_KEYSExportingTYPE REF TO
CL_ABAP_STRUCTDESCR
Struct Descr: Contains key fields only
EO_TABLE_DESCExportingTYPE REF TO
CL_ABAP_TABLEDESCR
Table Descr for IV_STRUCT_NAME sorted by Keys
EO_TABLE_DESC_KEYSExportingTYPE REF TO
CL_ABAP_TABLEDESCR
Table Descr for Key field structure sorted by Keys



Exceptions of Method CREATE_TABLEDESC_4_STRUCT

This method does not have any exceptions

Example ABAP coding


DATA: lo_class TYPE REF TO /BOFU/CL_VIM_SERVICES.
DATA: lv_EO_STRUCT_DESC TYPE CL_ABAP_STRUCTDESCR,
lv_EO_STRUCT_DESC_KEYS TYPE CL_ABAP_STRUCTDESCR,
lv_EO_TABLE_DESC TYPE CL_ABAP_TABLEDESCR,
lv_EO_TABLE_DESC_KEYS TYPE CL_ABAP_TABLEDESCR,
lv_IV_STRUCT_NAME TYPE CLIKE,
lv_other TYPE c.

CALL METHOD lo_class=>CREATE_TABLEDESC_4_STRUCT(
EXPORTING
IV_STRUCT_NAME = lv_IV_STRUCT_NAME
IMPORTING
EO_STRUCT_DESC = lv_EO_STRUCT_DESC
EO_STRUCT_DESC_KEYS = lv_EO_STRUCT_DESC_KEYS
EO_TABLE_DESC = lv_EO_TABLE_DESC
EO_TABLE_DESC_KEYS = lv_EO_TABLE_DESC_KEYS ).

Links to Related Class(s)

/BOFU/CL...
Full list of available SAP object classes

Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!