‎2008 Feb 10 2:26 PM
HI
how to see errors in bdc without going to log file in programming. can we find out the errors without moving to log file.
‎2008 Feb 11 7:11 AM
HI Siva,
IF u r using call transaction method then u can use bdcmsgcol table for capturing the error records.
Regards
Naveen Gupta
PS: Reward Points if helpfull.
‎2008 Feb 13 1:07 PM
Hi,
for Call Transaction method , you can generate an internal table where you store all erroneous entries.
Call transaction <tcode> using <BDCTAB>
Mode <A/N/E>
Update <S/A>
Messages into <MSGTAB>.
when you update database table, operation is either successful or unsuccessful or operation is successful with some warning. These messages are stored in internal table (msgtab), which you specify along with MESSAGE statement. This internal table should be declared like BDCMSGCOLL, a structure available in ABAP/4. It contains the following fields:
1. Tcode: Transaction code
2. Dyname: Batch point module name
3. Dynumb: Batch input Dyn number
4. Msgtyp: Batch input message type (A/E/W/I/S)
5. Msgspra: Batch input Lang, id of message
6. Msgid: Message id
7. MsgvN: Message variables (N = 1 - 4)
For each entry, which is updated in database, table message is available in BDCMSGCOLL. As BDCMSGCOLL is structure, you need to declare a internal table which can contain multiple records (unlike structure). And depending on the message type (A/E/W/I/S) , you can individually handle the records.
Hope that answered your query. Do reward points if it did.
Cheers,
Rakesh Damera.
‎2008 Feb 13 1:51 PM
Hi Siva,
If u r using call transaction method u should use BDCMASGCOll to see the errors which are occured in the recording. If u are using session method u have to see the errors in error log in SM35 Tcode.Apart from this no other alternative is there to see the errors.
if it is useful to u please reward points,
Regrads,
Koti Reddy N