Skip to Content
0
Dec 13, 2011 at 03:01 PM

SAPscript F110_PRENUM_CHCK, change REGUP line items in window MAIN

122 Views

Hi,

I am trying to change the line items on the cheque advice form. I have copied SAPscript F110_PRENUM_CHCK and it's print program RFFOUS_C to Z ones and this is what I'm trying to do:

In the MAIN window, instead of printing:

&REGUP-BLDAT&,,&REGUP-BELNR&,,&REGUP-WRBTR&

I would like to print:

&ZREGUP-BLDAT1&,,&ZREGUP-BELNR1&,,&ZREGUP-WRBTR1&,,&ZREGUP-BLDAT2&,,&ZREGUP-BELNR2&,,&ZREGUP-WRBTR2&

In other words, I would like to print two line items on the same line.

I have declared my table ZREGUP in the print program and in the INCLUDE ZRFFORI01 (which is a copy of RFFORI01) and then filled it from REGUP, so instead of having 4 lines in REGUP, I have 2 lines in ZREGUP (the first line item is in fields 1 line 1, the second line item is in fields 2 line 1, the third line item is in fields 1 line 2 etc). Plus I've changed the fields in my SAPscript window MAIN.

BUT, it appears that window MAIN is called 4 times, presumably once for each line item in REGUP. It's still called 4 times and each line is blank (I know it's called 4 times as WRBTR1 and 2 are 0.00 and they appear on the print out).

SO, I've filled my table ZREGUP but either it's not available when MAIN is called or I've done something wrong.

Can anyone help? Any suggestions are very welcome. If it's not possible, please tell me and I'll tell my clients that the layout needs to change.

Thanks in advance,

Gill