cancel
Showing results for 
Search instead for 
Did you mean: 

Problem while posting in case of enabling business workflow in sap netweaver gateway

Former Member
0 Kudos

Hiie,

I'm trying to subscribe and get notifications from a workflow scenario, but while i'm trying to post for subscribing in case of subscribe to a business workflow by following the below Document .

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b01f6a02-5464-2e10-bd8b-efa13d7f2...

http://<host name>:<port>/sap/opu/sdata/sap/wfactivitytaskprocessing/SubscriptionCollection?$format=xml

But while posting from rest client , no response is getting and while trying to execute from gateway client i'm facing the below error :

<?xml version="1.0" encoding="utf-8" ?>

- <error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">

<code />

<message xml:lang="en">System expected end of element '{&EXPECTED_NAMESPACE&}&EXPECTED_NAME&'</message>

</error>


awaiting for helpful suggestions

    





Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Krishna ,

Thanks for your suggestions its working , problem with event description and workflow pattern customization ..

we are not able to find the option workflow pattern customization..,

But with Tcode simgh im able to find the option.

Thanks and regards,

Lokeswar .

Answers (1)

Answers (1)

kammaje_cis
Active Contributor
0 Kudos

Lokeswar,

Problem might be with the XML body. Why don' you post the request body.

Thanks

Krishna

Former Member
0 Kudos

Hi Krishna ,

Thanks for ur reply , Pl check the below XML body :

<atom:entry xmlns:atom="http://www.w3.org/2005/Atom">

<atom:id/>

<atom:title>Gateway subscription</atom:title>

<atom:author/>

<atom:updated/>

<atom:content type="application/xml">

<m:properties

xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metad

ata"

xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices">

<d:deliveryAddress>urn:sap-com:channel:XXXX:http</d:deliveryAddress>

<d:collection>WorkflowTaskCollection</d:collection>

<d:filter></d:filter>

</m:properties>

</atom:content>

</atom:entry>

Thanks ,

Lokeswar.

Former Member
0 Kudos

Hi Krishna ,

Actually my Service is a sdata service and before posting i need to get X-CSRF-TOKEN ,  but while getting i'm not able to X-CSRF-TOKEN ..,

Pl suggest , is it needed to fetch and pass X-CSRF-TOKEN..,

Regards,

Lokeswar.

kammaje_cis
Active Contributor
0 Kudos

The XML body looks good. So I doubt the problem has to be with SAP's XML parser.

Why are you using sdata. I would suggest activating oData node and using oData version of the service.

Former Member
0 Kudos

Hi Krishna,

Thanks for ur suggestion,

Under oData i found wfservice node under IWWRK .

Url which i tried to post  :

<GW port >/sap/opu/odata/iwwrk/wfservice/SubscriptionCollection?$format=xml

While executing system is raising error message as forbidden-403 ..,

pl suggest ..,

Former Member
0 Kudos

Hi Krishna ,

That is the problem with URl,

But now i'm facing the below error :

<?xml version="1.0" encoding="utf-8"?><error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"><code>005056A509B11EE1B9A8FBE8A100F78B</code><message xml:lang="en">The Data Services Request contains SystemQueryOptions that are not allowed for this Request Type</message></error>

kammaje_cis
Active Contributor
0 Kudos

Is it a post? Did you provide CSRF token? More info would make it easier to help.

Also here is a document using oData.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/509c922a-aa9a-2f10-328c-d3814560d...

Former Member
0 Kudos

HI Krishna ,

I have provided the X crsf token,but im facing the same error as below :


400 Bad Request


<?xml version="1.0" encoding="utf-8"?><error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"><code>/IWFND/COD/011</code><message xml:lang="en">The SAP system could not process your request. Contact your administrator</message></error>

kammaje_cis
Active Contributor
0 Kudos

FND and BEP error logs can help and cab provide more info.

Former Member
0 Kudos

With SLG1 transaction i found that the error is :

Subscription rejected by backend:Long text exists

Pl let suggest that what is root cause of the error

kammaje_cis
Active Contributor
0 Kudos

Run transaction/IWBEP/VIEW_LOG and check the error.

Former Member
0 Kudos

While executing /IWBEP/VIEW_LOG , no logs were registered here..,

Former Member
0 Kudos

Any authorizations required for subscription , from the below link i found that /IWBEP/RT_SUB_USR is required ..,

Subscription Management - SAP NetWeaver Gateway Foundation (SAP_GWFND) - SAP Library