2008 Nov 28 11:35 AM
Dear Experts,
we have requiremet that while creating SO (VA01) for each item it sould show the message (Popup Screen) about Total Stock & Total Open Oder quantity for that material when user enters the material, plant & storage location in line item.
Please let me know your ideas in detail if anyone knows about this....
Thanks in Advance
Best Regards
Venkatesh
2008 Nov 28 11:43 AM
hi,
you will need a user_exit or find a BADI for this purpose....
Search one as it will need some time.
ags.
Dear Experts,
we have requiremet that while creating SO (VA01) for each item it sould show the message (Popup Screen) about Total Stock & Total Open Oder quantity for that material when user enters the material, plant & storage location in line item.
Please let me know your ideas in detail if anyone knows about this....
Thanks in Advance
Best Regards
Venkatesh
2008 Nov 28 11:43 AM
hi,
you will need a user_exit or find a BADI for this purpose....
Search one as it will need some time.
ags.
2008 Dec 01 1:17 AM
Hello Venkatesh,
You can use userexit USEREXIT_MOVE_FIELD_TO_VBAP in include MV45AFZZ. This user exit is executed every time the user enters item data and hits return. The VBAP data is available in structure xvbap.
xvbap-kwmeng contains the ordered qty. for that item
xvbap-kbmeng contains the confirmed qty. for that item
I am not so sure in regard of the available stock qty. because it depends on your stock set up (e.g. batch stock, etc.) but you should be able to figure that out.
Just check, if the required xvbap fields are populated and then raise the popup which displays the information to the user.
Hope that helps,
Michael
2008 Dec 01 4:10 AM
Hello Michael,
The purpose of this is to display Available Stock = Total Stock (MARD-LABST) - Total Open Order Quantity (VBBE-OMENG) when user enters the Material No, Plant and Storage Location while creating Sales Order, this is because to know the user whether stock of the material is available or not for the specific Plant and Storage Location.
please let me know if know the suitable exit for this requirement.
Best Regards
Venkatesh
2008 Dec 01 4:18 AM
Hi V ,
in addition to Michael , u can use program MV45AFZZ , to raise popup message after going all ur validations , check for form DOCUMENT_PREPARE, but one thing u need to know is , dont raise any error msgs , If you raise error msgs , user cannt change the values in that screen.
regards
Prabhu
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |