Skip to Content
author's profile photo
Former Member

Smart forms Error

Hi All,

I am working on a production order. I am having a structure defined in global data WA_CAUFV like CAUFV.

I am populating the work area using a loop from the internal table T_CAUFV.

I have declared the fields in a text node as below for output.

WA_CAUFV-plnbez WA_CAUFV-gamng

WA_CAUFV-igmng

i am executing the pring program. If i am not having the WA_CAUFV-gamng in the text node i am getting the output.

When i am haing the WA_CAUFV-gamng field I am getting an error that

<b>Reference field WA_CAUFV-GAMNG unknown in the form</b>

kindly let me know what is the mistake i have made. I tried with debuggin but i am not able to identify the solution. But the work area has the value for the field WA_CAUFV-gamng in the form.

regards,

Bala

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • Oct 05, 2005 at 11:58 AM

    Hi,

    Did you declared the workarea as below in global definition-> global data

    caufv type caufv

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 05, 2005 at 12:09 PM

    Hi Bala,

    This is because the system cannot find the reference field for GAMNG. If you check CAUFV, it is MARA-MEINS.

    Try giving this as the reference field in the Global definitions-> Currency/Quant. Fields for WA_CAUFV-gamng.

    Cheers

    Vinod

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Oct 05, 2005 at 12:13 PM

    Hi Bala,

    I think you need to apply OSS note 542542 in your system.

    Cheers

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Oct 05, 2005 at 12:35 PM

    Hi Bala,

    I completely agree with Jayanthi Jayaraman.

    Kindly check the declaration of teh variable. Only this thing is missing.

    Regards,

    Dilip

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      This is what u have to do.

      1. in the global definitions, under the Currency/Quan fields define WA_CAUFV-GAMNG under field name, CAUFV-GMEIN, under reference field and QUAN under data type.

      2. In Global Data, define CAUFV type CAUFV

      Now you can use WA_CAUFV-GAMNG without getting any error.

      Any variable of data type QUAN, needs to have a reference field.

      Hope this helps

      Maninder