on 12-20-2006 5:00 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.