cancel
Showing results for 
Search instead for 
Did you mean: 

How to Pass WDA event value to BBP_ITEM_CHECK_BADI

jerry_martinek2
Explorer
0 Kudos

Hi,

We've upgraded our SRM 5.0 ECS system to SRM 7.03 (SRM_SERVER 713 level 0003).

A lot of existing checks in either the BBP_ITEM_CHECK_BADI or BBP_DOC_CHECK_BADIs were based around the old sy-ucomm values that are no longer used in the WDA 7.03 system.

Is there an easy or standard way to expose the selected screen event value to the called CHECK_BADIs?

Thanks,

Jerry

Accepted Solutions (1)

Accepted Solutions (1)

former_member228602
Contributor
0 Kudos

There is one option in the BADI call the class /SAPSRM/CL_TRANSACTION_CONTEXT and there is a static method /SAPSRM/IF_TRANSACTION_CONTEXT~GET_INSTANCE in this class to pass reference.

Call the method /SAPSRM/IF_TRANSACTION_CONTEXT~GET_CURRENT_ACTION of this class to get the current action

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Jerry,

You could do DOC_CHECK_BADI based on the Object type for example Shopping cart BUS2121 and PO BUS2201 etc.

Hope this helps.

Thank you

Ritesh