Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Function Module for Material Exclusion

Former Member
0 Likes
2,536

Dear Experts,

I have a scenario where I have to exclude a particular material for a certain customer number in a program which is similar to Sales Order VA01.

For eg I have to exclude material number 61234 for Customer Number 12345.

I have to built a Function Module which is similar to PRODUCT_LIST_EXCLUSION where I can exclude this material.

I want to use this Function Module in my ZProgram which is done for quick sales order

Has anyone worked on such kind of issue.

Please help,

Thanks,

Nikhil

6 REPLIES 6
Read only

Former Member
0 Likes
1,527

Hi,

better u maintain a Z table, which should contains the material no's to be excluded for the customer no..

Hope it helps!!

Regards,

Pavan

Read only

0 Likes
1,527

Hi Pavan,

I am maintaining a Ztable too but these material numbers and customer number are taking from the standard master tables.

There is issue where the Function Module cant be similar to PRODUCT_LIST_EXCLUSION since this standard program are using many internal tables which are not in my ZProgram.

May be you can understand better when you see my Zprogram.

Thanks,

Nikhil

Read only

0 Likes
1,527

Hi,

my suggestion is try to avoid calling FM, get all the records from required tables then exclude the material maintained in Z table.

Hope it helps!!

Regards,

Pavan

Read only

0 Likes
1,527

Hi Pavan,

Do you have a sample coding for this.

If you have worked on this let me know.

Thanks,

Nikhil.

Read only

Former Member
0 Likes
1,527

Dear Experts,

I am working on a program similar to sales order for material exclusion where I want to exclude a material for a particular country or sold to party.

If there is a program who has generated using this particular Function please post it to me.

Thanks,

Nikhil

Read only

Former Member
0 Likes
1,527

solved