cancel
Showing results for 
Search instead for 
Did you mean: 

Function Module for material substitution

Former Member
0 Kudos

Hi Experts,

Please can someone guide me how to find the list of available subsitutes for a given material?

If there is a straight function module it would be nice. Else

list of tables is nice too.

Regards,

Dipender Singh

Accepted Solutions (0)

Answers (2)

Answers (2)

Lakshmipathi
Active Contributor
0 Kudos

Dear Dipender

The table in which the substitute material stores is KONDD and the Field Name is SMATN

thanks

G. Lakshmipathi

Former Member
0 Kudos

CALL FUNCTION 'PRODUCT_SUBSTITUTION'

EXPORTING

application = 'V'

date = v_val_date

dialog = space

header_communication = s_header_com

item_communication = s_item_com

scheme = s_tvak-kalsu

TABLES

konddp_data = i_konddp.

Former Member
0 Kudos

Hi,

You can see the list of substitutes for a given material using VB13 directly. Let me check about the tables and function modules .

Regards,

Ajit

Former Member
0 Kudos

Thanks Ajit, but unfortunately Tcode will not serve the purpose.

I need to use the FM in a code to find the material subsitutes.

Just for info. the program which we are building is a Custom based ATP. WHich will take a material and quantity as input and , first get all the subsitutes for that material.

Then program will check the material availability in the default plant for the cusotmer and then if availability not found then search if some subsitute is available for the requested quantity.

Regards,

Dipender Singh