cancel
Showing results for 
Search instead for 
Did you mean: 

SAPscript - Dynamic box position and height.

Former Member
0 Kudos

Greetings...

How to print dynamic box according to the Element. I have an element with looping condition when i used box the line only printed on the first loop, but and no line printed on the next looping even though its is different element.. Below is the sneak peak of my code.

/E 101
/:   BOX WIDTH 0 MM HEIGHT '2' MM FRAME 20 TW
/:   POSITION YORIGIN '+2' MM
W2   <B>&text&</><B>,,&zvalue&</>

Thank you

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Lee,

Instead use different Element for each BOX statement..

Hope this should work.

Regards,

Sandeep.

Former Member
0 Kudos

I'm trying as what suggested here, but the box still not loop accordingly. Thanks any way for the suggestion.

Former Member
0 Kudos

Hi

it is very hard to print a dynamic box with sapscript.

It is more easy to develop a new-smartform then to develop a dynamic box.

i know only 1 sapscript which is using dynamic boxes. I do not know the sapscript only the fucntional name we use. That is shopfloor papers (for a production order). It has a good combination of printprogram and sapscript which both has to be working together to get it done. Try to find it and study it. Then you will find out how it works.

There is no way to get it done with only changes in your sapscript.

an alternative is to use tab's and '|' and ulines to make something that look a bit like boxes.

Hope this will help you out.

Gr., Frank

Answers (1)

Answers (1)

Former Member
0 Kudos

impossible

Former Member
0 Kudos

Why its impossible ? Numerous forums said it can be done... But i'm facing the problem generating it

I'm using box to create dynamic vline, using sy-vline or | value its hard to align it.

Thanks.

Former Member
0 Kudos

you are right it is possible. But is is very difficult.

to align the '|' you have to use tabs (set paragraph format and use ,,)

have you already looked at the shopfloor paper sapscript.?

Gr., Frank

Former Member
0 Kudos

Could you give the name of the form? i cant find it..... thanks.

Former Member
0 Kudos

Hi,

Sorry it took so long.

Sapscript: PSFC_PRINT_LAY

printprogram: PSFCOBJL

Gr., Frank

I found this with customizing transaction OPK8

Former Member
0 Kudos

Forgot to tell.

You can learn a lot of sapscript with this one

It is made by a real master.

Former Member
0 Kudos

Hi,

i am interested how you are doing with the dynamic boxes.

Gr., Frank

Former Member
0 Kudos

I'm not into dynamix box... due to time constraint i revert back to using vline and uline. Dynamic box is possible the key is using yorgin and xorigin..

Thanks everyone.