on 11-10-2011 6:43 AM
Hello All,
I am new to SRM 7.
There is a requirement to add a custom button and on the click of a button I need to pop up some custom fields , and
store it in SRM system.
The webdynpro component is /SAPSRM/WDC_UI_SC_DOFC_D1.
Can you pls tell me the process of adding, popup and transfer of the fields to SRM tables.
Should we adding some fileds in SPRO->Extensions and field control.
Kindly help.
Regards
Vinay
Hello,
Create a Enchacement z_new_button.
Add a Button in the view layout and in On action property add the Onclick_action.
And also create new view V_FILL_FIELD with your custom fields and binded it with the context attribute( type custom field).
And also OK button.(After entering custom field value)
In VPO_DOTC_BASIC Onclick_action method._
CALL METHOD wd_comp_controller->mo_bom_po->/sapsrm/if_cll_bo_mapper~fire_event_refresh( ).
navigation
lo_wd_controller = wd_this->wd_get_api( ).
lo_wd_component = lo_wd_controller->get_component( ).
lo_window_manager = lo_wd_component->get_window_manager( ).
DATA: lv_title TYPE string.
IF sy-langu = 'D'.
lv_title = /bmw/cbb_a4180_if_constants=>gc_title_de.
ELSE.
lv_title = /bmw/cbb_a4180_if_constants=>gc_title.
ENDIF.
CALL METHOD lo_window_manager->create_window
EXPORTING
modal = abap_true
window_name = 'W_FILL_FIELD'
title = lv_title
close_button = abap_true
message_display_mode = '1'
is_resizable = abap_false
RECEIVING
window = lo_window.
lo_window->open( ).
In VFILL_FIELD OKclick_action method_
Get the field value and Update the item details or header details accordingly.
Thanks,
Neelima
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Neelima,
Thanks for the info on the procdure.
My FC also suggested if we can go for addtional tab instead of click a button and pop up and messages as this will
not be so user-friendly.
So would it be easy to implement additional custom tab and have those custom fields in that tab.
The WDC is the same.
What would you suggest in your position.(as i said i am new to SRM).
Regards,
Vinay
Yes Neelima, I need these steps.
Kindly give me the steps for the following.
1. How to add custom tab on the item data tab of SC.
2. Design - will take care.
I learnt that adding custom fields thru SPRO (extension and field control) will automatically add custom fields in the item tab.
Of course we need to have meta data control. ( i will try to do that).
What I need is after adding the custom tab and custom fields .. how to transfer those fields to SRM tables.
Do we still need to add in the structures(INCL_EEW_PD_ITEM_CSF).
As of now , we need to store these fields in the SRM tables.
Can you please give me those details. It will be a saver for me.
Regards
Vinay
Hello,
Please follow steps to creata a table extension
1. Need to append the fields to the structure INCL_EEW_PD_ITEM_CST_SC (If header then header_cst).
2. You need to append the new table extension field to the INCL_EEW_PD_SC_CST.This can be doen thru IMG
path sap srm->srm server-> cross application->extension and field control->create table extension and supply data->define custom table table extension on item level.
you have create a new structure with the field and include it in above structure.
3.set visiblity
sap srm->srm server-> cross application->extension and field control->create table extension and supply data->
control table table extension and their field control action->set visiblity of table extension
configure visiblity of item enchancement
Object set type :TICUS
Object type : BUS2121
tran type : SHC
PDO set exit : X
4. In configure control of fields of table extension
Object set type :TICUS
Structure field name : custom field
Object type : BUS2121
set level : item
Field visible : X
field enable : X
5.In configure control of action
For configure control of action 'Add row' on item
PDO action type :ADD_TICUS
process mode : edit
Object type : BUS2121
tran type : SHC
PDO action enable: X
For configure control of action 'Delete row' on item
PDO action type :Delete_TICUS
process mode : edit
Object type : BUS2121
tran type : SHC
set level : item
PDO action enable: X
6. sm30 maintain /sapsrm/v_mdfsbc_default
Object set type :TICUS
Structure field name : custom field
Object type : BUS2121
set level : item
Field visible : X
field enable : X
Thanks,
Neelima
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.