cancel
Showing results for 
Search instead for 
Did you mean: 

Ordering error in process POs

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi Naga,

You can ask your Technical consultant prevent ordering of PO, then they will code accordingly.

Hope this will help you.

Former Member
0 Kudos

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

Former Member
0 Kudos

Sachin,

Thanks 4 ur reply. I did the changes but still it is allowing the user to order the PO.

Any more inputs ?

Or, can we disable the button 'Order' once the system shows the error messages after clicking 'Check' button. Any suggestions on this ?

Thanks

Naga

Former Member
0 Kudos

System is still allowing the user to order PO even after showing error messages after clicking on 'Check' button in process purchase order trans.

Any more inputs on this ??

Thanks

Naga

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi ,

If the problem is just UI,that you dont want user to click on order when there r errors,then disabling or hiding the button is good idea asu suggested.For hidding the button there r many ways.How to do will depend on the UI technology u r using ?

Regards,

Abhishek