Skip to Content

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

internal table

Hello ,

How to count number of columns in internal table...any ideas?

regds

Tags:
Former Member
Former Member replied

What i was afraid of.. your structure only has 1 column. Hence, your result equals 1.

edit:

Apparently, you have a '|' separated string in there.

Read a line from your internal table into a workarea.

Use SPLIT workarea TABLE lt_temp AT '|'

And then count the number of lines in lt_temp.

I assume all lines in your intenal table have the same structure, e.g. the same number of separated values.

Edited by: Maen Anachronos on Oct 3, 2008 1:46 PM

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question