‎2009 Apr 01 12:07 PM
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
‎2009 Apr 01 12:10 PM
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
‎2009 Apr 01 12:18 PM
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
‎2009 Apr 01 12:58 PM
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
‎2009 Apr 01 1:03 PM
Hi Pavan,
Do you have a sample coding for this.
If you have worked on this let me know.
Thanks,
Nikhil.
‎2009 Apr 03 6:49 AM
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
‎2009 Jul 13 5:06 AM