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

Error in BDC

Former Member
0 Likes
470

Hi,

How to send errors in call transaction to a file in presentation server.

3 REPLIES 3
Read only

Former Member
0 Likes
445

Reward points if it helps.

Thanks

Murali Poli

Read only

0 Likes
445

collect these errors in ITAB ..as follows..

DATA: ITAB_msg TYPE TABLE OF BDCMSGCOLL with header line.

call transaction 'MI01' using itab_bdcdata mode 'A' MESSAGES INTO

ITAB_msg.

CLEAR itab_bdcdata[].

loop at itab_msg where msgtyp = 'S'.

break-point.

message i010(zmgs) with itab_msg-MSGV1.

docno = itab_msg-msgv1.

endloop.

then u should code accordingly for sending this data of message internal table to app server using

opendataset and closedataset command

regards.

Read only

Former Member
0 Likes
445

Hi basu,

if u want send thr error records .

first u should declred the internal table ot type BDCMSGCALL

data : E_records type bdcmsgcoll occurs 1 with headre line.

than call FM

FORMAT_MESSAGE pass the this intrenal table this FM.

call another FM GUI-DOWNLOAD

in this pass the same internal table & spicefiy the file path like C:\E_rrords.txt.

automatically all records will down the presentation server.

rewar is use full.

thanks .

patil.