cancel
Showing results for 
Search instead for 
Did you mean: 

Source of supply in PDS.

Former Member
0 Kudos

Hello APO Gurus,

This is regardsing the source of selection in PDS.

I am using a PDS , which has two source of supply. One contains Mill resource and other contains FIN

Resource.

I want system to select always Mill source , but system is selecting Fin Source.

Following things are done ,

I have updated the priority zero in MILL resource but still system is not considering the priority and selecting the FIN resource.

Please let me know , How can we set the system so that Mill resorce will be selected always by default and as per the user requirement user will select the FIN resource.

Waiting for reply.

Ravi

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Ravindra,

You can modify the capacity of MILL resource as very high and FIN resource as very low and retry

Please confirm

Regards

R. Senthil Mareeswaran.

Former Member
0 Kudos

Hi there,

Which planning functionality are you using? Is it heuristic, optimizer..? Optimizer always use cost effective resource.

Regards,

Satyajit

Former Member
0 Kudos

Hi,

I am using Heuristic , not using Optimizer.

But I do not understand why source of supply selection following things are not working,

1. Use of priority in PDS

2. Quota arrangement

In both the above things , I have specified ' Mill ' resource.

But system is still selecting the FIN resource.

Do we need to implement Addinally SAP notes to use either priority in PDS or Quata arrangement.

Can anybody throw more light on this ?

Regards,

Ravi

Former Member
0 Kudos

Whats the Lotsize maintained in both? is it same or different...

Former Member
0 Kudos

Hi ,

Lot size maintained in both is same.

regards,

ravi

Former Member
0 Kudos

Please check if the PDS for Mill resource is active and assigned to the model. If so then maintain the procurement priority for FIN resource as 999. This should solve your issue

Former Member
0 Kudos

Hi Sai,

Thanks for your answer.

I kept priority of the ' Mill' Resource as '0' and Priority of the 'FIN' resouce as 999.

But still system is selecting the 'FIN' resource.

I am not getting , why priority is not working as per documentation.

Regards,

Ravi

Former Member
0 Kudos

If system considers the PDS inspite of its priority 999 means its not considering the other PDS. Can you please do one quick testing. Deactivate the FIN PDS and check how the system is responding.if the system still does not consider the MIll PDS then there is some issue with that PDS.

Former Member
0 Kudos

Hi Sai,

Delivery date with 'FIN' resource is better than 'Mill' and system is selecting a resource with Better Delivery date.

So , that could be the reason priority is not working.

Please let me know your opinion, about implementing BADI: /SAPAPO/PWB_SOS

Regards,

Ravi

Former Member
0 Kudos

Unfortunately I did not implement that BADI earlier. Lets wait for other responses on this.

Former Member
0 Kudos

APO Gurus,

Can you guide me for implementing the Badi , /SAPAPO/PWB_SOS

Waiting for replies.

Regards,

Ravi

Former Member
0 Kudos

Type in the badi name in search options, you will get threads regarding this badi

Former Member
0 Kudos

Hi,

Here is some helpful documentation. Sorry for copy pasting.

/SAPAPO/PWB_SOS

Title

BAdI: Change Source Determination

Use

This Business Add-In (BAdI) is used in the component Sources of Supply (SCM-APO-MD-SRC).

It enables you to do the following for the "valid sources of supply" determined by the system:

Change the sorting

Change the data for a source

Example

The system is to take the valid sources into account as follows:

When a procurement order is created in the background, sources with the procurement priority 3 are not to be taken into account.

When a procurement order is created in dialog mode, sources with the procurement priority 3 are to be displayed as additional procurement alternatives.

To achieve this result, proceed as follows:

In mode P (planning in the background), filter out the sources with the procurement priority 3 by deleting such sources from the table CT_SOURCES_EXTEND.

The parameter IV_LOW_LEVEL_CODE within the method PWB_USEX_SOS indicates whether the BAdI has been called up within the determination of the low-level code. If so, the parameters IV_MINLS and IV_MAXLS are not filled.

Standard settings

This BAdI is not active in the standard system supplied.

This BAdI can be used multiple times.

Activities

INCLUDE BADI_IMPLEMENTATION OBJECT DOKU ID TX LANGUAGE EN

See also

Methods

Sorting and/or Restriction of Source Selection(PWB_USEX_SOS)

Sorting and/or Restriction of Source Selection

Title

Sorting and/or Restriction of Source Selection (PWB_USEX_SOS)

Functionality

This method enables you to influence the source determination process.

Parameters

IV_MODE Source determination

This parameter indicates the mode in which the source determination process is invoked:

Mode P for planning in the background

Mode D for dialog (manual selection of a source of supply)

IV_PLAN_USAGE Plan usage

This parameter indicates the plan usage for which the source determination process is invoked:

Plan usage ' ' for PP/DS and SNP

Plan usage P for PP/DS

Plan usage S for SNP

CT_SOURCES_EXTEND Table Extended Source-of-Supply Structure /SAPAPO/SOURCES_EXTEND

This table contains the valid sources that have been determined by the system.

Reading of Source (PWB_USEX_SOS_ORDER_TRPID)

Read Source of Supply (PWB_USEX_SOS_ORDER_TRPID)

Functionality

This method enables you to change the source data when reading the source of supply.

Parameters

CS_SOURCES Source of supply from TRPROD and TRPRODM/TRM and quota arrangement

CS_TPSRC External procurement relationship

CT_SOURCES Table for sources of supply (/SAPAPO/SOURCES)

CT_TPSRC Table for external procurement relationships (/SAPAPO/TPSRC)

Answers (1)

Answers (1)

Former Member
0 Kudos

thanks to all for inputs

ravindra