Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAPscript problem: control/page break in main window conflicts with FM

aris_hidalgo
Contributor
0 Likes
586

Hello experts,

I am currently having in my SAPscript report. I am getting wrong values in my top window maybe because I have a statement AT new statement that calls FM CONTROL_FORM and triggers new-page and also the main window triggers a new-page everytime the records fills up the main window. Questions is, Is there a solution for this? Again, thanks a lot guys and help would be greatly appreciated.

4 REPLIES 4
Read only

Former Member
0 Likes
542

HI

GOOD

YOU CHECK OUT TWO THINGS

CHECK WHERE YOU R CALLING YOUR NEW PAGE.

AND CHECK WHAT PARAMETER YOU R PASSING IN THE HEADER WINDOW.

THANKS

MRUTYUN

Read only

Former Member
0 Likes
542

hi viray,

can u explain more on ur requirement.

thanks,

priya.

Message was edited by: Priya

Read only

Former Member
0 Likes
542

why have u put a control statement( new page command) after AT NEW ?? wat do u mean by wrong values??? r they repetitive?? please ellaborate

Read only

0 Likes
542

Hi again guys,

What I want to do with my sapscript is this: for every new record in field ls_lines1 it would trigger a new page so its records would be seperated based on ls_lines1. Now, here is the problem. I found out by debugging my sapscript that when my main window is filled up it would also trigger a new page. So for example, in page 4 of my sapscript, the header window must have the value of dealer 4 but I am having the value of dealer 5 which must be on the next page and so on.