cancel
Showing results for 
Search instead for 
Did you mean: 

Bid Invitatio issues

Former Member
0 Kudos

Hi Experts,

Can you please me to resolve this issue. I am able to publish a bid invitation without adding any items to it. That means I can create a bid with no requirements added regarding the product needs to be bidded by the suppliers.

As a business practise we want to stop the users from publishing bid invitations like this.

Any help will be much appreciated

Vijay

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

You can do this in BADI. Use BBP_DOC_CHECK_BADI and method BBP_DOC_CHECK.

In this method you have incoming value IV_DOC_GUID. Use FM BBP_PD_AUC_GETDETAIL or BBP_PD_BID_GETDETAIL.

When you have E_ITEM table, simply check if there is any item. If not - call a message with error.


  call function 'BBP_PD_AUC_GETDETAIL'
    exporting
      i_guid          = iv_doc_guid
      i_with_itemdata = 'X'
    importing
      e_header        = auc_header
    tables
      e_item          = auc_items.

describe table auc_items lines line.

if line eq 0.
write auc_header-description to l_msgv1.
        call function 'BBP_PD_MSG_ADD'
        exporting
          i_msgty       = c_msgty_e
          i_msgid       = 'ZBBP_BID'
          i_msgno       = 001
          i_msgv1       = l_msgv1
        exceptions
          log_not_found = 1
          others        = 2.
endif.

Regards,

Marcin Gajewski

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Just use FM "BBP_PD_BID_GETDETAIL" in the BAdi "BBP_DOC_CHECK_BADI" for Bid invitation to get the Bid invitation details.

Check for the E_ITEM table .If initial,then throw the message that the "BID INVITATION CANNOT BE PUBLISHED".

BR,

Disha.

Pls reward points for useful answers.