Application Development 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: 

Error in BDC

Former Member
0 Kudos

Hi,

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

3 REPLIES 3

Former Member
0 Kudos

Reward points if it helps.

Thanks

Murali Poli

0 Kudos

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.

Former Member
0 Kudos

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.