on 08-11-2007 11:07 AM
Hi all,
I have a Smartform in which i have a code inside Main window -Table loop wherein I am fetching somedata into a internal table.this data i need to loop upon and print all but problem is this is not visible outside the code.
I am really in need.
Any help on this wud be greatly appreatiated .
thanks,
sachin soni
Check the below steps it may help you to solve your problem
SMART fORM
USING TABLE IN Smart Form
1) Tcode --> SmartForms
2) Form name --> Z_SF_TEST Create
3) Under Global settings
a) Form Interface
Table Tab
ITAB LIKE EKPO
b) GLOBAL Definitions
WA_NETPR LIKE EKPO-NETPR
In smart forms if we want to display quantity and currency fields. We can't directly display currency field and quantity fields
For that we have to create an extra variable in global definitions
Ex: netpr FIELD of EKPO
CREATE program lines and specify WA_NETWR = itab-netpr.
4) RT CLick on main Window
CREATE --> TABLE
Click Table painter
DEFAULT %LTYPE will be Created
a) If you want more like Header footer etc add by rt click on %LTYPE1
Table (Tab)
%LTYPE Radio(SELECT) 5 CM 5 CM 6 CM
CLICK on DATA (Tab)
INTERNAL TABLE ITAB LIKE ITAB
5)RT click on table control and create --> program lines
General attribute (Tab)
INPUT PARAMETER OUTPUT PARAMETER
itab WA_NETPR
Code Area
WA_NETWR = ITAB-NETPR.
6) RT CLcick on table ctl and create 3 text to display the fields
a) % text1 +button(insert field)
FIELD name &itab-ebeln&
Output options (tab)
Check New line LINETYPE %Ltype1
check new cell
b) % text2
& itab-ebelp&
output options
check new cell
c) % text2
& wa_netpr&
output options
check new cell
Report ac
Tables ekpo.
Data: itab1 like ekpo occurs 0 with header line.
select * into table itab1 from ekpo.
Call function module
Regards,
Sairam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
First of chek whether their is any data in internal table . Can you explain what do u mean by this : but problem is this is not visible outside the code. so that i can understand ur pblm .
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi neetesh,
thx for askin.it's quite diff to explain the exact senario but i'll still try.if u have seen the std. smartform form for PO which is available in IDES. Inside the main window i have a table which is quite diff from the usual table which we draw in a smartform having diff kind of line types.now i have to print taxes and duites too along with each item so i took a program code just above the folder for item texts printing and fethed taxes in it. when i try to print it using a text item it's not getting printed
but in debug mode in that code i can see that data is thr in the internal table.
i think you can only understand this if you have this form available in front of you
thanks
sachin
Hi...
See the Samrtforms Demo Programs to find how to use the table.
SF_EXAMPLE_02
SF_EXAMPLE_03
<b>Reward if Helpful</b>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.