cancel
Showing results for 
Search instead for 
Did you mean: 

Updating Input Control Definition

Former Member
0 Kudos

Hi All,

there´s another question ...

I´m trying to udapte the definition of an Inpit Control so to point to a different assignedDataObject.

I succesfully updated the Input Control, at least I got no error message. But when I get the updated Inpt control, it still póints to the previous Data object.

Here the snippet of my code :

// Get the Input Control´s definition

var logoff = new XMLHttpRequest();

    var url = 'http://vrt0582.bndes.net:6405/biprws/raylight/v1/documents/5210245/reports/1/inputcontrols/R1.IF0';

    logoff.open('GET', url, false);

    logoff.setRequestHeader('X-PINGARUNER', 'pingpong');

    logoff.setRequestHeader('Content-Type', 'application/xml');

    logoff.setRequestHeader('Accept', 'application/xml');

    logoff.setRequestHeader('X-SAP-LogonToken', token);

    logoff.send();

// replace DP0 fro DP2

    var ic = logoff.responseText;

    ic = ic.replace('DP0','DP2');

// update the Input Control definition

var logoff = new XMLHttpRequest();

    var url = 'http://vrt0582.bndes.net:6405/biprws/raylight/v1/documents/5210245/reports/1/inputcontrols/R1.IF0';

    logoff.open('PUT', url, false);

    logoff.setRequestHeader('X-PINGARUNER', 'pingpong');

    logoff.setRequestHeader('Content-Type', 'application/xml');

    logoff.setRequestHeader('Accept', 'application/xml');

    logoff.setRequestHeader('X-SAP-LogonToken', token);

    logoff.send(ic);

// save the document

var logoff = new XMLHttpRequest();

    var url = 'http://vrt0582.bndes.net:6405/biprws/raylight/v1/documents/5210245';

    logoff.open('PUT', url, false);

    logoff.setRequestHeader('X-PINGARUNER', 'pingpong');

    logoff.setRequestHeader('Content-Type', 'application/xml');

    logoff.setRequestHeader('Accept', 'application/xml');

    logoff.setRequestHeader('X-SAP-LogonToken', token);

    logoff.send();

// trying to get the updated Inpuut Conbtrol definition

var logoff = new XMLHttpRequest();

    var url = 'http://vrt0582.bndes.net:6405/biprws/raylight/v1/documents/5210245/reports/1/inputcontrols/R1.IF0';

    logoff.open('GET', url, false);

    logoff.setRequestHeader('X-PINGARUNER', 'pingpong');

    logoff.setRequestHeader('Content-Type', 'application/xml');

    logoff.setRequestHeader('Accept', 'application/xml');

    logoff.setRequestHeader('X-SAP-LogonToken', token);

    logoff.send();

Thanks in advance,

Rogerio

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Rogerio,

Which SP are you using ?

Bogdan

Former Member
0 Kudos

Hi Bogdan,

I´m on 4.1 SP5.

Cheers,

Rogerio

Former Member
0 Kudos

Ok. This problem is fixed in SP6. We can put the fix in the next SP5 Patch if it's something critical for you ?

Regards,

Bogdan

Former Member
0 Kudos

Hi Bogdan,

thanks for your reply. I don´t think it´s  necessarty to set it on a new patch. Is t there a date for the release of the SP6 ?

Thanks

Rogerio

former_member197386
Active Contributor
0 Kudos

Hi Rogerio,

You can find the RTC (Release To Customers) dates here:

http://service.sap.com/bosap-maintenance-schedule

For 4.1 SP6, it should be around June 24th.

Best regards,

Anthony

Former Member
0 Kudos

Hi Anthony,

]thank you very much.

Rogerio

Answers (2)

Answers (2)

daniel_paulsen
Active Contributor
0 Kudos

in addition to Eric's and Bogdan's questions...

What is the state of the document before and after saving?

GET: http://vrt0582.bndes.net:6405/biprws/raylight/v1/documents/5210245

I'm wondering if you need to close/flush the document from memory and reload.

you can reload on your last request by passing

<document>

     <state>Unused</state>

</document>

as "ic" into the "//save the document" section of code

the next request should load the document in an "original" state

eric_festinger
Contributor
0 Kudos

hi (again ) Rogerio,

Maybe it should be easier if you also post the request and response bodies.

eric