Skip to Content
0
Former Member
Feb 21, 2014 at 08:05 PM

In MDG-F how extend decision table columns with BAdi in USMD_SSW_RULE_CONTEXT_PREPARE

217 Views

I have coded the changes to BADI as suggested by SAP how_to documentation..
I need some information, however.

The example data points to the MM data model and I am
wondering how to make sure I point to the FI data model, which is 0G instead of
MM and that the structure I used to return the account type and account data
was the correct one.

Is this something you can point me in the right direction
on?

I created enhancement implementation
ZMDG_BS_FI_BRF_CONTEXT_ACC of enhancement spot
USMD_SSW_SERVICE_PROCESSOR. All of the new code is in the class
ZMDG_BS_FI_BRF_CONTEXT_ACC.

As the structure for holding the change request data for FI I used:

DATA: ls_account TYPE /MDG/_SF_0G_PP_ACCOUNT.

Read_request method reads material data model

method READ_CREQUEST.

DATA: lr_model TYPE REF TO if_usmd_model_ext.

DATA: lt_sel TYPE usmd_ts_sel.

DATA: ls_sel TYPE usmd_s_sel.

DATA: lt_crequest TYPE usmd_ts_crequest.

CONSTANTS: lc_incl TYPE ddsign VALUE 'I'.

CONSTANTS: lc_equal TYPE ddoption VALUE 'EQ'.



CLEAR: es_crequest.
* Get read-only access to USMD model data

CALL METHOD cl_usmd_model_ext=>get_instance

EXPORTING

i_usmd_model = if_mdg_bs_mat_gen_c=>gc_model_mm