cancel
Showing results for 
Search instead for 
Did you mean: 

Read Inactive Entity Data of Change Request in USMD_RULE_SERVICE~CHECK_ENTITY

SharonLim
Explorer
0 Kudos
4,488

Hi,

We want to read inactive entity data specific to a CR in USMD_RULE_SERVICE~CHECK_ENTITY and We have a parallel processing scenario as such:

There is a CR(#1) in progress for a Supplier BP, Purchasing Org and Company Code is extended in the CR but not yet activated. A new CR(#2) is created for the same BP and new purchasing org and company code is extended.

We use IF_USMD_MODEL_EXT~READ_CHAR_VALUE to read inactive data with readmode=gc_readmode_no_act(4) by specifying BP ID and CR number in IT_SEL. Although CR(#2) number is specified, the value returned are all the inactive data for the BP, instead of specific CR.

According to API guide https://www.sap.com/documents/2015/07/666e4158-5b7c-0010-82c7-eda71af511fa.html, usage of API is forbidden in Rule Service BAdI. However, we have tried to use IF_USMD_CONV_SOM_GOV_API~GET_CREQUEST_DATA, it did return the inactive data specific to the CR but it causes other issues related to entity mandatory check errors.

Any pointers how we can read inactive entity data specific to CR in Rule Service BAdI?

View Entire Topic
SharonLim
Explorer
0 Kudos

Hi Loga,

I did tried to pass in the BP number if that is the key field that you mean, is there any other key fields required to read inactive entity data, e.g. purchasing org and company code?. By only passing in BP number into IT_SEL, without passing in the CR number, it would return data from all CRs pertaining to this BP as mentioned by Ching Hong.