cancel
Showing results for 
Search instead for 
Did you mean: 

SRM Contract updating with custom field

vamshi_mohan
Participant
0 Kudos

Hi,

Requirement is:

A new custom field (procurement method) is to be available in Contract header. The content of this field is to be updated in all the items into the same field.

I have used the BAdI BBP_DOC_CHANGE_BADI~BBP_CTR_CHANGE.

Problem is:

The items table in this method CT_ITEM is populating only when a new contract is being created but not when changing the contract. How can this is be addressed in such a way that CT_ITEM is always available for updating.

Regards,

Vamshi.

Accepted Solutions (0)

Answers (1)

Answers (1)

vamshi_mohan
Participant
0 Kudos

This has been achieved by updating buffers. E.g., use  /sapsrm/cl_pdo_factory_ctr_adv=>get_buffered_instance to get the instance of Contracts.

Once we have all the data we can explore the things need to be done with it.