cancel
Showing results for 
Search instead for 
Did you mean: 

Making rows default in UI for Tax Classification

SwapnilkumarL1
Participant
0 Kudos

Hi Experts,

We would like to make first 3 rows in Tax Classfication Assignment block under Accounts screen with default values .

We tried with the BADI BADI_CRM_BP_UIU_DEFAULTS

we tried with the below section :

ASSIGN lr_typed_context->('BUILTAXCLASS') TO <context_node>.

IF sy-subrc = 0.

TRY.

lr_node ?= <context_node>.

CATCH cx_sy_move_cast_error. "EC_NOHANDLER

ENDTRY.

IF lr_node IS BOUND.

lr_coll_wrapper ?= lr_node->collection_wrapper.

IF lr_coll_wrapper IS BOUND.

TRY.

lr_current ?= lr_coll_wrapper->get_current( ).

CHECK lr_current IS BOUND.

  • lr_current->set_property( iv_attr_name = 'SEARCHTERM1'

  • iv_value = 'CRM' ).

lr_current->set_property( iv_attr_name = 'TAXCOUNTRY'

iv_value = 'IN' ).

CATCH cx_sy_move_cast_error.

But still it is not working for the field in that assignment block .

Please let us know how we can achieve the requirement

Regards

MK

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

HI,

I know this is a long time ago but did you resolve this?

Thanks,

kevin

SwapnilkumarL1
Participant
0 Kudos

Hello Experts

Any pointers how to achieve this ?

Regards

MK