on 07-03-2009 12:38 PM
Hi,
I have created smartform with one table,in that internal table values are not moving into workarea,can anyone solve my issue.
Hi Bose,
If you are populating internal table values in progarm and passing this internal table to smartforms
here is the syntax and declaration to follow
data : itab_final type standard table of type_final (some type) with header line .
Pass this under tables in your Z program,
CALL FUNCTION 'smartform name'
EXPORTING
archive_index = toa_dara
archive_parameters = arc_params
vbdkl = vbdkl
vbdpl = vbdpl
makt = makt
qals = qals
vbco3 = vbco3
TABLES
g_final = g_final
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.
In Smartforms,
Declare this internal table in form interface under tables as,
G_FINAL TYPE Z_TT_FINAL_COA(table type)
And work area in global data as,
WA_G_FINAL TYPE ZFINAL_COA (structure)
Now it can be used used in table control under data column as
G_FINAL INTO WA_G_FINAL
Regards,
Sagar.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
are you using sort criteria? because when you are using them and you are programming in a sort-break, the fields in your wa AFTER the sort-break fields are NOT filled.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
1.Is your Internal table declare as header line or not.
2. IIf Internal table is created as with header line then in smartform create table box and write in Data tab->Internal table <ITAB> into <ITAB> or <WA>(If not created header line)
3.Drag and Drop the values.
Hope it will help you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
check
Properly declare the Internal table and wa.(Form interface)
In pgm check the internal table fetch the data!
R u calling the smartform in your pgm or doing in smartform itself?
How You use the table ?
In command or in table>data tab>check box internal table.
Edited by: dharma raj on Jul 3, 2009 5:16 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
within the loop only wa having the data....
When we put break point the
with in the loop all the data filled with the help of wa.so we cant see the data in wa once the loop is completed.
This is the link for step by step smartform for invoice
https://wiki.sdn.sap.com/wiki/display/Snippets/Printing+Invoices
Edited by: dharma raj on Jul 3, 2009 5:39 PM
Hi,
Check u r internal table having data or not.
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 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.