cancel
Showing results for 
Search instead for 
Did you mean: 

How to control end of page ULINE?

hkmaradana
Active Participant
0 Kudos

Dear Experts,

I worte uline command for each record in my output form. Actually i draw a window with 45 lines width.

My problem is at the end of page the uline is printing which i dont want because i am printing in side of the window which is already having bottom line.

Can any one guide me how we can handle this situation?

Thanks

Cris

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Cris

I'm not sure exactly the issue you are facing.

But I believe you can solve this in various ways.

-> You can just remove the bottom boarder (remove the complete boarder and select the boarders of all the three other sides)

or

-> If you are sure of the hieght of the space (in lines) you are printing on each page and height of space you are using for each page, you can control it with counter. Maintain a counter with each line you print, if it is less than the height of the space print ULINE else clear the counter.

Regards

Surya.

hkmaradana
Active Participant
0 Kudos

Hi Surya,

Thanks a lot this is exactly i am facing the problem which you have described.

I go for second option like declaring counter, but how to do that.

Can you pls guide me how to do that. Given below is my code

Driver Program:

loop at itab.

perform write_form.

endloop.

Sapscript:

box......

itab-field1

&uline&

Thanks

Cris

hkmaradana
Active Participant
0 Kudos

Hi Surya,

I forgot to tell you in my window 25 records are filling and i am facing the problem

in each page after 25th record.

Thanks

Hari

former_member196280
Active Contributor
0 Kudos

If you know the number of records you are going to print in your window then you can use SAPcounter in your program and place your condition.

Ex: &SAPSCRIPT-COUNTER_0(+)& "Increments by 1

IF &SAPSCRIPT-COUNTER_0 NE 25.

**ULINE.

ENDIF.

Regards,

Sairam

hkmaradana
Active Participant
0 Kudos

Hi,

Thanks a lot for your answer, Yes it is working but only for first page.

Just imagine i am having more than 100 records it prints 4 pages.

In second page it will be 50 right, how we can dynamically handle this without hardcoding.

Please guide me...we are in same page.

Thanks

Cris

Former Member
0 Kudos

your internal table will have a sy-tabix..

if sy-index = table length

dont print uline