on 09-28-2011 4:52 PM
Hi Experts,
In SRM 7.0 for Describe Requirement Screen I want to add additional fields in the Describe Requirement Screen. I could not find any way to customize through field control in spro. Do i need to enhance the Webdynpro screen for Describe Requirement to accommodate this change or is there any other way?
Thanks
Hi Srinivas ,
You need to enhance the webdynpro component .
Thanks & Regards
Pradeep Kumar Dondeti
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pradeep,
I am adding one of the standard item field in the describe requirement screen. Once I have enhanced the Wendynpro screen and added the standard field is there any quick way to map the value to the item details or do I need to write post exit method to map the values to item.
I am trying to add the fixed supplier field to the describe requirement screen.
Please advise as how to proceed as I am new to webdynpro:
1) The Fixed supplier component in standard screen is available in item details screen in /SAPSRM/WDC_DODC_SC_I_SOS.
2)I am trying to add the supplier field in /SAPSRM/WDC_DODC_SC_I_DES webdynpro interface
3) Now since the field is not available in the context I have added a new node and in DESCRIBE REQUIREMENT and added the supplier attribute(partner).
4) In the layout I have added the partner lable and input field.
The field is now appearing in the SC Describe Requirement Window. Now I need some information as how to transfer the value to source of supply screen of the SC Item details window.
I checked the method of /SAPSRM/WDC_DODC_SC_I_SOS, ONACTIONON_ASSIGN_FIXED_SUP where they are passing the value. Do i need to implement the methods WDDOINIT, ONACTIONON_ASSIGN_FIXED_SUP form /SAPSRM/WDC_DODC_SC_I_SOS to the pre exit of /SAPSRM/WDC_DODC_SC_I_DES?
Kindly let me know your inputs. Thanks
Hello srinivas,
Are you adding a custom field or standard field Partner no?
After adding item do you need to create a partner 19 with this Partner no?
Kindly check Class /SAPSRM/CL_PDO_BO_SC method SOS_VALIDATE
In post exit you can modify the CT_partner and add the partner 19 with partner no which entered in describe requirement screen.
READ field partner no which you added in CS_ITEM
CALL FUNCTION 'BBP_VENDOR_GETINFO'
EXPORTING
partner = partner no
x_with_name = 'X'
TABLES
vendor_set = lt_vendor
EXCEPTIONS
OTHERS = 1.
READ TABLE lt_vendor INTO ls_vendor INDEX 1.
ls_partner-partner_fct =' 0000019'.
ls_partner-p_guid = cs_item-guid.
ls_partner-partner_no = ls_vendor-partner_guid.
ls_partner-partner_id = ls_sos_list-vendor_id.
me->guid_create( CHANGING cv_guid = ls_partner-partner_guid ).
APPEND ls_partner TO ct_partner.
Hope it helps.
Regards,
Neelima.
Hi Neelima,
your understanding is correct. But how do I get the field value entered in Describe Requirement screen? Do I need to add a new Z field to Item structure?
Since there is no specific partner_no field, i have included a new node with /SAPSRM/S_CLL_WD_SUPPLIER structure in the context of Webdynpro /SAPSRM/WDC_DODC_SC_I_DES .
The fixed supplier i am trying to add is in structure /SAPSRM/S_CLL_WD_SUPPLIER-PARTNER
I am adding standard field Partner no to Describe Requirement screen. This partner no field is normally available in Item Details-Source Of supply screen. In Source Of Supply tab the user selects the supplier and then clicks Assign Supplier button to add the supplier in the table control.
I want to enable the user to select the Supplier(Partner no) and when he clicks ok the supplier( partner no) should be added to the source of supply assigned supplier screen.
Edited by: Srinivas Kalluri on Sep 29, 2011 6:11 PM
Hello Srinivas,
Yes, You add the custom field type partner no to Item structure.
If u debug ONACTIONADD_ITEM_TO_SC method of the component /SAPSRM/WDC_DODC_SC_I_DES
item details are populated and using it account, partners are created.
1, Add custom field in item structure. example :zsupplier_no type partner_no
2, check once when u enter input in your zfield values is getting populated in /SAPSRM/IF_PDO_BO_SC~ADD_ITEM(While debugging)
3, Enchance the post exit for /SAPSRM/IF_PDO_BO_SC ~SOS_VALIDATE, In sos tab you can find the partner no as fixed vendor.(which was entered in describe sc screen)
In exit
CALL FUNCTION 'BBP_VENDOR_GETINFO'
EXPORTING
partner = cs_item-zsupplier_no
x_with_name = 'X'
TABLES
vendor_set = lt_vendor
EXCEPTIONS
OTHERS = 1.
READ TABLE lt_vendor INTO ls_vendor INDEX 1.
ls_partner-partner_fct =' 0000019'.
ls_partner-p_guid = cs_item-guid.
ls_partner-partner_no = ls_vendor-partner_guid.
ls_partner-partner_id = ls_sos_list-vendor_id.
me->guid_create( CHANGING cv_guid = ls_partner-partner_guid ).
APPEND ls_partner TO ct_partner.
Regards,
Neelima
Edited by: S Neelima on Sep 29, 2011 2:58 PM
Hi Neelima,
Any info as what is ls_sos_list-vendor_id ? as I find its initial in sos_validate method and which object me->guid_create() method is pointing?
I have a strange issue that the Z field I have added to the item structure is not visible in the Describe requirement Screen. The standard fields seem to be added without any issues. Am I missing something?
I have added the custom field in spro
Extension and Field Control->Configure Customer Fields->Define customer fields on Item Level:
- Append for Customer Cross-Document Item Database Fields
- Append for Customer Fields on Shopping Cart Item
In the Webdynpro context, under describe item node ->create using wizard->Attributes from component of structure.
In Layout under the Standard Content -> Create Container Form and select binding for the Z element of the item structure.
If i create the binding to a standard attribute then its visible, for the z attribute it doesn't seem to work. Any pointers as what should be checked?
Hi Srinivas ,
For displaying the UI elements you need to set the meta data
sample code is here
In order to set metadata values for extension fields, it is recommended that you create a
NetWeaver Enhancement Framework post-exit in the method
/sapsrm/if_pdo_meta_consumer~get_field_metadata of the corresponding
metadata provider class or classes.
Within the post-exit you can set the metadata values as desired.
if iv_field EQ ' Zfiled1' or iv_field eq 'zfiled2'.
rs_field_meta_data-visible = abap_true .
rs_field_meta_data-enable = abap_true .
rs_field_meta_data-required = abap_false .
if lv_mode eq 'DISPLAY'.
rs_field_meta_data-enable = abap_false .
endif.
endif .
Hope it will be useful answer for you .
Thanks & Regards
Pradeep Kumar Dondeti
Hi Srinivas ,
For each Business Partner master data object there is a dedicated metadata provider class.
These are:
/SAPSRM/CL_PDO_META_MO_SUPP for Supplier
/SAPSRM/CL_PDO_META_MO_BIDDER for Bidder
/SAPSRM/CL_PDO_META_MO_INVP for Invoicing Party
/SAPSRM/CL_PDO_META_LOCATION for Location
/SAPSRM/CL_PDO_META_MO_PUR_COM for Purchasing Company
/SAPSRM/CL_PDO_META_MO_PORTAL for Portal
/SAPSRM/CL_PDO_META_MO_CP for Contact Person.
Thanks & Regards
Pradeep Kumar Dondeti
Edited by: pradeep naidu on Oct 5, 2011 9:34 AM
I have added the Z field in both structure.
I have enhanced the webdynpro /SAPSRM/WDC_DODC_SC_I_DES and added the filed in the context under Describe_item:
- In the Webdynpro context, under describe item node ->create using wizard->Attributes from component of structure..
After adding in the context I have added the field in the layout under standard_content container.
In Layout under the Standard Content -> Create Container Form and select binding for the Z element of the item structure.
I did not understand what you meant by customizing.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.