10-08-2007 4:18 AM
Hi,
How to send errors in call transaction to a file in presentation server.
10-08-2007 5:01 AM
10-08-2007 7:22 AM
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.
10-08-2007 8:42 AM
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.