Skip to Content

SAPscript F110_PRENUM_CHCK, change REGUP line items in window MAIN


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:


I would like to print:


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,


Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Dec 14, 2011 at 07:19 AM


    Can you paste the code snippet over here?

    with regards

    Naresh Bammidi

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 14, 2011 at 11:36 AM

    Thanks guys.

    I solved this by moving my table declaration to a copy o include RFFORI00 and declaring a new text element in window MAIN and calling that using the function module WRITE_FORM within a loop of my internal table ZREGUP.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.