cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to display results from table using smartforms

Former Member
0 Kudos

Hi Experts ,

I am new to area of smart forms .

I wish to display the results of a select query in a page .

here what i have done :

Part : Global deifination

1) declared under the tab types which contains list of fields i wish to fetch .

2) Under tab global data , i declared an internal table and structure of above type .

3) Then under initialization tab , declared it_tab ( internal table ) as the output parameters .

4 ) In test editor i wrote the select query .

Node : MAIN window :

i created loop . Here i loop internal table it_tab into ls_tab .

Then created the text element for the loop statement .

Saved and activated the smart forms .

but i get the following output :

&fs_tab-vbeln& &fs_tab-meins& &fs_tab-matkl& &fs_tab-matnr& .

&fs_tab-vbeln& &fs_tab-meins& &fs_tab-matkl& &fs_tab-matnr& .

&fs_tab-vbeln& &fs_tab-meins& &fs_tab-matkl& &fs_tab-matnr& .

&fs_tab-vbeln& &fs_tab-meins& &fs_tab-matkl& &fs_tab-matnr& .

&fs_tab-vbeln& &fs_tab-meins& &fs_tab-matkl& &fs_tab-matnr& .

&fs_tab-vbeln& &fs_tab-meins& &fs_tab-matkl& &fs_tab-matnr& .

&fs_tab-vbeln& &fs_tab-meins& &fs_tab-matkl& &fs_tab-matnr& .

Please advice why the value is not shown and instead text elements are printed .

Warm Regards ,

Abhishek

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Variables which act as place holders are added with the 'Insert Field' Button. IF you directly write the varibale with ampersand sign, it would print the same as it is.

Try placing the place holders with the insert variable button.

Regards,

Runal

Shwetha58shetty
Explorer
0 Kudos

Hi,

Instead of typing fields manually with in ampersand , drag and drop them from field symbols.

Regards,

Shwetha

Answers (2)

Answers (2)

abhishek_gupta2
Participant
0 Kudos

Hello All ,

Thanks for the replies , it solved my problem .

Regards,

Abhishek

Former Member
0 Kudos

Hi..

This kind of an issue arises when you directly type the variable name with '&' in the general attributes screen of text elements.

A variable should never be specified this way, instead either of the following should be followed:

1. Use the text editor symbol above the check button in the text element's general attributes. Then on the menu, GOTO-> Change editor and there you type the variable with '&'.

OR

2. Use the field list button just left of the Form Painter button, using which you can just drag the variable into the text elements.