Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3323

SAP_WAPI_WRITE_CONTAINER - multiline elements appended instead of updated

$
0
0

Hello Workflowers,

 

We are using FM SAP_WAPI_WRITE_CONTAINER in order to update a specific container element of a work item. The update (owerwrite) of the specific container element works fine, however the usage of SAP_WAPI_WRITE_CONTAINER has one undesired side-effect:

 

In the container of the same work item we also have a few multiline container elements which contents are Not updated and should not be updated either - so far so good. However, every time we are calling SAP_WAPI_WRITE_CONTAINER for the work item in question ALL multi-line container elements are doubled; i.e previous number of rows in the multi-line element was 4 and after the FM call the number of rows in the multi-line element gets 8, next time the number of rows increases to 16 a s o.

It seems like the FM SAP_WAPI_WRITE_CONTAINER is appending rows of multiline container elements in the container instead of updating, i.e overwriting, the existing multiline element - as it does with non-multiline container elements.

 

You can easily see this if you perform the following test against a work item containing a multiline element:

1) SE37  FM SAP_WAPI_READ_CONTAINER

2) SE37  FM SAP_WAPI_WRITE_CONTAINER (insert the data from the result of step 1)

 

Can anybody confirm if this is the design of SAP_WAPI_WRITE_CONTAINER or a bug?

 

I know there are other non-released function modules for updating container elements, however since only the WAPI-functions are released I would first of all use these.

 

Kind regards

Viveka Schwartz


Viewing all articles
Browse latest Browse all 3323

Trending Articles



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