cancel
Showing results for 
Search instead for 
Did you mean: 

Smart forms Error

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Bala,

I completely agree with Jayanthi Jayaraman.

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

Regards,

Dilip

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Bala,

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

Cheers

Vinod_Chandran
Active Contributor
0 Kudos

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

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

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

caufv type caufv