‎2008 Jul 18 6:44 AM
hi experts,
i am done a bdc using transaction 'FBS1 & F.81' programm execute right but i am get the duplication in success message
as like this
SUCCESS MESSAGE.
document no 110005578 posted in company code 9101
PROCESSING COMPLETED----
>DUPLICATE MESSAGE
PROCESSING COMPLETED----
>
for two or more than records in flat file the duplicate error message are increase plz give me tips for this
my code is as
i am write error and succes message in perform statement using forms.
FORM write_message.
LOOP AT it_messtab." INTO wa_messtab .
CLEAR message.
CALL FUNCTION 'FORMAT_MESSAGE'
EXPORTING
id = it_messtab-msgid
lang = 'EN'
no = it_messtab-msgnr
v1 = it_messtab-msgv1
v2 = it_messtab-msgv2
v3 = it_messtab-msgv3
v4 = it_messtab-msgv4
IMPORTING
msg = message.
CASE it_messtab-msgtyp.
WHEN 'S'.
WRITE:/ message.
CLEAR message.
WHEN 'E'.
FORMAT COLOR 6 ON.
WRITE:/ message.
CLEAR message.
ENDCASE.
ENDLOOP.
thanks jayant
‎2008 Jul 18 7:15 AM
problem might be u r not refrehsing the message table: it_messtab, after usage.
if u not refresh it, every time it appedns the all messages into it_messtab.
after end loop refresh it_messtab.
‎2008 Jul 18 7:33 AM
Hi jayant kumar,
Give Message number and message type for at the time of looping your message table.It will work,,,
Hope it is helps.
Regards,
T.Durai murugan.