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

Handle error and skip error in BDC

Former Member
0 Likes
2,195

HI experts,

I have done a BDC call transaction method for t.code XK02.

During the uploading i am getting a lot hidden errors which my uploading getting stop.

I have done a lot checking but still some new problems coming during uploading.

Example :

Sometimes the user did not maintain payment terms and ETC.

Is it possible for me to skip if the there is any error hit during the uploading and it should skip to the

next data to upload.

I hope it is clear.

Thank you in advanced.

regards.

saravannan.s

HI experts,

I have done a BDC call transaction method for t.code XK02.

During the uploading i am getting a lot hidden errors which my uploading getting stop.

I have done a lot checking but still some new problems coming during uploading.

Example :

Sometimes the user did not maintain payment terms and ETC.

Is it possible for me to skip if the there is any error hit during the uploading and it should skip to the

next data to upload.

I hope it is clear.

Thank you in advanced.

regards.

saravannan.s

4 REPLIES 4
Read only

Former Member
0 Likes
880

Hi,

If you are trying to create the multiple vendors using call transaction you'll be using a loop for the CALL TRANSACTION.

So, you can do this, when you are uploading data into the BDCDATA structure after you upload the data you'll be calling the CALL TRANSACTION statement. So, call this statement using mode 'N' and store the errors in an internal table type BDCMSGCOLL.if any error comes then you'll get the error stored into this table and loop continues for the next vendor creation data.

finally you'll get the error and success of the vendors into the internal table type BDCMSGCOLL.

P.S. use the call transaction statement like this

CALL TRANSACTION 'XK02' USING T_BDCDATA MODE 'N' MESSAGES INTO T_BDCMSGCOLL.

Thanks&Regards

Sarves

Read only

Former Member
0 Likes
880

first check the which are the mandatory fileds in screen level based on the account group.

when you are proceesing that time nedd to check if all mandatory fileds have the data or not . if any mandatory filed does not conatin the data skip the record.

Read only

Former Member
0 Likes
880

Hi,

Before perfroming CALL TRANSACTION for each record, check for all the possible validations, for eg. all the mandatory fields are present to create vendor Master, Vendor is a valid vendor on not, if record doesnt pass sucessfully through validations then directly took these records in an internal table which is of type BDCMSGCOLL and do not perform CALL TRANSACTION for those records.

Thus while looping at records , you can find out which record to process and which to skip.

Regards

Vinod

Read only

Former Member
0 Likes
880

I think the easiest way to do this would be to have two call transactions for each vendor. The first one is a 'test' where you press the back button instead of the save. Then you analyze the message table to see if there are any legitimate errors. If none, then process the batch input session using 'save'.

Rob