on 2010 Feb 22 5:03 PM
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.
Request clarification before answering.
my own
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
21 | |
16 | |
3 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.