Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Describe length of a generic table line at runtime?

Hi experts,

This is a my FM:

*"----


""Local Interface:

*" IMPORTING

*" REFERENCE(I_LINE_WIDTH) TYPE INT2

*" VALUE(I_LONGTEXT) TYPE N2PMDETEXT-CONTENT

*" TABLES

*" T_LONGTEXT

*"----


Hence I call it:

gt_longtext type table of char255.

CALL FUNCTION 'ZFB_S_SF_LONGTEXT_INTO_TABLE'

EXPORTING

i_line_width = 255

i_longtext = lwa_N2PMDETEXT-content

tables

t_longtext = gt_longtext

.

So I asign gt_longtext table to T_LONGTEXT in my FM. At this moment the parameter table T_LONGTEXT should be of the same type as gt_longtext. How do I find the line lenght in characters of a single line of T_LONGTEXT (should be char255) at runtime in my function module?

Tags:
Not what you were looking for? View more on this topic or Ask a question