2005 Aug 02 5:24 PM
Hi,
In SAMRTFORMS there is a direct facility to put data in table format.
How do I do create table in SAPSCript ?
Tushar
2005 Aug 02 7:29 PM
Hi Tushar,
The TABLE refered is just element name. You can not not pass any table to Script. The loop is inside your ABAP Driver program and for each row of internal table, call write_form to write data in sap script.
regards,
Gagan
2005 Aug 02 5:26 PM
In Sapscript, you have to define TABS in paragraph format and use that while writing variables.
2005 Aug 02 5:31 PM
Gagan is correct, in your main page you define an element.
<b>/E</b> TABLE
<b>PF</b> &itab-fielda&,,&itab-fieldb&,,&itab-fieldc&
In your paragraph format "PF", make tabs.
In your driver program, do a loop at your table and write out each line.
LOOP at ITAB.
CALL FUNCTION 'WRITE_FORM'
exporting
element 'TABLE'.
ENDLOOP.
Regards,
Rich Heilman
2005 Aug 02 7:12 PM
Thanks for prompt reply.
I got this point but how do I get lines inside the table ?
Tushar.
2005 Aug 02 7:21 PM
2005 Aug 03 7:50 AM
hi,
write &uline(80)& in the SAP SCript after the following lines.
/E TABLE
PF &itab-fielda&,,&itab-fieldb&,,&itab-fieldc&
2005 Aug 02 7:29 PM
Hi Tushar,
The TABLE refered is just element name. You can not not pass any table to Script. The loop is inside your ABAP Driver program and for each row of internal table, call write_form to write data in sap script.
regards,
Gagan
2005 Aug 02 7:51 PM