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

VA01-screen

Former Member
0 Likes
955

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

9 REPLIES 9
Read only

Former Member
0 Likes
926

Sub,

I am not sure that can confirm a question in your text... can you please re-phrase your requirements?

Read only

0 Likes
926

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.......

Read only

0 Likes
926

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

Read only

0 Likes
926

In item level we will enter material number.in va01.......

-subha

Read only

0 Likes
926

Order type 'OR'. It will go into create sales order screen............

There in item level material number field.........

-subha

Read only

0 Likes
926

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.

Read only

0 Likes
926

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

Read only

0 Likes
926

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.

Read only

0 Likes
926

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