Skip to Content
0
Former Member
Jul 17, 2008 at 12:37 PM

message problem in bdc

27 Views

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