cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Box's

Former Member
0 Kudos

Hi All,

I have a one question , in SAP Scripts/Smartforms how can i draw a dynamic box's. if there is one record one box (Like Table with 3 Cells(rows & coloums)) has to appear, if it is 2 ,two box's has to appear depending up on the records.

Please if any one having the code3 or path to slove this Problem, please give me the advice.

Thanks very much in advance for your answer.

Naren

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member196280
Active Contributor
0 Kudos

I hope this will help you.

Create a similar window,of same size as main window and place it on main window, you draw the lines/boxes on this new window.

Rgds,

SaiRam

Former Member
0 Kudos

Hi SaiRam,

I got u point, thats fine every new windown occupies space, for ex... max record no is 10. i will create 10 main windowns, if it is 3 records the remaining 7 records space will appear in print. it's not look good.

please provide if u have any other solution.

many thanks

Naren.

former_member196280
Active Contributor
0 Kudos

In print program, something like this

data: ypos(5), ht(5).

move '1.75' to ypos.

move '3.00' to ht.

call function 'WRITE_FORM'

exporting

element = 'HEAD'

exceptions

element = 01

function = 02

type = 03

unopened = 04

unstarted = 05

window = 06.

if sy-subrc ne 0.

message e205 with 'WRITE_FORM failed.' sy-subrc element.

endif.

And in the SAPScript:

/E HEAD

/: BOX YPOS &YPOS& LN HEIGHT &HT& LN INTENSITY 10

Regards,

SaiRam