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

How to display data in tabular format in SAP SCRIPT

Former Member
0 Likes
1,222

Can any one please help in this situation .

I have to print a material records in tabiular format in following format.

The table will be having 10 rows and 2 columns.

It will be somewhat like this.

-


Material number

-


description

-


BATCH

-


FOR EACH RECORD IN INTERNAL TABLE I HAVE TO PRINT THIS TABLE

AND IT SHOULD BE IN SUCH WAY THAT only 2 Tables should be printed on

EACH PAGE.

Can any one help in some way.

Please give detail solution.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
779

Hi Satynarayan,

Use BOX command to first format the table and process element for it. Take this element in the loop. And once the two tables got printed take trigger new-page.

Reward if useful!

Can any one please help in this situation .

I have to print a material records in tabiular format in following format.

The table will be having 10 rows and 2 columns.

It will be somewhat like this.

-


Material number

-


description

-


BATCH

-


FOR EACH RECORD IN INTERNAL TABLE I HAVE TO PRINT THIS TABLE

AND IT SHOULD BE IN SUCH WAY THAT only 2 Tables should be printed on

EACH PAGE.

Can any one help in some way.

Please give detail solution.

3 REPLIES 3
Read only

Former Member
0 Likes
779

Hi Satyanarayan,

Use the BOX command but you will have to be very sure.

Its a lenghty work.

Regards,

Nikhil Moghe

Read only

Former Member
0 Likes
780

Hi Satynarayan,

Use BOX command to first format the table and process element for it. Take this element in the loop. And once the two tables got printed take trigger new-page.

Reward if useful!

Read only

Former Member
0 Likes
779

Hi,

define a text element counter and increase its value in every loop pass. check if this counter value is even, insert a page-break statement (new-page).

Or you can pass the sy-tabix value to the script using perform statement and check this value -if it is even insert a page-break statement(new-page).

You can use BOX command to diplay the table frame for the data.

Hope this will work.

Regards,

Richa