03-02-2015 7:47 PM
Hi experts,
I need to put a validation in transactions VF01, VF06 and VFX3 to check if a VBAP indicator is already set. If it is set then ok to proceed but if not, display an error message.
Do you know a common BADI or user-exit that these 3 transaction are using where I can put the validation?
Thank you very much in advance.
Regards.
Mike
03-03-2015 12:19 PM
Hi Mike ;
Can you check RV60AFZC include ? This is used to fill vbrk-vbrp tables.
Regards.
M.Ozgur Unal
03-03-2015 8:33 AM
First execute SPRO, and navigate to Sales and Distribution, System Modifications, System Modifications, User Exits, User Exits For Billing. Or in online documentation : System Modifications, User Exits, User Exits For Billing. (Fell free to navigate thru the document tree)
Regards,
Raymond
03-03-2015 9:53 AM
Hi,
Please see those links. I think it is helpful for you.
http://wiki.scn.sap.com/wiki/display/ERPLO/SD+User+exits
http://scn.sap.com/thread/1033098
Regards,
Nilesh
03-03-2015 12:19 PM
Hi Mike ;
Can you check RV60AFZC include ? This is used to fill vbrk-vbrp tables.
Regards.
M.Ozgur Unal
03-03-2015 1:39 PM
Thank you for your responses.
I was looking for the specific user-exit or BADI, in case anybody here encountered same requirement before. Already put break-points in a lot of user-exits but my debug is not stopping in them, need to put my validation before any postings are made. Found 3 BADIs (BADI_SD_SALES_BASIC, BADI_SD_TO_FM, BADI_SD_BILLING) that's being used but checking further, they are for SAP internal use only.
Will further debug the transactions and will put break-points in the user-exits. Good thing is VF06 is calling VFX3, so I know that they use same user-exits/BADIs... just need to find a common one with VF01 before any postings are made.
Will consider your suggestions above and will let you know how it goes. Thanks again.
03-04-2015 6:20 AM
Hi Mike,
You create enhancement point in Include program "MV60AF0K_KOMFK-VBELN_PRUEFEN" with in subroutine "form komfk-vbeln_pruefen." . Put your logic and get the result.
Please see the attached screen shot
Regards,
Nilesh
03-04-2015 8:38 PM
Thanks for all your help.
I think enhancement point will work as well but I chose to use RV60AFZC (user-exit of VF01) because there are already existing custom codes there (in my company) and the data (VBAK and VBAP) I need are available there. Both VF06 and VFX3 call VF01.
Thanks again to all. Best regards.