cancel
Showing results for 
Search instead for 
Did you mean: 

to create a table in script error

Former Member
0 Kudos

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&

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Former Member
0 Kudos

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&

Answers (0)