on 04-02-2007 1:10 PM
Hi ,
I want to change Box length depending upon number of entries in it.
Am using the following code in script.
/E 102
/: BOX HEIGHT &N& CM FRAME 10 TW
/: BOX YPOS 2 CH HEIGHT 0 CM FRAME 10 TW
/: BOX XPOS 12 CH WIDTH 0 CM FRAME 10 TW
/: BOX XPOS 20 CH WIDTH 0 CM FRAME 10 TW
P1 ,,&ITAB-MATNR(R)&,,&N&,,&X&,,
Here N is my variable , and its value is 3 in runtime.
But am not getting desired result. Can any body correct me .
Regards,
Sandeep.
Hi!
SAPScript accepts in this case only character type variables.
So in your printer program you have to define "N" like this:
DATA: n(10) TYPE c.
So you have to MOVE the number into a character type field.
I'm using it the same way and it is working for me.
Regards
Tamá
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
For determining number of entries in an internal table ... use DESCRIBE statement ..
i.e,
describe table itab lines v_lines.
based on that calculate the box length ..
Regards,
Santosh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
67 | |
26 | |
9 | |
9 | |
7 | |
6 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.