Skip to Content
0
Former Member
Dec 05, 2013 at 04:34 PM

'DDIF_FIELDINFO_GET' question. DFIES_TAB vs DFIES_WA

657 Views

Is there somewhere that explains this function module in detail. The help files are not very good at explaining this particular FM in my opinion.

For example, I see there are two ways of getting the results back. One is using a TABLES and then DFIES_TAB yet the other way is to not use TABLES and instead use IMPORTING DFIES_WA.

What advantage does one of these have over the other? For example: In what circumstance would you HAVE to use the TABLES option instead of IMPORTING.

Also on the calling side of this FM I see in some cases you specify FIELDNAME and then other cases LFIELDNAME. Why not do everything using just FIELDNAME? What's the point of LFIELDNAME?

Any detailed explanation is well appreciated. Thank you!

For reference, here is what I used in my code but it was simply because this is what was offered to me to fix my problem. In this case it uses the IMPORTING way of getting the data back. Why not use the TABLES way of getting info back?

CALL FUNCTION 'DDIF_FIELDINFO_GET'
EXPORTING
TABNAME = fu_tabname
FIELDNAME = fu_fieldname
LFIELDNAME = fu_fieldname

IMPORTING
DFIES_WA = fwa_field_tab

EXCEPTIONS

NOT_FOUND = 1
INTERNAL_ERROR = 2
OTHERS = 3