cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with BBP_PD_MSG_ADD in CHECK badi

Former Member
0 Kudos

Hi all,,

I want to display an error message in the cofnirmation screen bit in the form op a POP UP !

I tried using the FM BBP_PD_MSG_ADD in the CHECK badi but it doesnt display the message in the pop up format!

The strange thing is that the pop up msg is being displayed in the search list screen before I click on CREATE CONFIRMATION button!

I want the pop up msg to be displayed after the user clicks on the next screen after user clicks on create confirmation button...

Please help as to where I am going wrong....

Here is my code:

IF flt_val = 'BUS2203'.
    IF sy-ucomm = 'BUTTON_CHECK'.

REFRESH et_messages.

      CALL FUNCTION 'BBP_PD_CONF_GETDETAIL'
        EXPORTING
          i_guid          = iv_doc_guid
          i_with_itemdata = 'X'
        IMPORTING
          e_header        = lt_conf_header
        TABLES
          e_item          = lt_conf_item.

      LOOP AT lt_conf_item INTO ls_conf_item.


*get the PO # and doc type
        lv_po = lt_conf_header-be_refobj+0(10).

        CALL FUNCTION 'BBP_PD_PO_GETDETAIL'
          EXPORTING
            i_object_id = lv_po
          IMPORTING
            e_header    = lt_po_header.


        IF lt_po_header-process_type = 'ECV' .

CALL FUNCTION 'BBP_PD_MSG_ADD'
              EXPORTING
                i_msgty       = 'W'
                i_msgid       = 'BBP_SC'
                i_msgno       = '014'
                i_msgv1       = text-001
*            i_doc_guid    = iv_doc_guid
                i_field_name  = 'EXPRESS'
              EXCEPTIONS
                log_not_found = 1
                OTHERS        = 2.
EXIT.
ENDIF.
 ENDLOOP.
    ENDIF.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

opened another thread