cancel
Showing results for 
Search instead for 
Did you mean: 

ways to get the line number in sapscript form?

Former Member
0 Kudos

Hi, all.

May I know whether that there are ways to get the line number in sapscript form?

For example, I want to get to know the certain line number in the MAIN window.

Thanks in advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member585060
Active Contributor
0 Kudos

Hi,

Try this system field

&SYST-LINNO&

Regards

Bala Krishna

Former Member
0 Kudos

Hi, Bala Krishna.

Thanks for ur reply.

But the &SYST-LINNO& doesn't work in the sapscript...i think

Is it used for List only?

former_member585060
Active Contributor
0 Kudos

Try to use it and see the output, we can use Standard system symbols also.

Edited by: Bala Krishna on Oct 7, 2008 6:26 PM

Former Member
0 Kudos

hi.

test already. All lines show the value '1' only in MAIN window.

naimesh_patel
Active Contributor
0 Kudos

The parameter PENDING_LINES of the function module WRITE_FORM will be able to get you the remaining lines of the window in which you are printing.

Regards,

Naimesh Patel

Former Member
0 Kudos

Thanks Naimesh Patel .

Is there anyway to get the PENDING_LINES value in the script?

Because i can't modify the standard print program, i can only edit the Sapscript Form and add in some extra subroutine only.

tnx.

naimesh_patel
Active Contributor
0 Kudos

Can you explain your purpose to get the line number in the SAPScript? There might be some other ways to achieve instead of knowing the line number..

Regards,

Naimesh Patel

Former Member
0 Kudos

Because I wish to fill in some lines of space in certain line of a page of main window.