Skip to Content
0

Add Additional field to change request header and can be accessed by gov api

Dec 10, 2017 at 11:14 AM

149

avatar image

Hi,

Gone through the community and found some threads are guiding add additional field to CR header and most of them are pointing to the documentation below.

https://archive.sap.com/documents/docs/DOC-47630

This guide is using Z-table method to capture additional information. Tested in the sandbox and found that there are some limitations

1) The record created in Z-table even though the CR is not saved yet. And no rollback when the CR is close without saved.

2) The Z-table is not accessible by any API including governance API/Convenient API.

3) When performing the check, BADI UMSD_RULE_SERVICE, not able to read the additional CR header field by using API, seem like the only way to access them is reading from the database instead.

4) File upload/mass upload will be an issue as the those field can not be added by using gov API/conv API.

Just wondering is there any other better option provided by SAP that allow to add additional Z-field into the CR header without enhancing the data model? Thanks in advance.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Loga Nathan Duraisamy Dec 19, 2017 at 09:36 AM
0

Hi Chong,

1) The record created in Z-table even though the CR is not saved yet. And no rollback when the CR is close without saved.

-Ztable save and rollback should be coded by developer.

2) The Z-table is not accessible by any API including governance API/Convenient API.

-API refers to type of structure USMD120c but as per the guide we create custom attributes from genil model so no api gives details about custom attributes other than reading custom table.

3) When performing the check, BADI UMSD_RULE_SERVICE, not able to read the additional CR header field by using API, seem like the only way to access them is reading from the database instead.

Yeah,Can be saved and read from database table in subsequent calls.

4) File upload/mass upload will be an issue as the those field can not be added by using gov API/conv API.

This custom table needs to be loaded seperatly or to enhance the code of the file/mass upload. This is the current approach suggested by SAP to add custom attributes in CR header also safest one as USMD120c is the central table irrespective of the model, adding and deleting fields in this table may produce incosistencies which leads to severe problem.

Thanks and Regards,

Logan.D

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Logan.D,

Thanks. Seem like there is no simple answer for the requirement.

The issue now is when changing the custom field does not trigger the derivation badi as well. Have to find some work around on this.

0