2006 Mar 22 2:38 AM
Hi,
<i>I like to draw a table in the main window, the table height should depends on number of rows displayed on it.
Could any one please help on this.
Thank you,
Senthil</i>
2006 Mar 22 3:07 AM
HI senthil
you have to use the BOX command in the SAPSCRIPT using which you can draw the table in script.
in the starting of the MAIN WINDOW draw a horizontal line and then display your vairables
in end again draw a horizontal line to close the table.
the height of the vertical line will the number of records in the internal table.
the vertical line can be drwan uisng
BOX XPOS 10 YPOS 20 width 0 CH hieght <rowcount> CH.
regards
kishore
regards
kishore
Hi,
<i>I like to draw a table in the main window, the table height should depends on number of rows displayed on it.
Could any one please help on this.
Thank you,
Senthil</i>
2006 Mar 22 3:03 AM
Hi Senthilkumar,
It is one of the problems in SAPScript where you cannot draw lines or boxes dynamically.
However, you can use Smartforms to do this easily.
The other solution may be to draw the table to the maximum possible height of the main window. Other than this I think there is no such posibility in SAPScript.
Regards,
Wenceslaus.
2006 Mar 22 3:03 AM
Box command is used to draw a table with single column. If you have multiple columns, you need to use those many box commands.
For BOX command
/: BOX [XPOS] [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]
need to pass x position, y position, width, height.
In your case you can use variable sfor the same. After each record display update height variable with the height of each row. In this way you can display dynamic boxes/ tables.
2006 Mar 22 3:07 AM
Hi Ashish,
You can draw boxes only statically like.
BOX XPOS '3.4' CM WIDTH 0 TW HEIGHT '8.2' CM FRAME 10 TWBut you cannot pass values in BOX command like:
BOX XPOS <b>&xpos&</b> CM WIDTH 0 TW HEIGHT <b>&height&</b> CM FRAME 10 TW
2006 Mar 22 5:30 AM
<i>Hi,
Thank you for your reply.
Is it possible to define a variable in form and assign a value to it from program variable and then use that in form.
Please give me syntax of define statement.
Thank you,
Senthil</i>
2006 Mar 22 3:07 AM
HI senthil
you have to use the BOX command in the SAPSCRIPT using which you can draw the table in script.
in the starting of the MAIN WINDOW draw a horizontal line and then display your vairables
in end again draw a horizontal line to close the table.
the height of the vertical line will the number of records in the internal table.
the vertical line can be drwan uisng
BOX XPOS 10 YPOS 20 width 0 CH hieght <rowcount> CH.
regards
kishore
regards
kishore
2007 Feb 08 1:59 PM