cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance Describe Requirement screen

former_member305388
Active Contributor
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Srinivas ,

You need to enhance the webdynpro component .

Thanks & Regards

Pradeep Kumar Dondeti

former_member305388
Active Contributor
0 Kudos

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.

former_member305388
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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.

former_member305388
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

former_member305388
Active Contributor
0 Kudos

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?

Former Member
0 Kudos

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

former_member305388
Active Contributor
0 Kudos

Hi Pradeep,

Is there anyway how to find the class method you have mentioned which needs to be enhanced?

Former Member
0 Kudos

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

Former Member
0 Kudos

Hello Srinivas,

ls_sos_list-vendor_id = your partner id which u give in custom field.

CALL FUNCTION 'GUID_CREATE'

IMPORTING

ev_guid_16 = lv_guid.

pass lv_guid to ls_partner-guid.

Regards,

Neelima

former_member305388
Active Contributor
0 Kudos

Hi Neelima,

Are you aware of what needs to be done to display the Z field in the view as the Z filed is not appearing in the layout during runtime.

Former Member
0 Kudos

Hello srinivas,

You have added it in below include

INCL_EEW_PD_ITEM_CSF

INCL_EEW_PD_ITEM_CSF_SC

Then did you do customizing or add this custom field in manuallyin webdynpro.

Please confirm.

Regards,

Neelima

former_member305388
Active Contributor
0 Kudos

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.

Answers (0)