Skip to Content
avatar image
Former Member

troubles with reference fields in smartforms

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?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Oct 10, 2007 at 03:22 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.

  • avatar image
    Former Member
    Oct 10, 2007 at 02:42 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 10, 2007 at 02:48 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 10, 2007 at 03:50 PM

    Thanks for answering

    Add comment
    10|10000 characters needed characters exceeded