cancel
Showing results for 
Search instead for 
Did you mean: 

troubles with reference fields in smartforms

Former Member
0 Kudos

Hi experts,

I made a structure in se11, and it has some fields like kwmeng or kawrt which requires a reference in the data dicitionary. When I test the program it gives me the following message:Reference field I_MYTABLE-KAWRT unknown in form.

Could anybody help me?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI

In global defitions, goto Currency/Quantity Fields Tab and give the fieldname, i_mytable-kawrt and give reference to any amount type field.

Regards

Navneet

Former Member
0 Kudos

I've done the following:

Field name: i_mytable-kwert

Reference field: komk-waerk (this is the reference field in my structure)

Data type: CURR

But still doesn't working:

Field "KOMK-WAERK" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement.

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks for answering

Former Member
0 Kudos

Hi,

do this.

->in the glogal definition tab under parameters

->declare a variable of type p decimals 2

->and then add this logic in program lines before that text element where you are displaying

give input parameter as MYTABLE-KAWRT and output parameter as gvariable

G_variable = I_MYTABLE-KAWRT .

and then instead of this varialble I MYTABLE-KAWRT write this &gvariable& in your text element.

Thanks,

Nethaji.

Former Member
0 Kudos

Hi,

where did you declare your table I_MYTABLE ?? You must considere that SmartForms is checking the objects in your tree from top to botton; therefore, if you use the table in a higher node that the data declaration, you get that message.