cancel
Showing results for 
Search instead for 
Did you mean: 

smartform internal table data is not comming

Former Member
0 Kudos

hi gurus,

i have an internal table data which i have to display on smartform .In debugging i have seen that the internal table is having data and in 'data' tab of table i have given internal table also.

but data is not displayed on smartform.

can any body give sugession for this.

thanks in advance,

padmaja.

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

thanks to all for spending time to solve my problem.

I myself rectified the error.

thanks once again.

padmaja

Former Member
0 Kudos

read that internal table into workarea then u will able to gat data

Former Member
0 Kudos

hi,

generally we loop tabel values to workarea .so i declared for both work area and table.

but iam getting the sytax error.

error is :globlal definitions:i_output is a table without header line and there frore no component called menge.

what to do now.

or am i doing wrong.

thanks,

padmaja.

Former Member
0 Kudos

Hi,

The above explanation was an illustration to make you understand the concept & hence shouldnt be considered as a general solution.

Anyways, the error you got is self explanatory try to fix it.

Regards,

Rishikesh

Former Member
0 Kudos

Hi,

Set breakpoint in smartform through program lines.This breakpoint should be just before displaying data from internal table, say at the start of loop in main window.

Now, check whether u are getting data here, if yes then blank display must be related with formatting issues.If u are displaying quantity fields take care u convert them to character before display, else those wont be displayed.

Regards

Rishikesh

Former Member
0 Kudos

hi rishikesh,

yes my internal table one field is quantity field .can u please tell me how do the conversion steps and where to do.I am using smartform only no print program.

thanks in advance,

padmaja.

Former Member
0 Kudos

hi,

In order to display quantity u can either convert the values to character fields or

follow these steps.

Create a global variable in the global data section of sf.

then in the Currency/Quantity section of the same tab

assign a reference field (this reference field will be from ur interface).

Ex: g_quantity type menge (the global data part)

g_quantity itab-(the quantity field which u want to display) .

Finally within your loop just before displaying this quantity field, assign the value to the declared variable.

Loop at itab into wa_itab.

g_quantity = wa_itab--(the quantity field which u want to display).

Endloop.

Regards,

Rishikesh

Former Member
0 Kudos

hi,

in global data i declarared v_menge type menge.now in curr/qty tab what i have to do.

can please specify.

thanks,

padmaja.

Former Member
0 Kudos

Hi,

In the curr/quant tab give the same variable name with the reference quantity field from the form interface along with the data type.

Fieldname -


>v_menge

Reference field ---> itab-F1 (the qnty field u need to display)

Datatype ---> QUAN

Regards,

Rishikesh

Former Member
0 Kudos

Hi,

Declare the internal table in Global Definitions.

The internal table which is passing in the driver program should be the same in the form interface of the smartform.

Regards,

jaya

Former Member
0 Kudos

where you filling the internal table is it print porgram or smartform?

Former Member
0 Kudos

hi,

I fill the data in smartform only.

thanks

padmaja.

Former Member
0 Kudos

hi,

i declared the internal table body and workarea in global delcarations.

but still i am not getting.

thanks ,

padmaja

Former Member
0 Kudos

how are u displaying ur data