cancel
Showing results for 
Search instead for 
Did you mean: 

cheque printing in 2 consecutive pages

Former Member
0 Kudos

Hi experts,

I am doing cheque printing using RFFOUS_C program. I have created zprogram for the same to do some customizations. I am getting the required data in my script,

In my sapscript I am displaying the line items which contains Bill No, Bill date, Bill Amount, TDS and Net Amount. And I am printing the Checque.

Now If for particular vendor if line items are exceeding more than 6 , then the remaining line items should go to next page. accordingly the cheque for these 2 pages should be generated . ie. for 1st 6 line items one cheque and for next line items one cheque and so on.

Please guide me to solve this issue..I am getting data in my internal table prn_data.

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member196280
Active Contributor
0 Kudos

you want only 6 lines for particular vendor to do this place your condition in your main window....

Ex:

***IF vendor = 'XXXX'.

**IF counter EQ 6.

**NEW-PAGE.

**ENDIF.

**ENDIF.

rough example, try in this approach you can solve it...

regards,

SaiRam

Former Member
0 Kudos

HI,

check your form main window

if you want to display it in two pages diffenatly the data in the main window should be more than its size

check how many lines are there in the table and the window size

Regards,

Phani.

Former Member
0 Kudos

Hi,

Set your Main Window height to 6 LN. It will fit only 6 line items and flow to next page. Your requirement will be met.

Reward if useful...

Former Member
0 Kudos

Hi,

usually the functional consultant

will configure for this kind of situation...

if it is less than or equal to 6 line items

then one script will be called

if it is greater than 6 then another script will call

this is how we did....

the configuration of these scripts was done by the functional consultant

regards,

Venkatesh