on 06-12-2013 2:51 PM
Hi,
I would like to add a warning message to a Purchase Order if the preferred vendor of the item selected is different from the Business Partner for the Purchase Order.
Is this possible?
Hi Brain Maingi,
Yes. Possible through SP_TN.
Thanks & Regards,
Nagarajan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi all,
I have done it via SDK. I just thought there was a way to do it without having to use SDK.
Thank you all for the input.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi. Brian Maingi
Could you please tell me if only one item is selected on purchase order OR multiple items can be selected ?
Once you answer it, I will be in position to tell you some workaround for it.
Thanks
Sri Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please check with below thread, it may be useful in opposite way.
http://scn.sap.com/thread/775496
Thanks & Regards,
Nagarajan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Naga,
Thank you for the link, but the client doesn't just order the items only from the Preferred Vendor. They can order the goods from other suppliers in cases where the preferred vendor doesn't have enough stock. So they just want a warning to the user that the item is not being ordered from the preferred vendor. But it should still allow the PO to be added.
Regards
Hi,
Thanks for explanation.
Just for clarification;
1.How the user know the stock of preferred vendor?
2. Is there is field indicating stock value of preferred vendor?
What I am trying say is that, the user may be ignore the error message even the vendor have sufficient stock.
Thanks & Regards,
Nagarajan
Hi Naga,
1. They usually send a PO to the preferred vendor. Then that vendor replies and says this item(s) is not in stock. Then the client raises another PO to a different supplier who isn't the preferred vendor.
2. There is no field indicating the stock of the preferred vendor.
That is exactly what the client wants. They just want a warning/alert that this item(s) is not being ordered from the preferred vendor. Just a simple message/warning but the PO should still be added.
Thank you for the prompt replies.
HI Brian Maingi...
Yes It is Possible By using the Store procedure transaction notification..
Transaction Notification
The SP_TransactionNotification is the only legal way in SAP Business One to receive notification of data-driven events - in order words to do some validation in SAP Business One and prevent the user from doing an action if the validation condition fails. This stored procedure(SP) is created automatically with each database.
check with the Links for help
http://scn.sap.com/people/lisa.mulchinock/blog/2009/05/22/the-sptransactionnotification-stored-proce...
SBO_SP_PostTransactionNotice and SBO_SP_TransactionNotification can by edited by the user to add sql code as part of a notification process. The functionalities of both are the same, the only differences being when they are triggered and the ability to use the @error functionality of SBO_SP_TransactionNotification to rollback transactions. SBO_SP_PostTransactionNotice can only be triggered at the end of an action (transaction committed). It is preferable to use SBO_SP_PostTransactionNotice - although as this occurs after the transaction, the @error rollback functionality can not be used.
Hope Helpful
Regards
Kennedy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
104 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.