cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

loga201
Contributor
0 Kudos

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

Former Member
0 Kudos

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.