on 10-27-2011 12:11 PM
Hi,
my requirement is i have to desing a script
it contains two tables. which is of variable size.
that means in runtime they may get one entry or multiple entries.
can any one plz tell me how to desing tables in sap scripts with variable size.
Thanks & Regards
Nageshwar
Hi,
If I am not wrong, you cannot really design tables in SAP Scripts. Instead you can use vline uline or box commads(?) after each line is displayed to draw the table.
regds,
Madan..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i am planning to use box command only.
can any one provide some code or some idea to design table using box command .the table size should be dynamic.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi eswer ,
yes you can do it with ulines and vlines.first write your script under an element.call that element from your driver program.
for eg.if you want to display a table with two columns.write the code as below
/E 100
&ULINE&
&vline& &field1& &vline& &field2& &vline&
&ULINE&
then call this element from your driver program.it prints the data with rows and column
thanks and regards
Naresh bammidi
Hi,
You can draw box in your SAPscript form by applying this command.
Syntax
/: BOX XPOS YPOS WIDTH HEIGHT FRAME INTENSITY (Each position and size should be inside [ ] )
Example
We will draw box begins x origin 1 cm, y origin 2 cm, width 3 cm, height 4 cm, frame 10 tw and shade 10 %
/: BOX XPOS 1 CM YPOS 2 CM WIDTH 3 CM HEIGHT 4 CM FRAME 10 TW INTENSITY 10Output
We can draw the horizontal line by applying this command.
/: BOX XPOS 1 CM YPOS 1 CM WIDTH 10 CM HEIGHT 0 CM FRAME 10 TWOutput
We can draw the vertical line by applying this command.
/: BOX XPOS 1 CM YPOS 1 CM WIDTH 0 CM HEIGHT 5 CM FRAME 10 TWOutput
Thanks,
Renuka
Generally speaking, you have a FIRST page, that points to NEXT or PAGE2 or something...this is declared in the SAPScript page....
One usually has a MAIN window of the same width, but different placement on page NEXT for example....
My MAIN might start at 10CM from top on page FIRST, but on NEXT, the data is a continuation, so I might start MAIN on page 2 at 2CM from the top.... Set your MAIN using page windows....SAPScript will expect same width but will allow different height, etc.
well you could however use box-commands.
the box-command can work with variables as well instead of hardcoded values.
These values can be determined and set at runtime in driver program or external perform.
But still i wouldnt advise to host tables in sap-script. This is gonna be a endless task.
regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.