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

table with blank rows

Former Member
0 Likes
743

I need to display my table such that

**************************************************************

productid ! product text ! productprice !

productid ! product text ! productprice !

! ! !

! ! !

**************************************************************

So the table needs to be displayed this way

Even if no rows are returned it needs to display the left and right borders

I have seen forms been displayed like this before specifically the order confirmation form so I know it can be done. Please advice

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
718

Sorry guys I didnt provide enough info

This needs to be done using smart forms

I am using a template with cell 1 to 1 height 10 lns

and then generating a loop under it to call the values

6 REPLIES 6
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
718

ARe you trying to do this in a sapscript, smartform, or classical list display?

Regards,

Rich Heilman

Read only

Former Member
0 Likes
718
loop at itab.
  write : / itab-field1 , '|' , itab-field2 , '|'.
endloop.
Read only

Former Member
0 Likes
718

Hi

write like this:

get the data into ITAB from table. even if no data is there in table the pattern will not change.

write at /1(60) sy-uline.

write: /1 sy-vline, 2(10) 'ProductID',

12 sy-vline, 13(30) 'Product Text',

43 sy-vline, 44(16) 'Product Price'

60 sy-vline.

write at /1(60) sy-uline.

loop at itab.

write: /1 sy-vline, 2(10) itab-prodid,

12 sy-vline, 13(30) itab-desc,

43 sy-vline, 44(16) itab-price,

60 sy-vline.

endloop.

write at /1(60) sy-uline.

Reward points if useful

Regards

Anji

Read only

Former Member
0 Likes
719

Sorry guys I didnt provide enough info

This needs to be done using smart forms

I am using a template with cell 1 to 1 height 10 lns

and then generating a loop under it to call the values

Read only

0 Likes
718

hi megan,

try with TABLE instead of TEMPLATE.

plz reward points if helpful.

rgrds,

Avijit

Read only

Former Member
0 Likes
718

answered