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(main window)

Former Member
0 Likes
913

As it is necessary to have MAIN Window in sapscript. So can we definer window type as constant or variable for MAIN WINDOW....

hope u r getting me ......

thnkas

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
883

main window is also one aligned category of Var and Const window types.

So we cant do that.

8 REPLIES 8
Read only

Former Member
0 Likes
884

main window is also one aligned category of Var and Const window types.

So we cant do that.

Read only

Former Member
0 Likes
883

Hi

One of the window type is main window, so if you define all windows as either constant or variable windows then where will be main window. Main window will be created automatically even if you want to change its type it will not allow, it will raise error.

Regards

Haritha.

Read only

Former Member
0 Likes
883

hi sam..

i dont think so we can perform the action you want to do..i.e. we cannot define the main window as constant or varible window.

Read only

Former Member
0 Likes
883

if u could tel the exact requirement, then we can able to suggest more and exactly.

Read only

Former Member
0 Likes
883

Hi Sam,

The MAIN window will automatically comes when you create a form.

A window mainly contains the SAP scripts text and the variable to be printed. There is one special window, MAIN, which contains the output of the line item of a document and is created by the system. The window can be of type VAR or CONST except for the MAIN. But in the present version, SAP system does not distinguish between these two types. The content of variable window is regenerated on every page. The content of a constant window is generated once at the beginning and later printed on every page.

Thanks,

Vinay

Read only

0 Likes
883

thanks vinay

Read only

Former Member
0 Likes
883

hi sam,

sorry yaar it is a must to have a main window. its a default one and its ur wish to fill the data r not.

why that worries u man ,since if u dont want the data in main window u leave it as it is . scripts r to be printed so in the output u dont know the window specifications.

with regards

magesh.

Read only

Former Member
0 Likes
883

Hi sam,

I guess you are dealing with cheque printing,

If you need your cheque to be printed on each page use a constant window within the main window.

and if your cheque is to be printed just on the first page use variable window.

Feel free to ask any more questions.

Regards,

pankaj singh