Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

"TYPE zcl_epm_products_mpc_base" is unknown

Former Member
0 Kudos

Hello,

I´m trying this guide: "End-to-End How-to Guide: Building SAPUI5 Applications on SAP NetWeaver AS ABAP 7.31 Consuming Gatew...

On page 19 when typing the code. The line

FIELD-SYMBOLS <lf_entityset> TYPE zcl_epm_products_mpc_base=>ts_epmproduct.

produces the error message "TYPE ... is unknown".

Any suggestions? I´m a newbie.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Kai,

Do you implemented the method by using redfinition button rather than directly coding.

Regards,

Kannan

11 REPLIES 11

Former Member
0 Kudos

Hi Kai,

Can you try to change the statement as

FIELD-SYMBOLS <lf_entityset> TYPE zcl_z_epm_products_mpc_base=>ts_epmproduct

Regards,

Kannan

0 Kudos

Hi Kannan,

doesn´t work. Now The type "zcl_z_epm_products_mpc_base=>ts_epmproduct" is unknown...


If I´d know, what this type stands for or represents, then maybe i could find out what it´s meant to be called...

Former Member
0 Kudos

Hi Kai,

Do you implemented the method by using redfinition button rather than directly coding.

Regards,

Kannan

0 Kudos

Via Redefinition .

0 Kudos

Hi Kai,

Can you check the status of the class in the SE24.and check for the attribute.

Regards,

Kannan

0 Kudos

I load the classbuilder (SE24), Select the method EPMPRODUCT_GET_ENTITYSET, Then I see the same code as I just wrote (The code from the tutorial).

What do you mean by "Check the status of the class/attribute?"

Thx for your help so far!

0 Kudos

Hi Kai,

In SE24  you put the class as zcl_epm_products_mpc_base and go to attributes and check whether class attribute ts_epmproduct exists.

Regards,

Kannan

0 Kudos

Hi Kai,

Can you share your SAP release level.Are you on 7.4?

Regards,

Kannan

0 Kudos

Hi Kai,

Finally i found the solution.It will work for you.

use ZCL_Z_EPM_PRODUCTS_MPC instead of  zcl_epm_products_mpc_base class.

Hope it answers your query.

Regards,

Kannan

0 Kudos

Thank you very much! It worked!

0 Kudos

One that I'm working on didn't have the attribute, ts_epmproduct for class ZCL_Z_EPM_PRODUCTS_MPC.

So I'm using following what's recommended and it activates but doesn't return the result but error page.

<lf_entityset> type ZCL_Z_EPM_PRODUCTS_MPC=>ts_bapiepmproductheade

Any ideas?

http://<server>.:8000/sap/opu/odata/sap/Z_EPM_PRODUCTS_SRV/EpmProducts/?$format=json

Oops! This link appears to be broken.