cancel
Showing results for 
Search instead for 
Did you mean: 

BID powl, how to add new field to search criteria?

sergey_tuzov
Explorer
0 Kudos

Dear comrades,

Would anybody be able to describe how to add new field to the search criteria of BID POWL ?

SRM 7.0 version.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Do the following:

1) Implement the /sapsrm/bd_powl_chng_selcrit Enhancement spot and enhance the return structure with the custom fields you want to add. Make sure you pass the right table name/field names and data types. There are several possibilities you can give for the way you want the search to happen - Dropdown o Input or Checkbox with multiple select etc. Make sure that you give the right filters for this implementation especially the right values for APPLID and POWL_TYPE otherwise the badi implementation will not be invoked in runtime.

2) Next, enhance a structure identical to /SAPSRM/S_SEARCH_FIELDS_BUPA --> this structure is for Business partner, you can find identical one for BID (probably /SAPSRM/S_SEARCH_FIELDS_DOUT)

3) Next, go to class /SAPSRM/CL_PDO_SO_SEARCH_RFQ and do an implicit enhancement to the method /SAPSRM/IF_PDO_SO_SEARCH_RFQ~GET_RESULT. In the implicit enhancement towards the end, you can add your own logic to filter the search result based on the input custom fields.

Award points if helpful.

Regards,

Vijay

Answers (1)

Answers (1)

Former Member
0 Kudos

We are trying to delete few fields from Search Criteria of the Shopping Area POWL. Can you tell me how to do it please?

thanks

Krishna

sergey_tuzov
Explorer
0 Kudos

Dear Krishna.

Could you please write which exactly business object powl fields you wish to remove?

Available for editing POWL search criteria busines objects is the following:

AUC for Auction

BID u2013BidInvitation

CONF u2013Confirmation

CTR u2013Contract

INV u2013Invoice

PO u2013Purchaser Order

QUOT u2013Bid Response

SC u2013Shopping Cart.

Changing of some other business object POWL search criteria is not possible because of the NOTE 1271424.

Sincerely yours, Sergey Tuzov.

sergey_tuzov
Explorer
0 Kudos

Dear Krishna.

The steps for adding new business object search criteria field for Shopping Cart is the following:

First step: Append the field to structure /SAPSRM/S_SEARCHFIELDS. To do so, create an append structure in SE11 and enter the new field there. This can be done either directly or by including another structure that contains the new field (recommended).

Second step: SM30 view /SAPSRM/V_SRC_CR: enter the field for BO / BUS2121 / DB. The Criterion Type must be suitable for the type of that field.

Third (final) step: Maintain DB criteria in transaction /SAPSRM/POWL_CUST The Criterion Type must be the same as in view /SAPSRM/V_SRC_CR (second step). The Parameter Type must be suitable for the type of that field - input field is o.k. in general, other depending on the fieldu2019s DDIC type.

So, to remove search criteria field you should execite those steps in the reverse direction.

Sincerely yours, Sergey Tuzov.

former_member206439
Contributor
0 Kudos

Would anybody be able to describe how to add new field to the search criteria of Business Partner serach screen?

SRM 5.5 version.