Skip to Content
0
Dec 08, 2011 at 05:21 PM

Handling multiple subtypes creation/update

227 Views

Hi,

I have the following request: to update subtype 2 or 6 of the infotype 965.I am not able to create a correct generic service update, as there is no support function for updating this infotype correctly (they do in the backend several checks and filling of fields based on customizing) so I would have to copy pieces from standard code, which I am not sure will produce an accurate result.

The option is to use SAP_PA service and add subtype 2 and 6 operations. I have added the following:

3 0965 2 Change Without delimiting

4 0965 6 Change without delimiting

I use a generic service in order to be able to default the values and to choose which of the subtype should be used.

I have added a dummy rule on both operations, asking if BEGDA = u201931.12.9999u2019 (value set manually by me in the custom generic service) so that I can distinguish which subtype I want to update.

The workflow says processed but there is no update in the database.

Tried several tricks to make available only one subtype operation, but for now no full success.

Strange enough, if I send both lines with subtype 6, it gets updated, but this does not happen if I send both with infotype 2.

I have tried also to enter a combination like:

0965 * * Change Without Delimiting

But it does not work at creation of new lines, even after customizing V_5ASRFSCNPAPRP.

This gives a dump telling subtype * is not allowed (infotype has time constraint T).

Any idea on what is the general approach/strategy when trying to achieve multiple subtype updates/creation?

When testing only with one subtype it is all fine, of course.

Thank you again for your input, much appreciated.

Ana-Maria