12-02-2009 11:59 AM
Hi
I have used call transaction method for uploading legacy data.
I need to track the error record.
Please help me to find out the solution.
Thanks in advance
Reagards
shriraam
12-02-2009 12:04 PM
Hi
If are using the Call transaction method to update the data,You can get the messages in structre BDCMSGCOLL.
DATA: t_msgcoll type standard table of bdcmsgcoll.
Call Transactions 'XK01' messages into t_msgcoll.
with syntax all messages will stroed in table t_msgcoll.To format the message of internal table use Function module format_message.
Regards,
Raghu.
12-02-2009 12:04 PM
Hi
If are using the Call transaction method to update the data,You can get the messages in structre BDCMSGCOLL.
DATA: t_msgcoll type standard table of bdcmsgcoll.
Call Transactions 'XK01' messages into t_msgcoll.
with syntax all messages will stroed in table t_msgcoll.To format the message of internal table use Function module format_message.
Regards,
Raghu.
12-02-2009 1:18 PM
HI,
!. Obtain the messaged into an Interal table of type BDCMSGCOLL using Call Transaction syntax..
Call Transactio <Tcode>
using <BDC Table>
mode <A/N/P>
update <A/S>
messages INTO <mSGTAB>
2. Read the Msg table for eroors and success messages
3. Then format the messge with the help of Function Module :'Format_messages'.
4. Display the respective messges with the help of write statements or with the help of ALV.
Rgds
Umakanth
12-02-2009 1:27 PM
link:[http://www.sap-img.com/abap/retreive-error-message-from-bdc.htm]