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 Frame

Former Member
0 Likes
1,344

Hi all,

I am designing a form.I have three main windows in this form. I have the following code in the text editor for thre windows. /: box frame 10 tw

when I check the layout of the form I can see the box only in the main window 00 but not in main window 01 and main window 02. Can anyone please help me with this.

Reagrds,

Varun

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,204

Hi Varun,

You have to define you box command in all the windows.

Lanka

10 REPLIES 10
Read only

Former Member
0 Likes
1,205

Hi Varun,

You have to define you box command in all the windows.

Lanka

Read only

0 Likes
1,204

Hi Murthy,

I defined box command in the editor of all the main windows. Let me explain you my requirement more clearly.

I have an internal table itab with three fields connid,carrid and fldate. To print these three columns to the main window I am defining three main window for each column.

I hope you understood my quoestion.

I think what I said above is not possible displaying three fields of table in three main window ssimultaneously. But please explain me how I can out frame for all three windows.

Regards,

Varun.

Message was edited by: varun sonu

Read only

0 Likes
1,204

Hi Varun,

Please note that no need to create a window for each column.you can define Your X-coredinate to define Verical line or means to create a box:

Sample Code :

BOX YPOS '1.25' LN WIDTH '120' CH HEIGHT 4 LN FRAME 10 TW

BOX XPOS '18.00' CH YPOS '1.25' LN WIDTH 0 CH HEIGHT '4.00' LN FRAME 10 TW

BOX XPOS '31.00' CH YPOS '1.25' LN WIDTH 0 CH HEIGHT '4.00' LN FRAME 10 TW

BOX XPOS '47.00' CH YPOS '1.25' LN WIDTH 0 CH HEIGHT '4.00' LN FRAME 10 TW

BOX XPOS '68.00' CH YPOS '1.25' LN WIDTH 0 CH HEIGHT '4.00' LN FRAME 10 TW

Lanka

Message was edited by: Lanka Murthy

Read only

0 Likes
1,204

Hi,

Please check my reply .

Lanka

Read only

0 Likes
1,204

Hi murthy,

Your solution has solved my problem. Thank you very much.

Regards,

Varun.

Read only

0 Likes
1,204

Hi Varun,

No need to define them as 3 main windows,if you want the 3 fields to come only once.If you want the 3 fields to be printed 3 times in the same form like labels then what you did is right ie creating 3 main windows.

But seeing your problem,i guess you want to print the values of these fields in a window with lines horizontal & vertical like a table right??

Read only

0 Likes
1,204

Hi phani,

What you said is right. Though my problem is solved, still my quoestion is not answered.

How do I put a box frame for all the three main windows

say If i am trying to print three times the values.

Regards,

Varun.

Read only

0 Likes
1,204

Use the same command for creating the table like structure in all the 3 window.for example

/: BOX WIDTH '17.5' CM HEIGHT 1 CM FRAME 10 TW INTENSITY 15

/: BOX WIDTH '17.5' CM HEIGHT '13.5' CM FRAME 10 TW

/: BOX XPOS '10.0' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW

/: BOX XPOS '13.5' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW

But check your window length & height & change them accordingly to your requiremnts.

Read only

0 Likes
1,204

Hi varun,

Instead creating a new window. Please use "copy" option to create the window from your "MAIN WINDOW" then all the Box, text elements will be copied .

Lanka

Read only

0 Likes
1,204

Hi all,

I have almost same issue as discribed in above messages.

In my case, I created two windows which has

/: PROTECT

SG &REGUP-BELNR& &REGUP-XBLNR& &REGUP-BLDAT&

= &REGUD- WRBTR&&W_WSKTO(16T)&&REGUD-WSKTO&

/: ENDPROTET

in MAIN windows.

One MAIN(MAIN) is at the very top of the form and the other(MAIN01) is at the very buttom of the form.

In both of the MAIN's I wrote same logic. However, only the first MAIN window displays the value

and the other MAIN window displays blank.

Do you have any idea to display same value in both MAIN and MAIN01?

Best regard,

Masanobu Kubota