Skip to Content
0
Former Member
Mar 23, 2009 at 06:16 AM

Printing Vertical Line In The 1st Page Of SAP Script O/p & Not In The Last

51 Views

Moved to correct forum.

Hi All,

I have Standard Driver Program and Z SAP Script. The Sap Script has two Pages PAGE1 and NEXT. I have been asked to create a dotted vertical line, that should appear in the output SAP Script.

Hence I created a New Variable Window, where I wrote the logic for Vertical Dotted Line. Now the issue is when driver program is excuted and the output is displayed, for example if the output has 3 pages, the vertical Line should be visible only on the first two pages, and not on the last. Similarly if the output has only two pages, then the vertical dotted line should appear only in the first page.

Initially I tried to use the logic if the current page is equal to no. of . pages then dont execute the logic for the vertical line, but it did not work. I tried implementing the following syntax:

if &page& EQ &SAPSCRIPT-FORMPAGES&.

do not execute the logic.

else.

do not.

endif.

Is there any other way that this could be done.

Kindly Advise......

Edited by: Matt on Mar 23, 2009 7:29 AM