Hi,
I have created one value node and one value attribute in standard component by enhancing it. I have also displayed that attribute on view. Now my requirement is I need to validate that if that field on view is empty i need to throw an warning message allowing it to save the opportunity.
Now my query is:-
1) What Code should come to access the value attribute?
2) Where I will check for validating the field , in which method.
3) How I will add warning message?
I think code should come in View Implementation Class in DO_VALIDATE_INPUT method, Is this place is correct?
I have tried this code :-
DATA : LR_ECUST TYPE REF TO IF_BOL_BO_PROPERTY_ACCESS
LR_ECUST ?= ME->ZTYPED_CONTEXT->ZBTPARTNERENDCUSTOMER->COLLECTION_WRAPPER->GET_CURRENT( ).
CHECK LR_ECUST IS BOUND.
CALL METHOD LR_ECUST->GET_PROPERTY_AS_VALUE
EXPORTING
IV_ATTR_NAME = 'ECUSPARTNER'
IMPORTING
EV_RESULT = LV_ECUSPARTNER.
But by this code value is not coming,
Please suggest
Ankesh Jindal