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 ERRORS

Former Member
0 Likes
552

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.

3 REPLIES 3
Read only

Former Member
0 Likes
534

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.

Read only

Former Member
0 Likes
534

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.

Read only

Former Member
0 Likes
534

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