cancel
Showing results for 
Search instead for 
Did you mean: 

Compilation Error in SmartForm

Former Member
0 Kudos

Dear All,

I have a statement in a smartform that throws a syntax error:

Statement:

SELECT SINGLE INCO1 INCO2 FROM LIKP

INTO (W_INCO1, W_INCO2)

WHERE VBELN = IS_DLV_DELNOTE-HD_GEN-DELIV_NUMB.

I have defined W_INCO1 & W_INCO2 in Global Definitions as follows:

W_INCO1 LIKE LIKP-INCO1

W_INCO2 LIKE LIKP-INCO2

The error is :

The list "(W_INCO1" after "INTO" is not of the the form (f1, ...,fn), or contains an undefined field. the form (f1, ...,fn),

Regards

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

If you are wrritting your code in Program lines node so you need to define w_icon1 & w_icon2 in the Output Parameters tab. Just above the editor.

So put the these both parameters in OUTPUT PARAMETER tab..

Your problem solved now..

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks guys. Problem solved

Former Member
0 Kudos

Hi,

Reason for the issue,

Normally if the variable W_INCO1 is not declared and if we use the same in the select single, then the same kind of error happens.

Hope, you have declared the variable somewhere in the global parameters. You are trying to select the same inside the program line. In the program node, you can see an input and output parameters. If you want to use the global parameter in the program node, then you should define the same in either one of the box and it is mandatory.

Hope, you are missing the same and the program throwing the error. Please correct and check.

Regards,

Selva k

Former Member
0 Kudos

Hi..

Please add W_INCO1, W_INCO2 in the OUTPUT PARAMETERS of the Program Line/Code, the error will be resolved. (If the error persists then add it into INPUT parameters as well).

Also check whether IS_DLV_DELNOTE-HD_GEN-DELIV_NUMB is there in INPUT PARAMETERS or not.

Regards,

Karthik