on 01-22-2016 12:26 PM
Hello all,
I have problem with GET_ENTITY Method. When I wrote code on ABAP for my method GET_ENTITYSET there is no problem I can get data for my entityset but for single entity I failed.
I wrote this code on GET_ENTITY method :
DATA : lt_proj TYPE STANDARD TABLE OF proj,
ls_proj TYPE proj,
ls_key_tab TYPE /iwbep/s_mgw_name_value_pair,
lv_pspid TYPE proj-pspid.
READ TABLE it_key_tab WITH KEY name = 'PspID' INTO ls_key_tab.
lv_pspid = ls_key_tab-value.
SELECT SINGLE * FROM proj INTO ls_proj WHERE pspid = lv_pspid.
MOVE-CORRESPONDING ls_proj TO er_entity.
But I have an error like this:
<errordetail>
<message>Resource not found for segment 'PROJE'</message>
<propertyref/>
<severity>error</severity>
<target/>
</errordetail>
Could you please help me for get data for GET_ENTITY method.
Thank you,
Hello Ogulcan,
You get this error when you are trying to access a property which is not defined in your GW Model.
Can you please share the GW Model details and the URL here ?
Regards,
Ashwin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Ogulcan,
Do you still have the same problem like "PROJESet resouce not found"?
if yes, you need to reload the metadata as follows:
1) Run transaction /IWFND/MAINT_SERVICE
2) Choose service Z_FIILI_GIRTEYIT_SRV/
3) Click button Reload the metadata and refresh catalog
if not, as you mentioned you have already set an external breakpoint there in the get_proje_entity method, i recommend you to go to debug mode to assign initial value to the output parameter er_entity. this should work if the metadata works.
regards,
Yueqiang
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.