cancel
Showing results for 
Search instead for 
Did you mean: 

bp_data taxnumber

Former Member
0 Kudos
117

Hi I'm trying to access taxnumber in BP_DATA component.

I have enhanced the accounttaxnumberlist view and i want to check the values i introduce.

i have implemented the do_validate_input method with the source code below but

when i try to activate the source code you wrote it says that

me->ztyped_context->BUILTAXNUMBER->collection_wrapper->get_current( ). is unkown.

Any help please.

I'm new at OO ABAP.

Thanx

Here is the source code:

method DO_VALIDATE_INPUT.

data: ls_taxnumber type CRMT_BUPA_IL_TAX,

lr_taxnumber type ref to cl_crm_bol_entity,

lr_global_messages TYPE REF TO cl_crm_genil_global_mess_cont,

lr_core TYPE REF TO cl_crm_bol_core.

lr_core = cl_crm_bol_core=>get_instance( ).

lr_global_messages = lr_core->get_global_message_cont( ).

lr_taxnumber ?= me->zTYPED_CONTEXT->BuilTaxNumber->collection_wrapper->get_current( ).

if lr_taxnumber is bound.

lr_taxnumber->get_properties( IMPORTING es_attributes = ls_taxnumber ).

  • your checking against taxnumber values and show error message

if ls_taxnumber-TAXNUMBER ne '00000000T'.

CALL METHOD lr_global_messages->add_message

EXPORTING

IV_MSG_TYPE = 'E'

iv_msg_id = '<ZNESSAGECLASS>'

iv_msg_number = 010

iv_show_only_once = abap_false.

  • endif.

endif.

endmethod.

View Entire Topic
Former Member
0 Kudos

my own

jordi_escodaruiz
Active Participant
0 Kudos

Please Jon, don't ask to the forums if you are not willing to share your solution.