04-13-2015 3:45 PM
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.
04-13-2015 4:21 PM
Hi Kai,
Do you implemented the method by using redfinition button rather than directly coding.
Regards,
Kannan
04-13-2015 4:08 PM
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
04-13-2015 4:15 PM
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...
04-13-2015 4:21 PM
Hi Kai,
Do you implemented the method by using redfinition button rather than directly coding.
Regards,
Kannan
04-13-2015 4:23 PM
04-13-2015 4:32 PM
Hi Kai,
Can you check the status of the class in the SE24.and check for the attribute.
Regards,
Kannan
04-13-2015 4:58 PM
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!
04-13-2015 5:16 PM
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
04-13-2015 5:24 PM
Hi Kai,
Can you share your SAP release level.Are you on 7.4?
Regards,
Kannan
04-13-2015 5:28 PM
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
04-14-2015 8:17 AM
09-03-2015 4:08 PM
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