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

Box and value will print same box (scripts)

Former Member
0 Likes
682

HI Experts,

I am working on Script, The below box i want to drow , can any one help on the same.

_______________________________________

total

&total&

-


Thanks,

6 REPLIES 6
Read only

Former Member
0 Likes
653

What is your problem.

plz be specific.

regards

sateesh

Read only

Former Member
Read only

Former Member
0 Likes
653

Hi,

your query is not clear, but the command for drawing a box is as follows :-

/: BOX XPOS '11.21' MM YPOS '5.31' MM HEIGHT '10' MM WIDTH '20' MM INTENSITY 10 FRAME 0 TW

Read only

Former Member
0 Likes
653

Hi!

As i understood your problem that you want your total to be printed in the box at the end of all....

for this....i can suggest u that....

as dynamically printing a box is not possible....

you print your table data with PROTECT ENDPROTECT by restricting the lines say 10 lines per page....

Accordingly....just get the position where the total should come in the page

then in the main window

/E END_BOX_TOTAL

/: IF &PAGE& EQ &SAPSCRIPT-FORMPAGES&

  • (DRAW THE BOX)

POSITION XORIGIN '12'(YOUR POSITION WERE U WANT) CM YORIGIN '18' (YOUR POSITION WERE U WANT) CM

/: SIZE WIDTH '7' CM HEIGHT '2' CM

/: BOX FRAME 10 TW

  • TOTAL : &W_TOTAL&

/: ENDIF.

call this data element in the driver program at the end as

loop at t_itab into fs_itab.

at last.

the write_form with this data element

endat.

endloop.

Regards.

Read only

Former Member
0 Likes
653

Hi,

U can use this,

BOX XPOS 65 MM YPOS 23 MM WIDTH 60 MM HEIGHT 0 MM FRAME 40 TW

u can change WIDTH to determine the width of the line

/Regards

Read only

Former Member
0 Likes
653

Thanks