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

Former Member
0 Likes
294

Hi gurus!

in BDC , i want to know the transparent table where the message no and its text is stored.

for eg : -

Msgid Msgno MSGV1 MSGV2

V1 311 Fert. Direct 200017287

here , 200017287 is order no created after running BDC. So i want knw whenever different type of order is created , willl same no [311] will be displayed?

1 REPLY 1
Read only

Former Member
0 Likes
263

BDCMSGCOLL

This is a sample error handling while uploading Customers.

Generally when the transaction is Unsuccessful you must get the

Message of type E or A.

In that Case you can Handle Like this:

Using BDCMSGCOLL Structure we have to declare an itab.

DATA : IT_MSG LIKE TABLE OF BDCMSGCOLL .

Then We can catch the messages using:

CALL TRANSACTION 'MK01'

USING IT_BDCDATA

MODE 'N'

MESSAGES INTO IT_MSG.

IF sy-subrc ne 0.

LOOP AT IT_MSG INTO WA_MSG

WHERE MSGTYP = 'E' OR MSGTYP = 'A'..

ENDLOOP.

Otherwise if the Transaction FD01 is unsuccessful bcoz the Customer already exists

Then it will give the Message type S.

Before calling the Transaction FD01 you have to check whether customer already exists in SAP using SELECT single STATEMENT.

Only if Customer does not exist then Call the Transaction.

REWARD IF HELPFUL.