hi experts,
i am get a message problem in bdc after execution of programm
when i get the succes message of a document post it print the message two times
like as doc no. 110000557 is posted in company code 9101
processing completed
processing completed.
plz solve my problem
my code is like this
CALL TRANSACTION 'FBS1' USING i_bdcdata
MODE p_mode
MESSAGES INTO it_messtab.
FORM write_message.
LOOP AT it_messtab INTO wa_messtab .
CLEAR message.
CALL FUNCTION 'FORMAT_MESSAGE'
EXPORTING
id = wa_messtab-msgid
lang = 'EN'
no = wa_messtab-msgnr
v1 = wa_messtab-msgv1
v2 = wa_messtab-msgv2
v3 = wa_messtab-msgv3
v4 = wa_messtab-msgv4
IMPORTING
msg = message.
CASE wa_messtab-msgtyp.
WHEN 'S'.
WRITE:/ message.
CLEAR message.
WHEN 'E'.
FORMAT COLOR 6 ON.
WRITE:/ message.
CLEAR message.
ENDCASE.
ENDLOOP.
ENDFORM.
thanks jayant