Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP Script Query

Former Member
0 Likes
579

Hi All,

There is an requirement to create an table in the form where there are around 5 columns.

This table displays the data from an internal table.

No. of records can vary.

I have two queries:

1)Is it possible to draw vertical line to separate the columns dynamically depending upon the records fetched.

2)After each line item(record) that is fetched, the other record should be separated by a horizonatal line.There is a column for description which can vary inlength.So is it possible to do something like a 'Wrapping the text in excel'.

Thanks And Regards,

Rupesh.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
561

THE box COMMAND WILL SOLVE UR PROBLEM.

box [xpos] [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]

the pdf in sappoint will clearly help you.

www.sappoint.com/abap/sscntrls.pdf

4 REPLIES 4
Read only

Former Member
0 Likes
561

HI rupesh,

1. )Is it possible to draw vertical line to separate the columns dynamically depending upon the records fetched

| = pipe

at the most u can use some symbol like PIPE

(But as u require, ie, like GRID

its not possible)

2. After each line item(record) that is fetched, the other record should be separated by a horizonatal line.There

For that u just have to use UNDERLINE

_____________________________________

3. There is a column for description which can vary inlength.So is it possible to do something like a 'Wrapping the text in excel'

Directly its not possible,

ie . for that particular cell, word wrapping takes place !

regards,

amit m.

Read only

Former Member
0 Likes
561

You can do by calculating the length of the line in the program dynamically and specifying it in the SAPScript as:

BOX XPOS &WIDTH& CM WIDTH 0 TW HEIGHT '8.2' CM FRAME 10 TW

Hope this works...

Read only

Former Member
0 Likes
561

there is not any thing to vary the column space...

but there is one way ...

u can calculate the length of variablre n put it into another variable and on the bases of this variable value u give can give the columns space...

Read only

Former Member
0 Likes
562

THE box COMMAND WILL SOLVE UR PROBLEM.

box [xpos] [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]

the pdf in sappoint will clearly help you.

www.sappoint.com/abap/sscntrls.pdf