cancel
Showing results for 
Search instead for 
Did you mean: 

Printing texts in boxes (sapscript)

Former Member
0 Kudos

Hello Friends ,

I am having a weird problem . I created a const window with boxes . Right now I am trying to enter text in the respective Boxes . Well I should say that all the Headings are being printed correctly . But when i try to pass the values below the headings from the print program only the empty boxes get printed and not the headings . Please advise . Here is a code snippet below of my print prg and sapscripts .

Thanks ,

Hari

sacpscript

BOX XPOS '2.2' CM YPOS '0.3' CM WIDTH '1.8' CM HEIGHT '0' CM FRAME 1

BOX XPOS '2.2' CM YPOS '0.3' CM WIDTH '1.8' CM HEIGHT '0' CM FRAME 1

BOX XPOS '2.2' CM YPOS '0.3' CM WIDTH '1.8' CM HEIGHT '0' CM FRAME 1

BOX XPOS '2.2' CM YPOS '0.3' CM WIDTH '1.8' CM HEIGHT '0' CM FRAME 1

.....

.........

...........

/E TOTAL

B1 ,,EARNINGS,,TAXES,,DEDUCTIONS,,NET PAY

B2 &curr_net &,,CHECK AMT&,,.&DED& ,,&NE_PAY&

In the print program .

............

.................

CALL FUNCTION 'WRITE_FORM'

EXPORTING

element = 'TOTAL'

window = 'SUMMARY'

EXCEPTIONS

window = 1

element = 2.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hey

Declare a Text element for the Boxes also.

Unless u put it it wont work

Try puuting one box and send a value into it ..if it is sucessful put the remaining boxes.

Thanks

Deepthi

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Jul 8, 2008 10:54 AM

Former Member
0 Kudos

Try in this way, it may work.

First print the text and then print BOX. Keep text element for box also and proceed in the following way.

/E TOTAL

B1 ,,EARNINGS,,TAXES,,DEDUCTIONS,,NET PAY

B2 &curr_net &,,CHECK AMT&,,.&DED& ,,&NE_PAY&

/E BOX

BOX XPOS '2.2' CM YPOS '0.3' CM WIDTH '1.8' CM HEIGHT '0' CM FRAME 1

BOX XPOS '2.2' CM YPOS '0.3' CM WIDTH '1.8' CM HEIGHT '0' CM FRAME 1

BOX XPOS '2.2' CM YPOS '0.3' CM WIDTH '1.8' CM HEIGHT '0' CM FRAME 1

BOX XPOS '2.2' CM YPOS '0.3' CM WIDTH '1.8' CM HEIGHT '0' CM FRAME 1

CALL FUNCTION 'WRITE_FORM'

EXPORTING

element = 'TOTAL'

window = 'SUMMARY'

EXCEPTIONS

window = 1

element = 2.

CALL FUNCTION 'WRITE_FORM'

EXPORTING

element = 'BOX'

window = 'SUMMARY'

EXCEPTIONS

window = 1

element = 2.

Check and let me know if u face any problem.

Regards

Former Member
0 Kudos

HI,

Check the below code

/E TOTAL

BOX XPOS '2.2' CM YPOS '0.3' CM WIDTH '1.8' CM HEIGHT '0' CM FRAME 1

B1 ,,EARNINGS,,TAXES,,DEDUCTIONS,,NET PAY

BOX XPOS '2.2' CM YPOS '0.3' CM WIDTH '1.8' CM HEIGHT '0' CM FRAME 1

B2 &curr_net &,,CHECK AMT&,,.&DED& ,,&NE_PAY&

BOX XPOS '2.2' CM YPOS '0.3' CM WIDTH '1.8' CM HEIGHT '0' CM FRAME 1

BOX XPOS '2.2' CM YPOS '0.3' CM WIDTH '1.8' CM HEIGHT '0' CM FRAME 1

I hope this solves your problem.

Regards,

Vara