‎2007 May 08 2:42 PM
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
‎2007 May 08 3:36 PM
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
‎2007 May 08 2:46 PM
‎2007 May 08 2:47 PM
loop at itab.
write : / itab-field1 , '|' , itab-field2 , '|'.
endloop.
‎2007 May 08 2:50 PM
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
‎2007 May 08 3:36 PM
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
‎2007 May 08 3:51 PM
hi megan,
try with TABLE instead of TEMPLATE.
plz reward points if helpful.
rgrds,
Avijit
‎2007 May 08 3:50 PM