on 12-03-2009 9:10 AM
hiii experts,
i have a requirement to create a table in script in the main window,but iam dividing two columnslike matnr and maktx, can i divide 5 columns how to do it.
my coding in the main window(textelement)
DEFINE &SAPSCRIPT-COUNTER_0& = -1
BOX YPOS &SAPSCRIPT-COUNTER_0(+)& LN WIDTH '2' CM HEIGHT '1' LN FRAME 10 TW
DEFINE 4.&SAPSCRIPT-COUNTER_0& = &SAPSCRIPT-COUNTER_0(-)&BOX YPOS &SAPSCRIPT-COUNTER_0(+)& LN POS '2'CM WIDTH '10' CM HEIGHT '1'LN FRAME 10 TW
&itab-matnr& &itab-maktx&
Hi,
Decrease the maktx width from 10 cm to 5cm and write another box for 2cm width. Similarly write another 2 nox statements with width 2 cm. Then you will get 5 cloumns. Please check the position of the column by trail and error method with changing the ypos value change
Thanks,
Suma.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi suma,
my problem was not solved,i placed 5 cm of maktx,other columns i placed 2 cm but it is not dividing columns clearly,
i send the code could u please solve the problem.
DEFINE &SAPSCRIPT-COUNTER_0& = -1
BOX YPOS &SAPSCRIPT-COUNTER_0(+)& LN WIDTH '2' CM HEIGHT '1' LN FRAME 10 TW
DEFINE 4.&SAPSCRIPT-COUNTER_0& = &SAPSCRIPT-COUNTER_0(-)&BOX YPOS &SAPSCRIPT-COUNTER_0(+)& LN POS '2'CM WIDTH '5' CM HEIGHT '1'LN FRAME 10 TW
BOX YPOS &SAPSCRIPT-COUNTER_0(+)& LN XPOS '2'CM WIDTH '2' CM HEIGHT '1'LN FRAME 10 TW
BOX YPOS &SAPSCRIPT-COUNTER_0(+)& LN XPOS '2'CM WIDTH '2' CM HEIGHT '1'LN FRAME 10 TW
&itab-matnr& &itab-maktx&
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.