‎2008 Jan 16 9:37 AM
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?
‎2008 Jan 16 10:17 AM
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.