cancel
Showing results for 
Search instead for 
Did you mean: 

Validation for Custom Input field Create RFx Screen

Former Member
0 Kudos

Hi friends,

Can any one please tell me the BADI name to validate custom input field in RFx Screen

Thanks

Kumar

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Try BBP_DOC_CHECK_BADI

Regards,

Marcin

Former Member
0 Kudos

Hi Marcin, Thanks for ur reply

i have added one custom input field ( Min Tendors Required ), i want to validate this field, i want to find out the value of this input field, so that i will write logic in that badi what u specified , i gave points for ur earlier answer

can u please help me

Thnx

Kumar

Former Member
0 Kudos

Hi,

You can write something like this:


  DATA: ls_ctr_header TYPE bbp_pds_ctr_header_d,
        ls_message    TYPE bbp_smessages_badi,
        lf_dummy      TYPE c.

  CALL FUNCTION 'BBP_PD_CTR_GETDETAIL'
    EXPORTING
      i_guid   = iv_doc_guid
    IMPORTING
      e_header = ls_ctr_header.

  IF ls_ctr_header-zagreement_cat IS INITIAL.
    MESSAGE e010(zcust_message) INTO lf_dummy.

    CLEAR ls_message.

    ls_message-msgty = sy-msgty.
    ls_message-msgid = sy-msgid.
    ls_message-msgno = sy-msgno.

    SELECT SINGLE text
      FROM t100
      INTO ls_message-message
     WHERE sprsl = sy-langu
       AND arbgb = sy-msgid
       AND msgnr = sy-msgno.

    APPEND ls_message TO et_messages.
  ENDIF.

In this BADI i've check contract field Agreement category (ZAGREEMENT_CAT) on header level.

If it's initial add message to export tab et_messages.

Regards,

Marcin