2009 Jun 24 3:14 AM
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
2009 Jun 24 6:16 AM
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
2009 Jun 24 8:25 AM
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.
2009 Jun 24 9:03 PM
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
2009 Jun 24 9:20 PM
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