2008 Dec 20 9:59 AM
Dear Auto wizards,
The std VMS has one doc type for a sales order. if I want to provide the user to make a choice of the sales order doc type, where should i head for making the setting?
I guess it would be some BADI.
Please do enlighten.
Regards,
Tariq
2008 Dec 23 8:26 AM
Hello Tariq,
please refer to note 903913 regarding writing and enhancing actions in VMS.
In a nutshell, I think you need to do the following things:
1.)
replace the action subscreen of CUOR so that you can add the field for the sales order type
2.)
enhance structure VLCACDATA (if the field isn't available already anyway) to transport the information from the UI to the action function module
3.)
implement BAdI "vlc_cuor_execute" to forward the information to the sales order BAPI
This might not be the complete list of things to do, so please read the cookbook attached to the note.
Kind regards,
Steffen
2008 Dec 23 8:26 AM
Hello Tariq,
please refer to note 903913 regarding writing and enhancing actions in VMS.
In a nutshell, I think you need to do the following things:
1.)
replace the action subscreen of CUOR so that you can add the field for the sales order type
2.)
enhance structure VLCACDATA (if the field isn't available already anyway) to transport the information from the UI to the action function module
3.)
implement BAdI "vlc_cuor_execute" to forward the information to the sales order BAPI
This might not be the complete list of things to do, so please read the cookbook attached to the note.
Kind regards,
Steffen
2009 Jan 02 12:42 PM
Hi Tariq,
Most of the times, in VMS, we dont use the standard actions provided by SAP, becos of the need for new validations, custom processes etc. So, in those cases, we need to copy the existing action and create a new action. Also we have to copy the BADI ( we have enabled actions through FMs, prepare, execute and history FMs) or FM whatever is applicable and change it to our reqmt. Once this is done, we can link the action to the action matrix and start running the functionality