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

How to write text into SAPSCRIPT box?

Former Member
0 Likes
1,563

Hi again to everyone!

I'm trying to write some text (let's say for example i want to write "Budget") into the box i have just created:


BOX YPOS '9.4'CM XPOS '5.0'CM WIDTH '2.5'CM HEIGHT '0.7'CM FRAME 1 TW

I've read through some of the earlier threads and i still don't quite understand the examples that were given.

I would also like to know if it is possible to write long control commands that take up more than 1 line? I've been trying to figure out a way to do so but no success, i've even tried using = and <blank>

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,131

HI,

Look at the example ...............

***************************

/* BEGIN OF CHANGE LDEEPAK 09/12/2005.

/: IF &VBDKR-VBTYP& = 'O' OR &VBDKR-VBTYP& = 'S' OR &VBDKR-VBTYP& = '6'.

/: BOX YPOS '0.0' CM WIDTH '25.4' CM HEIGHT '0.85' CM FRAME 4 TW

/: BOX YPOS '0' CM XPOS '4.4'CM WIDTH '0'CM HEIGHT '0.85'CM FRAME 4 TW

/: BOX YPOS '0' CM XPOS '8.35'CM WIDTH '0'CM HEIGHT '0.85'CM FRAME 4 TW

/: BOX YPOS '0' CM XPOS '11.6'CM WIDTH '0'CM HEIGHT '0.85'CM FRAME 4 TW

/: BOX YPOS '0' CM XPOS '19.65'CM WIDTH '0'CM HEIGHT '0.85'CM FRAME 4 TW

B <K>CUSTOMER NO.</> <K> CONTRACT NO. / SALES ORDER NO.</>

= <K> ORIGINAL INVOICE NO.</> ,,<K> CUSTOMER PO.</>

= ,,,,<K>TERMS</>

***********************************

Here you can find the texts which i had given in my box's.

You need to create your own Charecter formats nad go a head.

I hopw this will helps you.

Thanks.

If this helps you reward with points.

5 REPLIES 5
Read only

Former Member
0 Likes
1,131

Hi Bernard,

cud u please specify wat s the problem that u r facing wen writing the text??is it the alignment problem or something else???

to write texts within a box, u need to c the positions carefully and format the spacings accordingly to fit it within the box exactly.

u can extend the editor line for control commands longer then a line using ( Shift + F8).

Pl Acknowledge if it helps.

Regards,

Bikash

Read only

Former Member
0 Likes
1,132

HI,

Look at the example ...............

***************************

/* BEGIN OF CHANGE LDEEPAK 09/12/2005.

/: IF &VBDKR-VBTYP& = 'O' OR &VBDKR-VBTYP& = 'S' OR &VBDKR-VBTYP& = '6'.

/: BOX YPOS '0.0' CM WIDTH '25.4' CM HEIGHT '0.85' CM FRAME 4 TW

/: BOX YPOS '0' CM XPOS '4.4'CM WIDTH '0'CM HEIGHT '0.85'CM FRAME 4 TW

/: BOX YPOS '0' CM XPOS '8.35'CM WIDTH '0'CM HEIGHT '0.85'CM FRAME 4 TW

/: BOX YPOS '0' CM XPOS '11.6'CM WIDTH '0'CM HEIGHT '0.85'CM FRAME 4 TW

/: BOX YPOS '0' CM XPOS '19.65'CM WIDTH '0'CM HEIGHT '0.85'CM FRAME 4 TW

B <K>CUSTOMER NO.</> <K> CONTRACT NO. / SALES ORDER NO.</>

= <K> ORIGINAL INVOICE NO.</> ,,<K> CUSTOMER PO.</>

= ,,,,<K>TERMS</>

***********************************

Here you can find the texts which i had given in my box's.

You need to create your own Charecter formats nad go a head.

I hopw this will helps you.

Thanks.

If this helps you reward with points.

Read only

0 Likes
1,131

wat are the settings that i would need to do for 'K' in character formats?

Read only

0 Likes
1,131

thanks for the tip on using SHIFT+F8...real handy

Read only

0 Likes
1,131

it ok...i managed to figure it out myself...thanks to you... points are rewarded...

thread is closed