cancel
Showing results for 
Search instead for 
Did you mean: 

Syntax error in Zcontext class

Former Member
0 Kudos

Hi,

I have enhanced Marketting Attribute Search view of BP_DATA component using tcode BSP_WD_CMPWB.

I have re-generated the get-I methods to get a Zcontext class but the Zclass is showing an error:

' Type LCL_VALUEHELP_FOR_ATTR_SET is unknown.'

I see that this is a local class in the parent class CL_BP_DATA_MARKETINGATTR5_CN00 and it is properly referred as well in the parent class. There are a couple of private attributes in CL_BP_DATA_MARKETINGATTR5_CN00 which are referring to this local class but I have not declared them in the Zclass but still the error is coming.

Please let me know how to solve this.

Regards,

Sangeeta.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member206299
Contributor
0 Kudos

Hi,

Can u Check whether GET_V_ATTRIBUTE_SET Method exist for the attribute ATTRIBUTE_SET .

Regards,

Sijo.

Former Member
0 Kudos

Hi Sijo,

There is a GET_V_ATTR_SET_DESCR method.There is no get_v_attribute_set method.

The syntax error is not going at all.

Regards,

Sangeeta.

former_member206299
Contributor
0 Kudos

Hi ,

The issue can be because theres no GET_V_ATTRIBUTE_SET for the Attribute ATTRIBUTE_SET. Try Redefining the

GET_V_ATTRIBUTE_SET.

Regards,

Sijo.

Former Member
0 Kudos

Hi Sangeeta,

Check for the method "IF_BSP_MODEL~INIT" System should have redefined this method to your Z class if you have added a new attribute to a Context node. If not then just click on redefine and system will take care of the code.

Try to find what errer message you are getting when you do the syntex check of your class. That message will also help.

Thanks,

Vikash.