Quantcast
Viewing all 6105 articles
Browse latest View live

Unable to view metadata in Quality

Hi,

 

we have moved the code to Quality environment and in that we are unable to view the metadata.. could some one tell me what could be the reason?

 

-Madhav


Re: Unable to view metadata in Quality

What error do you get ? did you configure the system alias correctly ?

Re: Unable to view metadata in Quality

hi, i understand where the problem is..

 

my basis consultant has changed the service to OAUTH, that is the reason i am unable to view the metadata..

 

any idea how to work with OAUTH service?

 

-Madhav

Re: SAP Netweaver Gateway - oData - “Maintain Service Groups” not found

Re: SAP Netweaver Gateway - oData - “Maintain Service Groups” not found

You do not have any Service Packs. Please upgrade IW_BEP to latest SP.

Gateway Extension after Upgrade

Hello,

 

I`m working with SAP Gateway extension and I created a extension project that extends a standard OData service for Leave Request.

 

my question in that topic is about what should be done after we implement an upgrade or note that modifies the standard OData that we have extended such as a new property has been added or another entity or import function. Will these changes appear in my extended project or do I have to recreate my extension project again?

 

Looking forward to hearing from you.

 

Kind Regards

Marcos Andrade

Re: Gateway Extension after Upgrade

It will come automatically to your service. You have to clear the metadata cache though.

 

There can be some problems sometimes. Think about an artifact you added, and sap adds with same name. Then you model will become inconsistent. Those are exceptions of course.

Re: Soft state implementation considerations


Re: Soft state implementation considerations

Yes I saw that note already. it means though the main purpose of implementing that note is performance optimization, it does implement locking mechanism. but as recommended, 2 minute timeout value seems to be very high.

 

Also check note 2141567 - SAP FIORI - lock not released when leaving the application

 

Based on all this information, I guess with careful implementation of soft state feature, pessimistic locking can be implemented.

 

-Chandra

Re: Soft state implementation considerations

Softstate itself will not do the locking though. Within the DPC class, we need to call the ENQUE modules. Since we have a session now (say for 2 minutes), locks will be held for two minutes now. Moment two minute gets over, session is dropped, so the lock is released.

But Softstate framework creates another session to execute further calls, but this session will not have the lock.

Re: Gateway Extension after Upgrade

Good to know thanksImage may be NSFW.
Clik here to view.

 

but how am I supposed to clear the metadata cache??

Re: Gateway Extension after Upgrade

On Hub system  /IWFND/CACHE_CLEANUP

 

On Backend /IWBEP/CACHE_CLEANUP

Re: Gateway Extension after Upgrade

Thanks I will try that one after the upgrade.

Re: SEGW error : Generation of runtime objects for project  failed

I could solve this error..

 

I saw table space in DB02 transaction

 

It was completely occupied.

 

So I have free the table space with the help of Basis Consultant.

Resource not found for the segment

Hey all I create a service which map to a RFC. which is not work after we create another project at SEGW which map to another system alias.

My service now cannot load the metadata correctly now and when i call an entity set it says "Resource not found for the segment".

The system alias of service is the backend system alias and i checked the default check-box. I cleaned cache ten times. But still it doesnt work.

 

Any help would be appreciated.

 

 

Image may be NSFW.
Clik here to view.
Untitled.jpg


Re: Resource not found for the segment

$Batch with Odata

Hi Experts,

 

When I am using batch am getting the success resposnse(202) for all oprations( read , post , put)but iam not getting response body as well as no entries are created  in table level by Post method.

 

i have followed below steps.

 

1) Redifined Changeset_begin , changeset_end methods.

Image may be NSFW.
Clik here to view.
1.jpg
Image may be NSFW.
Clik here to view.
2.jpg
Image may be NSFW.
Clik here to view.
3.jpg

Requst Header :

Request Header:

Content-Type    multipart/mixed;boundary=batch

X-CSRF-Token   n5eBImWR4NnoK7aOIP1hKA==

 

Request body:

--batch
Content-Type: multipart/mixed;boundary=changeset


--changeset
Content-Type: application/http
Content-Transfer-Encoding: binary


POST headerSet HTTP/1.1
Content-Type: application/atom+xml
Content-Length:
1400



<?xml version=
"1.0" encoding="utf-8"?>
<entry xml:base=
"http://ITFS1.hq.company.com:8000/sap/opu/odata/sap/ZTEST_DEEP_INSERT1_SRV/" xmlns="http://www.w3.org/2005/Atom" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices">
<id>http://ITFS1.hq.company.com:8000/sap/opu/odata/sap/ZTEST_DEEP_INSERT1_SRV/headerSet(
'23')</id>
<title type=
"text">headerSet('23')</title>
<updated>2015-05-25T10:05:47Z</updated>
<category term=
"ZTEST_DEEP_INSERT1_SRV.header" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"/>
<link href=
"headerSet('23')" rel="self" title="header"/>
<link href=
"headerSet('23')/itemSet" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/itemSet" type="application/atom+xml;type=feed" title="itemSet"/>
<content type=
"application/xml">
<m:properties>
<d:Id>987</d:Id>
<d:Name>BATCH</d:Name>
</m:properties>
</content>
</entry>
--changeset--
--batch--

 

URL : /sap/opu/odata/sap/ZTEST_DEEP_INSERT1_SRV/$batch

Image may be NSFW.
Clik here to view.
4.jpg

click on enter :

Image may be NSFW.
Clik here to view.
5.jpg
Image may be NSFW.
Clik here to view.
6.jpg

no entry created with the id 987.

 

Break-points are also not trigerred in Changeset_begin , changeset_end methods.

 

Please help me to to solve the issue.

Thanks in Advance.

Re: Disable Conversion Exits in Gateway

hi Krishna,

 

i want to disable the conversion function in structure BAPI_EPM_BP_HEADER

for field BP_ID.

 

I followed the steps mentioned above like this

method DEFINE.

   DATA:

         lo_entity_type    type ref to /iwbep/if_mgw_odata_entity_typ,

         lo_property       type ref to /iwbep/if_mgw_odata_property,                  "#EC NEEDED

         lo_entity_set     type ref to /iwbep/if_mgw_odata_entity_set.                "#EC NEEDED

 

   super->define( ).

 

   lo_entity_type = model->GET_ENTITY_TYPE( IV_ENTITY_NAME = 'BusinessPartner' ).

   lo_property  lo_entity_type->GET_PROPERTY( IV_PROPERTY_NAME = 'BusinessPartnerID' ).

   lo_property->DISABLE_CONVERSION( ).

 

*  Deactivate Conversion Exits for the entire Model.

   model->set_no_conversion( iv_no_conversion = abap_true ).

 

   endmethod.


but no luck for me, the conversion is still valid in the result.

Could you possibly light on this issue?


thanks a lot.

regards,

Yueqiang

Re: $Batch with Odata

Hello Hussain,

 

For now just redefine the ChangeSet_End and Begin Methods and write 'EXIT' statement and activate the class. Do not write any code.

 

Payload should have correct spacing. Use the below Payload and check ->

 

--batch
Content-Type: multipart/mixed;boundary=changeset

--changeset
Content-Type: application/http
Content-Transfer-Encoding: binary

POST headerSet HTTP/1.1
Content-Type: application/atom+xml
Content-Length:
1400

<?xml version=
"1.0" encoding="utf-8"?>
<entry xml:base=
"http://ITFS1.hq.company.com:8000/sap/opu/odata/sap/ZTEST_DEEP_INSERT1_SRV/"xmlns="http://www.w3.org/2005/Atom"xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices">
<id>http://ITFS1.hq.company.com:8000/sap/opu/odata/sap/ZTEST_DEEP_INSERT1_SRV/headerSet(
'23')</id>
<title type=
"text">headerSet('23')</title>
<updated>2015-05-25T10:05:47Z</updated>
<category term=
"ZTEST_DEEP_INSERT1_SRV.header"scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"/>
<link href=
"headerSet('23')" rel="self" title="header"/>
<link href=
"headerSet('23')/itemSet"rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/itemSet"type="application/atom+xml;type=feed" title="itemSet"/>
<content type=
"application/xml">
<m:properties>
<d:Id>987</d:Id>
<d:Name>BATCH</d:Name>
</m:properties>
</content>
</entry>



--changeset--
--batch--


Below will help ->


Batch Request in Netweaver Gateway(Multiple Operations into a Single Request)

 

How To Batch Multiple Operations Into A Single Request


Regards,

Ashwin

Re: Disable Conversion Exits in Gateway

Did you clear the metadata cache?

Viewing all 6105 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>