cancel
Showing results for 
Search instead for 
Did you mean: 

Facing Issue with SAP SRM Live Auction Badi BBP_LA_BID_VALIDATE

0 Kudos

Hi Team,

We have implemented BBP_LA_BID_VALIDATE and e-valid is set to 'C' as per SAP Note 1311690(As per SAP Note We want to bypass Standard Error messages ).

In the config we selected the "Customer Specific Rule" option and Also, the e-valid is set to 'C'.

While creating auction using Buyer's id we also selected "Customer Specific Rule" from the drop down list. Auction was published.

Bidder while creating Live auction entered the Bid Price similar to Start Price or greater than Start Price and clicked on the Submit button. Here after the pop-up window appears and then later nothing happens. Submit button is also getting greyed out. The prices are neither accepted nor rejected .

Please help with this.

Regards,

Manish

View Entire Topic
Ajith_Nair
Explorer

Hi Manish,

Faced the same, when I was working on forward auction to throw custom message.
Once you place E_VALID as C, Kindly follow the below steps to throw error inside the BADI BBP_LA_BID_VALIDATE and in method VALIDATE_BID itself, such that the issue of submit button getting greyed out is solved as well you are able to throw a customizable message.

Hope after this your issue is resolved.

data: lt_client_guid TYPE TABLE OF BBP_GUID_TAB,
      lv_timestamp type TIMESTAMPL,
      lv_TIMEZONE TYPE  TZNZONE.
if e_valid = 'C'.
      CALL FUNCTION 'BBP_LA_UTILITY_GET_TIMESTAMP'
         IMPORTING
           E_TIMESTAMP       = lv_timestamp
           E_TIMEZONE        = lv_timezone.
*
    CALL FUNCTION 'BBP_LA_MSG_CLTAUC_V_GETLIST'
    EXPORTING
      I_AUC_GUID              = IS_auction_item-auction_header_guid
      I_PARTNER_GUID          = is_bid-partner_guid
    TABLES
      ET_CLIENT_GUID          = lt_client_guid.
*
      CALL FUNCTION 'BBP_LA_MSG_MESSAGE_CREATE'
    EXPORTING
      I_REFERENCE_GUID       = is_auction_item-auction_item_guid  "IS_BID-AUC_ITEM_GUID
      I_MESSAGE_TYPE         = '3'
      I_MSGTY                = ''    "" no need to put type E, sap will handle it
      I_MSGID                = 'ZSRM' ""put your z message class
      I_MSGNO                = '028'  """ message number
*      I_MESSAGE              = lv_msg  "" optional parameters
*      I_MSGV1                = lv_msgv1 "" optional parameters
*      I_MSGV2                = lv_msgv2  "" optional parameters
      I_TIMESTAMP            = lv_timestamp
      I_TIMEZONE             = lv_timezone
    TABLES
      IT_CLIENT_GUID         = lt_client_guid.
endif.