cancel
Showing results for 
Search instead for 
Did you mean: 

Smartform Table; Internal table to work area

Former Member
0 Kudos

Hi,

I have created smartform with one table,in that internal table values are not moving into workarea,can anyone solve my issue.

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi,

I got the output,thanks for all.

Former Member
0 Kudos

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.

Former Member
0 Kudos

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!

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

Doing smartform itself.

Former Member
0 Kudos

hi

Please check the declaration of WA .

while excuting you have to give data ton inertnal table ...

or Put a break-point in code and check the internal table....

Former Member
0 Kudos

i have set break point in code,the internal table contains data,but the data is not moving into workarea,

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

Check u r internal table having data or not.

Former Member
0 Kudos

Hi,

Inernal table contains data,but it's not moving into workarea..