cancel
Showing results for 
Search instead for 
Did you mean: 

SAPSCRIPT Managing Check Numbers

Former Member
0 Kudos

Hi,

Our requirement is to print a Check on top of the first page, followed by invoice detail possibly extending to more pages.

The problem to be resolved is that the Check number is being incremented by one not only for the first page but for each page printed. As an illustration, if the starting Check number = 1001 and the Invoice detail ends on Page 4, the next available Check number would be 1005 - this should actually be 1002 instead.

(Also, some times the Check Number is staying the same on multple checks.)

I am working with a customized version of RFFORI01 where the change I made relates to printing the Check on the first page.

I would greatly appreciate any ideas to manage this Check numbering issue (with PAYR, PCEC and other relevant Tables properly updtated).

Thanks in advance.

Ananth

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Test the checkboxes used for output control on the selection page.

One of them will get your check number increased only on a new check, not for each page.

I this it's something with voided check

Regards

Åsa Thenstedt

Former Member
0 Kudos

Thanks Asa,

I would never have guessed - checking the box '"Do not Void any Checks" on RFFOUS_C - did the trick!

Thank you very much for your suggestion!

Ananth

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

In this case you need to keep track of how many records or how many pages are being printed for a Check no, so if for the same check no or invoice no its spanning over various pages you don't have to increment the chek no but increment it only when invoice or whatever is changing , i assume that there must be some identifying parameter based upon which you must be wanting to increment the cheque no.

so make use of PERFORM set_check_no IN PROGRAM <XYZ>

using &Invoice_no> "I assume invoice no to be the criteria

changing &check_no&

you would even have to write same kind of PERFORM in the MAIN where you would update a Counter which will keep track that the printing is happening for the same Invoice and even if its spanning over multiple page header shud print the unicremented value of check no.

Former Member
0 Kudos

Thanks Neha,

SAP routines in RFFORI01handle all the complex possibilities (including reversals) in addition to printing - I will work on the routine you suggested but am afraid of the complexity involved to handle alll these scenarios..

Are there any Config changes that may allow ignoring the overflow pages in check numbering?

Ananth

Former Member
0 Kudos

Thanks again for your very helpful answer.

Ananth

Former Member
0 Kudos

Hi Ananth,

I have never worked with the print program you have specified but yes Config changes do affect a lot.

but once config settings are freezed you can program accordingly.

so don't be afraid its going to be interesting.