cancel
Showing results for 
Search instead for 
Did you mean: 

Product status search

Former Member
0 Kudos
111

Hi,

May I know how to deactivate product status eg: Locked, Delete etc for product search in web UI?

BSP is PRD02QR, is it possible thru configuration? If not, how?

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

former_member189678
Active Contributor
0 Kudos

Hi,

Open the component PRD02QR from the transaction BSP_WD_CMWB. Navigate tot he Search view. Click on the configuration. Click the change button. Unselect the "Status" field from the displayed parameters list.

Save the configuration and run the application.

Regards,

Harshit

Former Member
0 Kudos

Hi All,

Thanks for reply.

Harshit, I still would like to retain the status, as I have maintained new status profile for user status, only that the system default is also attached to the user status as well. How do I get rid of those system status?

In current drop down list of status in product search, it contains :

- To be archived

- Locked

- Deleted

- Archived

- <new status profile >

- <new status profile >

The first 4 need to be hide.

Thanks

Former Member
0 Kudos

Hi,jess:

I completed your requirement in component PRD01QR . My steps are as follow :

1.Go to PRD01QR in TA BSP_WD_CMPWB .

2. Click the button 'Ehance Component' .Write a bsp application name Z* in the popup windows .

3.click next .

4. Go to view PRD01QR/search .

5.Right click the view and click the "Ehance" ,then you can see a custom controller class ZL_PRD01QR_SEARCH_IMPL .

6. Double click the class ZL_PRD01QR_SEARCH_IMPL then find the method GET_DQUERY_DEFINITIONS .

7 redefine the method and write the code as follow :(hide all status except "locked") :

call method super->get_dquery_definitions
    receiving
      rt_result = rt_result.

  data : rs_result type crms_thtmlb_search_field_info ,
         rs_ddlb   type crms_thtmlb_search_ddlb_nvp .

  clear rs_result .

  loop at rt_result into rs_result where  field = 'STATUS' .


    delete rs_result-ddlb_options where key ne 'I1103' .

    modify rt_result from rs_result .
  endloop .

8. OK,pls test it .

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks XiaoMing.

Actually I am looking for this class ZL_PRD02QR_SEARCH_IMPL. You have helped me to locate it.

Instead of make change in GET_DQUERY_DEFINITIONS. I have made changes in method

GET_VH_STATUS which is more easier and appropriate. But your reply has linked me indirectly to the solution. Thanks a lot. Marks again assigned to you and Harshit. Thank You.

Former Member
0 Kudos

Hi,jess:

Do you want to deactive the product in the product search WEB? in the search result ?

Or you want to search locked product ?

Regards .