on 02-03-2009 3:23 AM
Hi,
Is there any way that system should not allow the user to order the error in process PO as the error messages are displaying when clicking on 'Check' button bt still it allows the user to order for the same.
Any suggestions please.
Thanks
Naga
Hi,
As for as i know, there is no need to disable the order button in the SC.In the DOC_CHECK badi for the business object BUS2121,method BBP_DOC_CHECK..
go to signature there you can see the "et_messages" field, make the necessary coding and after that append the error message.
ls_message-msgty = c_e.
ls_message-msgid = c_bbppu.
ls_message-msgno = c_001.
ls_message-msgv1 = text-102.
ls_message-item_guid = ls_item-guid.
APPEND ls_message TO et_messages.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Naga,
You can ask your Technical consultant prevent ordering of PO, then they will code accordingly.
Hope this will help you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Can you check the badi "bbp_doc_check_badi" method "BBP_DOC_CHECK" for Business Object BUS2201.
Here you can check your condition and if condition failed you can pass the error message to the internal table "et_messages"
for exp.
data: ls_messages type BBP_SMESSAGES_BADI,
lt_messages type table of BBP_SMESSAGES_BADI.
IF ls_partner_fct is initial.
ls_messages-msgty = 'E'.
ls_message-msgid = 'ZSM'.
ls_message-msgno = '001'.
append ls_messages to lt_messages.
endif.
after all this system will not allow the user to do any thing until the error removed.
Regards,
Sachin
Hi Naga,
I am assuming that on check button,in the badi somewhere ,PO is simulated in backend,so as to check if there are any errors from the backend as well apart from the SRM errors.But it should not be transfered to backend on check.This is faulty.Po should be transfered in actual only on order button.
Please correct that transfer of PO FM's should not be called on check.
Best Regards,
Abhishek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.