on 01-18-2011 10:28 PM
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.
opened another thread
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.