‎2006 Jan 26 6:39 PM
If the primary material has sufficient stock available for sale, (Material substitution)popup will not display(USED VOFM routine to achieve this). BUT, user should be notified that substitutes exist./(in VA01). If the notification (button, icon, or similar) is active, the user will have the ability to manually click the notification to display the popup. Also, if the user highlights a line item previously entered, the notification described above will be activated.
Guide please.......
-suba
‎2006 Jan 26 7:51 PM
Sub,
I am not sure that can confirm a question in your text... can you please re-phrase your requirements?
‎2006 Jan 26 7:58 PM
If the material has sufficient stock available for sale, (Material substitution)popup will not display(USED VOFM routine to achieve this). BUT, user should be notified that substitutes exist. If the notification (button, icon, or similar) is active, the user will have the ability to manually click the notification to display the popup. Also, if the user highlights a line item previously entered, the notification described above will be activated.
In VA01 screen i need to put Notification button or icon if material substitution exists for the material entered in Va01. if user click that notification button then Material substitution Popup window should display!..
AM i clear now? How can i achieve this?? Will Appreciate help
-subha
Guide please.......
‎2006 Jan 26 8:16 PM
Hi Subha
I can see only following fields on the initial screen in VA01. where do u want to enter the material?
Order Type
Sales Organization
Distribution Channel
Division
Sales Office
Sales Group
-Santosh
‎2006 Jan 26 8:20 PM
In item level we will enter material number.in va01.......
-subha
‎2006 Jan 26 8:32 PM
Order type 'OR'. It will go into create sales order screen............
There in item level material number field.........
-subha
‎2006 Jan 26 8:36 PM
Sub,
If you are using R/3's product substitution (not prod subs from APO/GATP) and a newer version of R/3, you can "kind of" achieve your requirement with out-of-the-box functionality.
From the menu bar in VA01, choose Env > Analysis > Material Determination. Make sure that this is set to ON.
Then... when a line is added or changed, and that product has an active product sub on it... the material determination record will be exposed to the user for review.
‎2006 Jan 26 9:14 PM
Already material substitution Popup window is Displaying when material have substitution. but whenever enter required quantity is lessthen ATP quantity then Popup should not display.Then that time Some notification should display in VA01 screen to tell user material substitution exist for this material, then If user wants to see that Material substitution Popup then user can able to click that button manually after that popup will display...
Any ideas? how can achieve this?
-subha
‎2006 Jan 26 10:00 PM
If it is possible to summarize these subs at order save time, the quickest would be to add code to userexit_save_document_prepare in INLCUDE MF45AFZZ.
In there, you can analysis each item in table XVBAP and react accordingly. Either a pop-up for each item that has been impacted or a pop-up with all lines at once.
From the pop-up, you could then use CALL TRANSACTIONs to expose the prod sub records.
‎2006 Jan 26 10:18 PM
Let me put this way. Now if material substitution is avialable for the material then I am giving warning message in the bottom of the screen saying "Material substitution available". Is it possible if user click that message can i make material substitution window to display" -- this is my exact requirement. I need to give some user input. If user needs can see the popup otherwise not???????? Having any sample code?
Thanks,
subha