on 06-27-2013 12:48 PM
Dear Experts,
i want to know how the field ORDERED_PROD_LABEL in view V_DODC_SC_I_BD of Component /SAPSRM/WDC_DODC_SC_I_BD.
This field is populating as Product ID/Service ID in shopping cart Item.I need to change the product id as material code.Happy to see your reply.
Regards
Chalam
Dear Simha,
The Product ID label is filled on WDDOMODIFYVIEW on line
* Refresh
wd_this->mo_dodm_sc_i_bd->/sapsrm/if_cll_mapper~refresh( ).
If you go to class /SAPSRM/CL_CH_WD_DODM_SC_I_BD method /SAPSRM/IF_CLL_MAPPER~REFRESH you will see a line of code with comment
* Set label of input field ORDERED_PROD according to Material / Service.
There is where SAP sets the label you’re looking for.
Here you have 2 options: Make an enhancement to method Refresh or make an enhancement on method WDDOMODIFYVIEW and change the context attribute value for V_DODC_SC_I_BD.ORDERED_PROD_LABEL.
I hope it helps,
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Yaiza,
Thanks a lot for the reply.I am able to see and implement your solution.
Still I have one issue which i cannot understand, How we can find out the class name .
the interface can have many implementations out of that which class method is called at runtime,how we can know this.Can you please guide.
Regards
Simhachalam
Dear Simha,
All components in SRM7 have a mapper class that is the responsible of the mapping between the webdynpro and the model.
Most of the mapper class starts with /SAPSRM/WDC_DODC_* after that, if you look for confirmations you can add *CONF*, *SC* for Shopping carts and so on.
Other option is to look for the mapper attribute on the view (on attribute tab) and then go to WDDOMODIFYVIEW method. On that method the mapper attribute is used to call refresh method. You can set a breakpoint on that line and check in the debugger the name of the mapper class.
I hope it helps.
Regards
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.