cancel
Showing results for 
Search instead for 
Did you mean: 

counting lines in SAP script

Former Member
0 Kudos

Hi Gurus,

Can someone help me count the number of lines in a sap script in a page.

Thanks in advance!

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi rajbans..

Try with this code....

/: DEFINE &COUNTER& = &Counter& + 1.

/: DEFINE &SAPSCRIPT-COUNTER_9& = 0

/: &SAPSCRIPT-COUNTER_9(+)&

I hope this will work but am not sure.

Thanks & Regards

Gopal.B

Former Member
0 Kudos

unless you find some event that gets triggered on NEW-LINE, this sounds like a mission impossible (not 100% sure tho).

I fear you will not be able to recognize when a floating text creates a CRLF (carriage return & line feed).