on 11-22-2010 4:10 PM
Hi all,
I want to add a validation in the step 2 "Assign Sources of Supply".
I've tried to add this validation in the class /SAPSRM/CL_CH_WD_DOM_SOCO_GAF2. But in the method DOC_CHECK can't put an enhancement point, the following message is displayed; "Implicit enhancement impl. cannot be displayed due to syntax error"
Then, i've tried to do it in the method /SAPSRM/IF_CLL_MAPPER~REFRESH. But i have a problem. When my error message is displayed (when the user try to create a draft) all the items are removed in step 2 and filled in step 3. Although I am staying in step 2.
On top i can read in the step 2 :Assign Sources of Supply ( No Items ), and in the step 3: Review Drafts ( 1 Items ).
I use the following code for add the message;
loe_workarea = lon_workarea->get_element( index = sy-tabix ).
lv_msgv1 = ls_workarea-EXT_DEMID_POSID.
CALL METHOD mo_cll_message_handler->add_validation_error
EXPORTING
iv_msgno = 022
iv_msgid = 'Z...'
ioe_error = loe_workarea
iv_msgv1 = lv_msgv1.
And i have managed to repopulate the table in step 2 as well;
mon_cll_set_facade->bind_data_table( EXPORTING new_items = lt_workarea_all
set_initial_elements = abap_false ).
But i don't know how remove the lines of the table in the step 3...
Do you know how can i do it? I do not know to if it has become clear.
Thanks in advance.
Finally i've put an enhancement point in the method /SAPSRM/IF_CLL_MAPPER~CHECK_FOR_REQUIRED_FIELDS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.