cancel
Showing results for 
Search instead for 
Did you mean: 

Heuristic run @ destination location is creating the purchase requisition without source plant

Former Member
0 Kudos

Hello All,

Trust you are doing well.

Believe this is the good time to connect with you all get some advice on the below mentioned scenario:

  

Material (XXXXXX) is discontinued at source location (Plant specific material status: 90) but the same material
(XXXXXX) is still used in destination location (plant specific material status: 60). Here heuristic run @ destination location is creating the purchase requisition without source plant.

  

Here the customer expectation is that “SNP should not create the order, since the material is discontinued in source plant”

Could you please advise?

Regards,

Prabin

Accepted Solutions (1)

Accepted Solutions (1)

marianoc
Active Contributor
0 Kudos

Hi Prabin,

One possible simple solution would be:

- Maintaining the material status in the iModel variant for your materiasl and purchase requisitions imodels. By doing this, you won't generate the iModel if the status is 90.

The SNP will still create the requisition, but will give you an error.. or will create the requisition without the source.

Kind Regards,

Mariano

Former Member
0 Kudos

Dear Mariano,

Thank you for your input.

Yes. I have already maintained the material status in the integration model. Pls refer the screen shot

Agreed with your second line "The SNP will still create the requisition, but will give you an error.. or will create the requisition without the source"

Yes. Exactly this is the issue. Customer doesn't want the SNP to create requisitions for the  discontinued material (status is 90 @ source location).

Pls advise.

Regards,

Prabin

marianoc
Active Contributor
0 Kudos

Hi Prabin,

Let me try to understand a bit more:

If the material is active in APO in both locations, the SNP will create the requisition and assig the source in APO. When this requisition is transfer to ECC, you should have an error.. right? Then when the error is reprocessed you can delete the orders.. the problem is that you want to automatically block the generation of orders.

If this is the case, then you will need to exlcude the material from the SNP.. the problem is that this will need to be done manually or with an enhancement. Is a problem to exlude these materials from the SNP run at the target location manually?

Kind Regards,

Mariano

Former Member
0 Kudos

Hi Mariano,

Yes, you are right. but the problem is to exclude these materials from the SNP run at the target location manually is a difficult job. since, we doesn't know what are the materials going to get discontinued at source location in near future. Is any option we can automate via enhancement?

Thank you for your valuable inputs.

Regards,

Prabin

marianoc
Active Contributor
0 Kudos

Hi Prabin,

You can change the SNP profile to NO PLANNING automatically and exclude the target location from the SNP run. Maybe you can try using Badi: SMOD_APOCF005.

This is what I would do:

1- Do not exclude the status 90 in the iModel.

2- Then when you change the status in order to discontinue a material at the source location you will be changing the status from 60 to 90 and you will CIF this modification to APO. At this time, I would use the BAdI: SMOD_APOCF005 to identify this situation. You will need to add a code in order to identify what are the possible target plants of your source plant and you will need to change the SNP Profile at the target location.. look for a BAPI for this...

Take a look of this document to see an example code of SMOD_APOCF005:

Kind Regards,

Mariano

satish_waghmare3
Active Contributor
0 Kudos

Hi Prabin

You will need BAPI_MOSRVAPS_DELEMULTI. Using this you can delete planned orders/preqs with no source of supply.

Please check.

Thank you

Satish Waghmare

Former Member
0 Kudos


Hi Mariano,

Thank you for your helpful answer.

Could you please provide some more clarity and guide, where I can change the SNP profile to NO PLANNING automatically.

Thanks.

Regards,

Prabin

marianoc
Active Contributor
0 Kudos

Hi Prabin,

You can use BAPI: BAPI_PRDSRVAPS_SAVEMULTI2. The SNP Profile can be found in the structure: product_location_version.

Check this thread if you want to see an example:

Kind Regards,

Mariano

Former Member
0 Kudos

Hi Mariano,

Which field you were referring as SNP Profile in the structure PRODUCT_LOCATION_VERSION in your previous
reply?

Also can you please suggest what values need to be passed to
this structure for NO PLANNING?

Please advise.

Thanks.

Regards,

Prabin




 
 
 
 
 
 
 
 
 
 
 
 


marianoc
Active Contributor
0 Kudos


Hi Prabin,

With SNP Profile I mean:

Table: PRODUCT_LOCATION_VERSION

Field: SUPPLY_PROFILE

This is the same field that you have in /SAPAPO/MAT1 (SNP 2): /SAPAPO/MATIO-SPREX.

NOPLANNING is a profile that you can maintained to setup a SNP Prod.Horizon of 999.. This way you will skip the material in the SNP run.

Kind Regards,

Mariano

Former Member
0 Kudos

Hi Mariano,

Is it NOPLANNING profile, maintained to setup with SNP Stock transport Horizon of 999 or SNP Prod. Horizon of 999?

Regards,

Prabin

marianoc
Active Contributor
0 Kudos

Hi Prabin,

Yes Sorry..

Both should be 999.

This is the setup:

Kind Regards,

Mariano

Answers (0)