‎2007 Aug 30 2:15 PM
Hi Experts
How can we draw table in smart form in below form
-
NAME | AMOUNT |
| dr cr |
-
Dashed lines are nothing but stringt linge.
Please help me.
‎2007 Aug 30 4:32 PM
Hi,
Go thru these threads ,
Detailed notes for smartfroms
http://www.erpgenie.com/abap/smartforms_detail.htm
<b>Check the following materials,</b>
http://www.sap-basis-abap.com/sapsf001.htm
http://www.sap-press.com/downloads/h955_preview.pdf
http://www.ossincorp.com/Black_Box/Black_Box_2.htm
http://www.sap-img.com/smartforms/sap-smart-forms.htm
http://www.sap-img.com/smartforms/smartform-tutorial.htm
http://www.sapgenie.com/abap/smartforms.htm
http://www.sap-img.com/smartforms/smart-006.htm
http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm
http://www.sapbrain.com/ARTICLES/TECHNICAL/SMARTFORMS/smartforms.html
step by step guide
1. Use table to display data in tabular format.
2. In smartform function module you have to pass the internal table.
3. Go to se11- Select data type - select structure and give the fields and activate it.
Regards,
Kumar.
‎2007 Aug 30 4:42 PM
Hi Sanjana,
To display data in an internal table we have two options.
1. Loop at TABLE.
2. Loop at TEMPLATE.
As i understand your requirment I will suggest you to take the second option. Create a template by using the flexibility of template to design as we need.
Loop through Template.
I hope this will solve your issue.
If you have any queries, Please let me know.
Regards,
Lijo Joseph
‎2007 Aug 31 5:56 AM
Hi sanjana.
I feel u would like to know how to draw table in smartform.
Step1 : put cursor on main window or any other window.
right click and choose create-> table.
in table, it will give header, main and footer .
Step2 : Go to header and maintain ur header text for each field.
Before go to this,
first select how many fields u need to display.
place cursor on header, right click create-> table line.
on the right side u can see pictorial view of table line.
just above this table painter, choose change mode.
one pencil type idon available on table painter menu.
choose this and splitt the line type into many based on ur requirement.
after u splitt this, u can see cells of the line type on the left path.
for each cell, create a text by placing cursor on it.
in the cell, u want to maintain text, directly right.
Step 3: populate the internal table and pass this to table on smartform.
use loop in the mainwindow.
repeat the same process as i said earlier.
Note : here in text of each cell, u need to maintain field value to be displayed.
For ex u want to pass work area values, then
&wa_table-field&
Try in this pattern.
if u need any help u can get back to me.
Reward point if it helpful.
Thanks
Swapna