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: 

Track error records in Call Transaction method

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

3 REPLIES 3

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

kesavadas_thekkillath
Active Contributor
0 Kudos

link:[http://www.sap-img.com/abap/retreive-error-message-from-bdc.htm]