cancel
Showing results for 
Search instead for 
Did you mean: 

Exclude TLANEs w/priority 999 from planning

Former Member
0 Kudos

hello All:

We have a requirement where we want to exclude TLANEs with priority 999 to be considered during SNP planning, appreciate any idea in order to achieve this.

Thank you in advance.

Sayeed

Accepted Solutions (0)

Answers (1)

Answers (1)

rajkj
Active Contributor
0 Kudos

Hi Sayeed,

The easiest way to block a given T.lane is to set the block indicator as locked (t.code /sapapo/scc_tl1). With 'locked' status, SNP planning engine does not consider the given t.lane for planning.

Thanks,
Rajesh

Former Member
0 Kudos

Rajesh:

Thanks for the reply, let me give further background to this requirement.

We have 2 plants, plant A and B. The product P mainly goes from A to B, but some time has to be brought back to plant A. So we create another TLANE from B to A (cyclic relationship) which we suppress by enhancement so that LLC will not pick it up.The TLANE from B to A is prioritized at 999 but we dont want anything to be planned by SNP heuristics but rather use it on adhoc basis when required as such we cant block it.

Let me know if you have any questions.

Thanks

Sayeed

rajkj
Active Contributor
0 Kudos

Sayeed,

You can try BAdI '/SAPAPO/PWB_SOS' (method PWB_USEX_SOS). This allows you to restrict the source of supply selection. Pl check the BAdI documentation for details (t.code SE18). In fact, the documentation provides an example very much similar to your case.

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_MODESource 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_USAGEPlan 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_EXTENDTable Extended Source-of-Supply Structure /SAPAPO/SOURCES_EXTEND

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

Type - /SAPAPO/SOURCES_EXTEND_TAB. This structure has a filed SPRIO that has been assigned with

procurement priority. You can use it as a filter to delete those records with procurement priority as 999.

Cheers,
Rajesh