cancel
Showing results for 
Search instead for 
Did you mean: 

SAPSRM_FEEDER_SC Add new search criteria Partner

ashish_shah
Contributor
0 Kudos

Hi All,

I wanted to add a new search criteria in POWL Query :SAPSRM_FEEDER_SC

This search criteria is available on item field as a standard field "Supplier" (technical name BUT000-PARTNER)

I have referred following document

http://scn.sap.com/docs/DOC-25692'.

SAP standard structure/SAPSRM/S_SEARCHFIELDS via append structure option.

Then I have added this fields in view /SAPSRM/V_SRC_CR via SM30.

Than I have added the field in DB criteria and TREX criteria via SPRO and go to Adjust POWL Layout, Search Criteria, and Pushbuttons under Feeder type SAPSRM_FEEDER_SC.

Then I ran Report POWL_D01 and did a refresh.

The field now appears in search criteria, however when i run the POWL query i am getting an error:

Customer selection criterion SUPPLIER is unknown.

This error appears from MAP_SELCRITERIA_BO method of  /SAPSRM/CL_SRC_SERVICE_BASE.

It checks structures

'INCL_EEW_PD_HEADER_CSF'

'INCL_EEW_PD_HEADER_SWF'

'INCL_EEW_PD_ITEM_CSF'

'INCL_EEW_PD_ITEM_SWF'

However this field does not exist in any of these structures since its not a Z field.

Now what do i do to avoid this error and then use this field value in my search result badi?

Regards,

Ashish

Accepted Solutions (0)

Answers (1)

Answers (1)

konstantin_anikeev
Active Contributor
0 Kudos

Hi Ashish,

where have you found a supplier as a standard field?

In Standard supllier is a partner record in linked to SC item, but not an item itself.

As of SRM 7.01 the structure /SAPSRM/S_POWL_RESULT_SC_ITM does not have supplier field.

Regards

Konstantin

ashish_shah
Contributor
0 Kudos

Hi Konstantin,

You are right, the correct field name is "VENDOR".

As you rightly pointed out the structure /SAPSRM/S_POWL_RESULT_SC_ITM does not have this field called VENDOR,

i have added this field in customer include now.

However my search result does not consider this field during the search.

Also the value for field "VENDOR" does not appear in the final result table.

Am i missing anything?

Regards,

Ashish

Message was edited by: Ashish Shah

ashish_shah
Contributor
0 Kudos

Hi Experts,

Any suggestion on this?

Regards,

Ashish

konstantin_anikeev
Active Contributor
0 Kudos

Hi Ashish,

please check your development with mentioned article. In your case it should be the same thing.

Regards

Konstantin

ashish_shah
Contributor
0 Kudos

I have also opened an OSS message.

Will keep you posted.

ashish_shah
Contributor
0 Kudos

Hi Konstantin,

Just trying to clarify my understanding:

In search criteria if i have entered vendor 200000002. 

And if one SC has two line items and both have different vendors one of them is 200000002,

then in the search result should POWL show both the line items or only one with the vendor match?

Regards,

Ashish Shah

ashish_shah
Contributor
0 Kudos

Hi Konstantin,

This is what SAP responded

The vendor search is currently not supported in the standard.

You will have to write your own code to do the search for the

vendor either in BADI /SAPSRM/BD_POWL_CHNG_SEL_RSLT or

as an enhancement in the search.

In your own custom code you might search for the supplier/preferred

supplier using the partner function.

Regards,

Ashish

konstantin_anikeev
Active Contributor
0 Kudos

Hi Ashish,

you have 2 options:

1. use a Vendor as a customer field (fill it in CHANGE-BADI according to assigned values) - then the article will work for you

2. (recommended) - as SAP said, use /SAPSRM/BD_POWL_CHNG_SEL_RSLT to filter the values.

Regards

Konstantin

Former Member
0 Kudos


Hello,

I'am facing a problem whil searching for Shopping carts. Even though I don't set any criteria in the powl search field "time frame", system still only returns SCs created in the last 90 days.

Do you have any Idea plz?