How to count number of columns in internal table...any ideas?
What i was afraid of.. your structure only has 1 column. Hence, your result equals 1.
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