Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

bdc message duplication

Former Member
0 Likes
436

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

2 REPLIES 2
Read only

Former Member
0 Likes
395

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.

Read only

Former Member
0 Likes
395

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.