cancel
Showing results for 
Search instead for 
Did you mean: 

BADI for stock category during CIF

Former Member
0 Kudos

Hi Experts,

we have two kinds of stocks to be transferred to APO from ECC.

Grade-A & Grade-B

While CIFing we do not want to transfer Grade B category stock (as we do not want to plan for grade B in APO). Please help how can we achieve this? Is there any suitable BADI for this?

Regards,

Guest201

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You filter and delete the unwanted stocks before these are posted in APO.

Please check following CIF user exit - inbound processing in APO.

Stock APOCF011

EXIT_/SAPAPO/SAPLCIF_ STOCK_001

Inbound processing: stock

Or one more BAPI

APOCF027 Customer-Specific Enhancements: Stock Regards ...

Regards

Datta

Former Member
0 Kudos

Hi Datta,

Thanks! How about using the enhancemnt CIFSTK01 from R/3 side (Func Mod- EXIT_SAPLCSTK_001). Will it serve the same purpose?

somnath_manna
Active Contributor
0 Kudos

Standard thumbrule for CIF enhancements in this kind of scenario is to use BADI / Exit inbound to APO.

Reason being this is an APO requirement so it should be inbound to APO. In case there are multiple APO connected system to single ECC system then enhancing exit on ECC side will impact all APO systems.

Somnath

0 Kudos

It's possible to write the user exits on the r/3 side to have different logic for different target APO systems, so the potential for multiple systems is not a strong reason to not use r/3 user exits.

However sometimes you are restricted as the data available in each user exit is different. It's preferable from a performance point of view not to read database tables from within the cif exits, so if the r/3 exit has fields in it that aren't in the equivalent APO exit then it might be preferable to use the r/3 exit even for an APO requirement.

Also, if you need ot read the database it's easier to do the exit in R/3 database if you have to read the R/3 database, and in APO if you need to read APO data

In this case, to decide which one to use my question would be "How do you determine what grade stock is?"

You might not even need a user exit, as you can config different kinds of stock to not be available for planning in APO....

If however it's only possible to detemine the grade of sotck my looking in R/3 you would be better to use the exit in R/3

Answers (0)