cancel
Showing results for 
Search instead for 
Did you mean: 

how to control comments at the bottm of the page

Former Member
0 Kudos

I have a requirement to print a comment based on the materail type - on a custom print out for Delivery.

This comment is to be pritned at the bottom of the page if the particualr material is present.

So if the particualr material type is avaialable on First page, the comment should be printeda t bottm of first page, if the material type is not avaible in the list on second page - no comment to be printed. Again if it is on 3rd page, the comment should appear and thus...

I tried in the amin window itself, the following code:

if material type eq 'XYZ'.

BOTTOM ..

ENDBOTTOM

endif.

but it is printing on all pages.

Do I have to use a footer window for this or how to do this?

Please advise.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

solved - used variables to pass values

Former Member
0 Kudos

Hi,

try to clear the variable in the else clause.

if material type = 'XYZ.

bottom

print

endbottom.

else.

clear the comments.

endif.

regards,

vara

Former Member
0 Kudos

I did the clear - but since it is a BOTTOM .. ENDBOTTOM statement, the comment is being pritned on all pages.

I put a check saying that

IF &PAGE& = 1

BOTTOM

"COMMENTS"

ENDBOTTOM

ENDIF.

but the &PAGE& = 1 does not seem to be effective

can somebody pl help?

thanks,

ven