cancel
Showing results for 
Search instead for 
Did you mean: 

Remove default Product Category in Describe Req. initial screen

Former Member
0 Kudos

Hi Experts,

We are on SRM 7.0 SP05

How to remove default product category in 'Describe Requirement' initial screen. Is there any possiblity to achieve this in webdynpro or we have to go for ABAP development ??

Please advice

Appreciate your help!!!

BR

Siva

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Siva,

Class    :  /SAPSRM/CL_PDO_SHARED_USER

Method :  INIT_USER_ATTRIBUTES

Implement Enhancement for the above class and Clear below Fields.

mv_global_data-category_id and mv_global_data-category

Regards,

Sheelam.

0 Kudos

Hi Siva,

This can also be done at-

/SAPSRM/CL_CH_WD_DODM_SC_I_DSC - REFRESH

Where lt_cll_item[]-category_id holds this value.

Before the call to-

mon_cll_set_facade->bind_blank_table( it_new_items = lt_cll_item ).

you can clear lt_cll_item[]-category_id

Regds,

Siddharth.

Former Member
0 Kudos

Hi Siva,

There is a way to remove these values without creating any dummy field as BLANK field.

1.There is a class interface /sapsrm/if_pdo_us_context which has a method get_item_defaults that sets the Item Default values for the product category.

     For finding the method.

       - Open Product Category Table COMM_CATEGORY

       - Do a 'Where-Used' on the table.

       - Find the following Method in the list:

 /SAPSRM/IF_PDO_US_CONTEXT_CONS~GET_ITEM_DEFAULTS 

2. Open the above method and find the code that fetches the:

   Product Category (rs_default_item-category_id) and

   Category GUID (rs_default_item-category).

The product category field is getting populated here.

3. Create an Enhancement at the end of this method to clear these fields.

4. You will need to determine the calling process to be sure you are only clearing these values when you want to.  I used a call to function SYSTEM_CALLSTACK and checked for certain mainprogram names.  Only if I find one of these programs do I clear the fields.

I checked for programs:

'/SAPSRM/CL_CH_WD_DODM_SC_H_BD=CP' or '/SAPSRM/CL_CH_WD_DOTM_SC_I_BD=CP'.

Note: This Method is called two times in the process.  Each from a different program.

Please reward points if helpful.

Regards,

AkkI

laurent_burtaire
Active Contributor
0 Kudos

Hello Siva,

Unset default product category customized in 'Extended attributes' tab from PPOMA_BBP transaction for user's position concerned.

Regards.

Laurent.

Former Member
0 Kudos

Laurent ,

Thanks for your reply on this.

I haven't defaulted the product category for user in PPOMA. Eventhough, system will consider the last product category in 'Extended attributes' tab as a default one in 'Describe Requirement' initial screen.

How to make the product category field initially be empty in 'Describe Requirement' initial screen...

I hope you are clear about the requirement now.

Please advice.

BR,

Siva

former_member183819
Active Contributor
0 Kudos

hello Siva

what is defaulting now product category in your system?

in the comm_category first one or last one.

However SAP workaround solution

create a dummy local product category and make is default at root level and DOC CHECK badi should validate if it is a dummy product category not to order it.

Muthu

Former Member
0 Kudos

Muthu,

Thanks for your reply on this.

System has defaulted the last product category in 'COMM_CATEGORY'.

I hope we may achieve this requirement through webdynpro. But, don't know how to proceed with the same.

BR,

Siva

former_member183819
Active Contributor
0 Kudos

The above behavior is SAP standard in SRM 550 too.

by default system takes /popups last value .

As our SRM Guru Dave advise was very useful.

local dummy product category and description and validation in doc check Badi not to order dummy product category.

Muthu

Former Member
0 Kudos

Hi Siiva,

We have achieved the same functionality by creating a Dummy Product Category in ECC system for Classic Scenario and Maintain a dummy G/L account for the same in SRM.

We are raising error message when the user leaves the product category as it is without selecting the valid one via abap webdynpro.

Its much easier to achieve the requirement with this as compared to ABAP webdynpro.

Thanks.

Former Member
0 Kudos

Hi,

I have same problem of default category being populated.

But I have one query here which I would like to clarify, please suggest.

Suppose we create a dummy default category and assign it to all the users.

And if some user ( say ABC ) is already assigned with some category as default,
then our assigning of dummy category as default to all will override his assignment right?

I suppose this may cause problem.

So Is there a way where we can assign dummy category as default only to the user who is not having default category assigned earlier?

Please suggest.