Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Unable to update report structure

Hi

I am trying to update report structure using restful web services. But getting error. Details as below:

SAMPLE XML:

<REPORT rId="2" name= "Report 1">

    <PAGE_BODY bId = "21">

        <CELL bId = "211" x= "1000" y="1500">

            <CONTENT>

                ="My First CELL"

            </CONTENT>

        </CELL>

    </PAGE_BODY>

</REPORT>

CODE:

cell = "<REPORT rId=\"2\" name= \"Report 1\"> <PAGE_BODY bId = \"21\"> <CELL bId = \"211\" x= \"1000\" y=\"1500\"><CONTENT>=\"My First CELL\"</CONTENT> </CELL> </PAGE_BODY></REPORT>"

headers2 = {'accept': 'text/xml', 'content-type': 'text/xml', 'X-SAP-LogonToken': logonToken}

updateReportStr = requests.put(url = rayLightUrl + '/documents/15533'  + '/reports/2/specification', data = cell, headers = headers2)

ERROR:

<error>

    <error_code>RWS 00058</error_code>

    <message>Not acceptable, (RWS 00058)</message>

Stack Trace is not helping. Any help is appreciable.

Regards

Anu

Tags:
replied

Hi Anu,

to save the changes back to the CMS, you need to update the state of the document,

if you do the following:

PUT  .../raylight/v1/documents/<docID>

without any request body, it will save the document with changes

if you use:

PUT .../raylight/v1/documents/<docID>

with the following body:

<document>

   <state>Unused</state>

</document>

It will save the document to the CMS and close it as well.

See this page in the documentation

Dan

1 View this answer in context
Not what you were looking for? View more on this topic or Ask a question