cancel
Showing results for 
Search instead for 
Did you mean: 

Add a Warning to Purchase Order

Former Member
0 Kudos

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?

Accepted Solutions (1)

Accepted Solutions (1)

kothandaraman_nagarajan
Active Contributor
0 Kudos

Hi Brain Maingi,

Yes. Possible through SP_TN.

Thanks & Regards,

Nagarajan

Former Member
0 Kudos

Hi Naga Rajan,

To my understanding, SP_TN will block the PO from being added. The client wants it to just display a warning message but allow the PO to be added. Is this still possible?

Former Member
0 Kudos

Hi Brian,

You can made it possible by SDK.

kothandaraman_nagarajan
Active Contributor
0 Kudos

Hi Brian Maingi,

You may create an alert after adding your PO to  show the difference in vendor selection.

Thanks & Regards,

Nagarajan

Former Member
0 Kudos

Hi Kamba,

Is that the only way?

Thank you.

Former Member
0 Kudos

Hi Naga,

Actually the warning should appear just after selecting the item in the PO not after the PO has been added. Let me try the SDK route.

Thank you all for the prompt replies.

kothandaraman_nagarajan
Active Contributor
0 Kudos

Hi,

Please close this thread.

Thanks & Regards,

Nagarajan

Former Member
0 Kudos

Hi Brian,

Its the only way

Answers (4)

Answers (4)

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

kothandaraman_nagarajan
Active Contributor
0 Kudos

Hi,

Please check with below thread, it may be useful in opposite way.

http://scn.sap.com/thread/775496

Thanks & Regards,

Nagarajan

Former Member
0 Kudos

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

kothandaraman_nagarajan
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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.

kothandaraman_nagarajan
Active Contributor
0 Kudos

Hi,

Thanks for explanation.

Thanks & Regards,

Nagarajan

Former Member
0 Kudos

Hi Brian,

Yes SDK will solve your prblem and give you what your client wants.

Regards

KennedyT21
Active Contributor
0 Kudos

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/janos.nagy/blog/2009/12/12/how-to-execute-custom-code-via-sptransactionnot...

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