Application Development 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: 

Dynamic BOX-es in SAPScript

Former Member
0 Kudos

Hi!

I would like to reduce the coding in my SAPScript so I would like to use variables to position the BOX-es.

I would like to write a line with values, and print a box around the items.

I imagined it somehow like this:

/E ITEMS

/: &wa_pa0002-nachn& &wa_pa0002-vorna& (&wa_pa0002-pernr&)

/: BOX XPOS 0 CM YPOS &GV_Y_POS& CM HEIGHT 1 CM WIDTH 10 CM FRAME 10 TW

The &GV_Y_POS& is manipulated in the printer program. Anyways it is not working.

Any ideas?

Thank you in advance

Tamá

3 REPLIES 3

former_member583013
Active Contributor
0 Kudos

This is the way I do it...And it works for me -;)


SIZE WIDTH '0.7' CM HEIGHT '0.4' CM
BOX FRAME 1 TW XPOS '0.0' CM YPOS &G_LINE1& CM

Greetings,

Blag.

0 Kudos

Thank you for your answer.

The problem was that I was using a number type variable, instead of a character type one...

0 Kudos

I'm glad you could solve it -;)

Greetings,

Blag.