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

SAP Script - Formatting Line

Former Member
0 Likes
1,492

Hi Experts,

In a classical ABAP report we make use of

write:/20 'Text'.

to print text from the 20th column. Can we do something similar in a SAP Script Page Window. I have a box and lines drawn. Now I want the text to start exactly after the vertical line(column). Is there a way to do in SAP Script.

Regards

Abdullah.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,322

Hi

You can do one thing. you can straight away write the field

&BSEG-SGTXT&

in two lines straight with offset.

in the first line T1 &BSEG-SGTXT+0(25)&

In second line T1 &BSEG-SGTXT+25(25)&

first write like this and see, is it printing or not.

Reward all helpfull answers

Regards

Pavan

5 REPLIES 5
Read only

Former Member
0 Likes
1,323

Hi

You can do one thing. you can straight away write the field

&BSEG-SGTXT&

in two lines straight with offset.

in the first line T1 &BSEG-SGTXT+0(25)&

In second line T1 &BSEG-SGTXT+25(25)&

first write like this and see, is it printing or not.

Reward all helpfull answers

Regards

Pavan

Read only

0 Likes
1,322

Hi,

It takes the characters from using the offset and displays it. I dont want to print a few characters of the fields. I want to position them on my form so that they are displayed in the correct places.

Regards

Abdullah

Read only

0 Likes
1,322

Hi,

You must use paragraph formats tabs configuration.

You make a paragraph format with a tabulation (that you can measure in characters, CM, inches...) that outputs your text wherever you want on the line.

then in your window,put your text with this format (let's assume its name is PF)

on the classical editor, tabs are represented by ",," (double comma).

Reward if it helps.

Read only

0 Likes
1,322

Create a haracter/paragraph format as per the requirement and provide the Tab settings in in.

e.g. Tab 1 Position 20.

Use that format on your tesxt.

Refer the links to know in details -

http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRFORM/BCSRVSCRFORM.pdf

http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCDWBERG/BCDWBERG.pdf

http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRPROG/BCSRVSCRPROG.pdf

http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRRDI/BCSRVSCRRDI.pdf

Regards,

Amit

reward all helpful replies.

Read only

Former Member
0 Likes
1,322

You can use Paragraph format in SE71 Transaction,

here you can able to see Tab position ,give first tab would be 20 char alignment would be Left or right.

If you need design the box ,then i am giving simple example below :

POSITION WINDOW

BOX WIDTH '74' CH HEIGHT '36.5' LN FRAME 10 TW

POSITION WINDOW

BOX WIDTH '74' CH HEIGHT '3.1' LN FRAME 10 TW INTENSITY 10

POSITION XORIGIN '0.9' CM

BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW

POSITION XORIGIN '3.0' CM

BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW

POSITION XORIGIN '5.0' CM

BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW

POSITION XORIGIN '7.2' CM

BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW

POSITION XORIGIN '8.3' CM

BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW

POSITION XORIGIN '9.5' CM

BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW

POSITION XORIGIN '12.0' CM

BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW

POSITION XORIGIN '14.5' CM

BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW

POSITION XORIGIN '17.0' CM

BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW

POSITION XORIGIN '19.7' CM

BOX WIDTH 0 CM HEIGHT '36.5' LN FRAME 10 TW

Thanks

Seshu