cancel
Showing results for 
Search instead for 
Did you mean: 

table border in sapscript

Former Member
0 Kudos

hi friends..

i am working in sapscript. i have issue.

i am printing some records in main window. the issue is i have to create a border for the table.

if i use the BOX command to draw a line, its static one.

i have to create a line based on the records(ie) if 7 records means upto line come upto 7th record.

if 3 records means line come upto 3rd record...

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

HI,

Try this..

BOX FRAME 20 TW INTENSITY 20

give only this statement.this will draw a window for the whole window and as u r using this in main window it will be for the whole window irrespective of the height.

Hope this works.

Reward if helpful

Kamal

Former Member
0 Kudos

hi,

<b>&uline(70)& and & sy-vline& &itab-matnr& &sy-vline&

&uline(70)&

in change editor</b>

Regards

Divya

former_member196280
Active Contributor
0 Kudos

This is little bit tough this can only be done only if you have the driver program in your control, you can increment the dimensions in your print program basing on the number of line items getting passed to your form and finally pass these dimension variables to your form...

regards,

SaiRam

Former Member
0 Kudos

Hi,

can you try this

display a syuline before the main window items get displayed

after that main window details

and at the start of each line

put a sy-vline and at the end of each of line put another sy-vline

the last sy-vline should be printed at the last

ie if the window size is 70 characters

the sy-vline should be at teh 70 th character.

and att the last give

sy-uline(70)

i think this will solve your problem

reward points if helpful,

thanks & regards,

venkatesh.

Former Member
0 Kudos

Hi,

Here is the code which can help you get the dynamic box's from the script.

Here the element is TAB.

There is a loop for this element in the driver program.

Here the code works this way the YORIGIN is incremented by 0.6CM each time it is in the loop thus drawing tables dynamically.

/E TAB

/: POSITION XORIGIN '0.9' CM YORIGIN '+0.6' CM

/: SIZE WIDTH '3.0' CM HEIGHT '0.6' CM

/: BOX FRAME 10 TW.

/: POSITION XORIGIN '3.9' CM

/: SIZE WIDTH '7.3' CM HEIGHT '0.6' CM

/: BOX FRAME 10 TW.

/: POSITION XORIGIN '11.2' CM

/: SIZE WIDTH '2.8' CM HEIGHT '0.6' CM

/: BOX FRAME 10 TW.

/: POSITION XORIGIN '14' CM

/: SIZE WIDTH '2.6' CM HEIGHT '0.6' CM

/: BOX FRAME 10 TW.

/: POSITION XORIGIN '16.6' CM

/: SIZE WIDTH '3.2' CM HEIGHT '0.6' CM

/: BOX FRAME 10 TW

P4 &X_VBAP-KWMENG(C)&,,&X_VBAP- ARKTX&,,&V_TOTALa&,,&V_TOTALb&,,&V_TOTALc&

Hope this Solves your Problem in dynamic Table drawings.

Regards,

Sankar

Former Member
0 Kudos

HI,

I AM TRYING WITH THE SAME CODE. ITS NOT WORKING NOTING IS GETTING DISPLAYED IN THE ITEM TABLE.

WHAT MIGHT BE THE MISTAKE IN IT... PLS LET ME KNOW...

/E TAB

/: POSITION XORIGIN '0.9' CM YORIGIN '+0.6' CM

/: SIZE WIDTH '3.0' CM HEIGHT '0.6' CM

/: BOX FRAME 10 TW.

/: POSITION XORIGIN '3.9' CM

/: SIZE WIDTH '7.3' CM HEIGHT '0.6' CM

/: BOX FRAME 10 TW.

/: POSITION XORIGIN '11.2' CM

/: SIZE WIDTH '2.8' CM HEIGHT '0.6' CM

/: BOX FRAME 10 TW.

/: POSITION XORIGIN '14' CM

/: SIZE WIDTH '2.6' CM HEIGHT '0.6' CM

/: BOX FRAME 10 TW.

/: POSITION XORIGIN '16.6' CM

/: SIZE WIDTH '3.2' CM HEIGHT '0.6' CM

/: BOX FRAME 10 TW

P4 &X_VBAP-KWMENG(C)&,,&X_VBAP- ARKTX&,,&V_TOTALa&,,&V_TOTALb&,,&V_TOTALc&

I HOPE TO GET REPLY FROM YOU SOON

SHIVAKUMAR